]> Creatis software - creaContours.git/blobdiff - lib/Interface_ManagerContour_NDimensions/wxContourMainFrame.h
Added ITK Segmentation Algorithm
[creaContours.git] / lib / Interface_ManagerContour_NDimensions / wxContourMainFrame.h
index fb5477af7c9b21b05148550622c488f538afcdde..b48f08a17e482b05d5fc7a2876045df3d6ddf4e6 100644 (file)
 //#include "wxContour_ListViewPanel.h"
 
 
-
-
+//ITK
+#include "itkImage.h"
+#include "itkGeodesicActiveContourLevelSetImageFilter.h"
+
+#include "itkCurvatureAnisotropicDiffusionImageFilter.h"
+#include "itkGradientMagnitudeRecursiveGaussianImageFilter.h"
+#include "itkSigmoidImageFilter.h"
+#include "itkFastMarchingImageFilter.h"
+#include "itkRescaleIntensityImageFilter.h"
+#include "itkBinaryThresholdImageFilter.h"
+#include "itkZeroCrossingImageFilter.h"
+#include "itkCastImageFilter.h"
+
+#include "itkImageFileWriter.h"
+
+#include "itkImageToVTKImageFilter.h"
+#include "itkVTKImageToImageFilter.h"
+
+//VTK
+#include <vtkImageSeedConnectivity.h>
+#include <vtkImageMarchingCubes.h>
 #include "vtkContourFilter.h"
+#include "vtkMarchingContourFilter.h"
 #include "vtkPolyDataConnectivityFilter.h"
 #include "vtkCleanPolyData.h"
 #include "vtkImageReslice.h"
 #include "vtkMetaImageWriter.h"
 #include "vtkImageData.h"
+#include "vtkTransform.h"
 //#include "vtkMetaImageReader.h"
 
 //------------------------------------------------------------------------------------------------------------
@@ -169,6 +190,7 @@ class wxContourMainFrame : public wxPanel {
        void onCreateContourSpline( );
        void onCreateContourRectangle( );
        void onCreateContourCircle( );
+       void onCreateContourLine( );
        void onCreateContourBullEye(wxPanel* pan);
        /////////////////////////////////
        void onDeleteContour();
@@ -200,6 +222,7 @@ class wxContourMainFrame : public wxPanel {
        void onUndo();
        void onRedo();
        void createCopyContourOf ( std::string anExistingKName, std::vector<int> &instantNoTouchData, bool append );
+       void createMirrorContourOf ( std::string anExistingKName, std::vector<int> &instantNoTouchData, bool append );
 ///////////////////////7
        void onLoad();
        void onSave();
@@ -212,14 +235,28 @@ class wxContourMainFrame : public wxPanel {
 
        void onSegmentationOneSlice(int isovalue,int sampling,int method);
 
+       void onSegmentationOneSliceITK(wxString distance, wxString sigma, wxString alfa, wxString beta, wxString propagation, wxString iterations, wxString inflation);
+
        void SegmentationOneSlice( int x, int y, int z, int isovalue, int sampling, int method );
 
+       void SegmentationOneSliceITK(int x, int y, int z, wxString distance, wxString sigma, wxString alfa, wxString beta, wxString propagation, wxString iterations, wxString inflation);
+
+       void Mirror( int x, int y, int z, int isovalue, int sampling, int method );
+
        int GetImageDataSizeZ();
 
        void GetImageDataRange(double *range);
 
        void onSegmentationAllSlice(int minZ,int maxZ,int isovalue,int sampling,int method);
 
+       //AD
+       void referenceLine();
+       void refLineHide();
+       void refLineShow();
+
+       //AD
+       void onMirror();
+
        void showAxis(bool show);
 
        void onRigidPressed();
@@ -275,6 +312,12 @@ private:
 
        wxInstantChooserPanel * _instantPanel;
 
+       //AD: 03-09: This attributes represents the reference line that is going to be used for the mirroring
+       manualLineControler             * _refLineControl;
+       manualContourModelLine  * _refLineModel;
+       manualViewLine                  * _refLineView;
+
+
 
        wxAuiManager m_mgr;
     /*