1 /*=========================================================================
4 Module: $RCSfile: marExperimentCT.h,v $
6 Date: $Date: 2008/10/31 16:32:55 $
7 Version: $Revision: 1.1 $
9 Copyright: (c) 2002, 2003
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notice for more information.
16 =========================================================================*/
17 #ifndef __MAR__KERNEL__EXPERIMENTCT__HXX__
18 #define __MAR__KERNEL__EXPERIMENTCT__HXX__
22 #include "marExperiment.h"
23 #include "marDynData.h"
24 #include "GestionBifurcations.h"
25 #include "marAxisCT.h"
28 class MAR_KERNEL_EXPORT marExperimentCT : public marExperiment
33 marExperimentCT( marParameters* p = NULL );
35 marContour* getContour( int point, int contour );
36 vtkPoints* get3Dcontour( int point, int contour );
37 vtkPolyData* get2Dcontour( int point, int contour );
38 vtkPoints* get2DDiameterMin( int point, int contour );
39 vtkPoints* get2DDiameterMax( int point, int contour );
40 int getNumberOfContours(int point);
41 void prepareQuantification( );
42 void RegenerateAxis();
43 void RecalculateAxis();
44 void updateLumenPercentage(int percentage);
45 void updateCalcPercentage(int percentage);
46 void updateDiscontinuityThreshold(int percentage);
47 int getContourType(int point, int index);
48 void histogram(int point);
49 void setCalibration(bool calib);
50 bool getCalibration();
51 void ClearContoursPartial(int start);
52 void setStartIndex(int start);
54 marPoint* getPoint(int i);
55 void markUpLumen(int point);
57 void replaceContour2D(int size,double *vx,double *vy, int type);
58 void cleanContours(int type);
59 marIsocontour* loadMarIsocontour(int size, double *vx, double *vy);
60 double performXOR(int type, std::vector<marIsocontour*> manual);
61 double performAND(int type, std::vector<marIsocontour*> manual);
62 double performUnion(int type, std::vector<marIsocontour*> manual);
66 #endif // __MAR__KERNEL__EXPERIMENTCT__HXX__