26 #ifndef __wxContourMainFrame_h_INCLUDED_H__
27 #define __wxContourMainFrame_h_INCLUDED_H__
35 #include <wx/wxprec.h>
47 #include "wx/aui/aui.h"
57 #include "ContourExtractData.h"
60 #include "manualLineControler.h"
61 #include "manualContourModelLine.h"
62 #include "manualViewLine.h"
64 #include "ThresholdImageView.h"
65 #include "ThresholdImageViewPanel.h"
66 #include "ColorLayerImageView.h"
67 #include "ColorLayerImageViewPanel.h"
72 #include "itkGeodesicActiveContourLevelSetImageFilter.h"
74 #include "itkCurvatureAnisotropicDiffusionImageFilter.h"
75 #include "itkGradientMagnitudeRecursiveGaussianImageFilter.h"
76 #include "itkSigmoidImageFilter.h"
77 #include "itkFastMarchingImageFilter.h"
78 #include "itkRescaleIntensityImageFilter.h"
79 #include "itkBinaryThresholdImageFilter.h"
80 #include "itkZeroCrossingImageFilter.h"
81 #include "itkCastImageFilter.h"
89 #include <vtkImageSeedConnectivity.h>
90 #include <vtkImageMarchingCubes.h>
91 #include "vtkContourFilter.h"
92 #include "vtkMarchingContourFilter.h"
93 #include "vtkPolyDataConnectivityFilter.h"
94 #include "vtkCleanPolyData.h"
95 #include "vtkImageReslice.h"
96 #include "vtkMetaImageWriter.h"
97 #include "vtkImageData.h"
98 #include "vtkTransform.h"
100 #include "vtkCamera.h"
101 #include "vtkImageActor.h"
102 #include <vtkImageMapToColors.h>
103 #include <vtkLookupTable.h>
104 #include <vtkCommand.h>
131 wxContourMainFrame(wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style = wxDEFAULT_FRAME_STYLE | wxSUNKEN_BORDER);
132 wxContourMainFrame(wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,std::vector<vtkImageData*> images,
long style = wxDEFAULT_FRAME_STYLE | wxSUNKEN_BORDER,std::string datadir=
"C:/Creatis/creaContoursBin/RelWithDebInfo/");
158 void getMaskValue(vtkImageData ** mask,vtkImageData ** value,
int typeContourGroup,
int selection,
int minZ,
int maxZ);
160 void SaveImageResult(std::string directory,std::string namefile, vtkImageData* mask,vtkImageData* value);
178 static wxContourMainFrame*
getInstance(wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,std::vector<vtkImageData*> images,
long style = wxDEFAULT_FRAME_STYLE | wxSUNKEN_BORDER, std::string datadir=
"C:/Creatis/creaContoursBin/RelWithDebInfo/");
230 void createCopyContourOf ( std::string anExistingKName, std::vector<int> &instantNoTouchData,
bool append );
231 void createMirrorContourOf ( std::string anExistingKName, std::vector<int> &instantNoTouchData,
bool append );
237 void openContours( FILE *pFile, FILE *pFileData,
bool staticContour );
244 void onSegmentationOneSliceITK(wxString distance, wxString sigma, wxString alfa, wxString beta, wxString propagation, wxString iterations, wxString inflation);
246 void SegmentationOneSliceITK(
int x,
int y,
int z, wxString distance, wxString sigma, wxString alfa, wxString beta, wxString propagation, wxString iterations, wxString inflation);
247 void Mirror(
int x,
int y,
int z,
int isovalue,
int sampling,
int method );
283 void onInformationContourLabels(
int typeContourGroup,
int selection,
int minimumZ,
int maximumZ,
int grayRangeMin,
int grayRangeMax);
284 void onSaveResults(std::string directory,std::string namefile, std::string filename,
285 int typeContourGroup,
int selection,
int minZ,
int maxZ,
bool XYZValues,
bool contourImage,
bool statistics);
286 void SaveValuesXYZ(std::string directory,std::string namefile,
int typeContourGroup);
290 void ShowResultImages(
int typeContourGroup,
int selection,
int minZ,
int maxZ );
304 void onPrintLabel (wxString label, manualBaseModel* manualModel);
397 void readDimSpc(FILE *pFile,
bool interactiveOption);
416 void onLoadContours(std::string fileNameContourROI,
bool interactiveInterface);