]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/kernel/include/marExperimentCT.h
#3262 creaMaracasVisu Feature New Normal - Export LookupTable fron ColorLayerImageV...
[creaMaracasVisu.git] / lib / maracasVisuLib / src / kernel / include / marExperimentCT.h
1 /*# ---------------------------------------------------------------------
2 #
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
4 #                        pour la Sant�)
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
7 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
8 #
9 #  This software is governed by the CeCILL-B license under French law and
10 #  abiding by the rules of distribution of free software. You can  use,
11 #  modify and/ or redistribute the software under the terms of the CeCILL-B
12 #  license as circulated by CEA, CNRS and INRIA at the following URL
13 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
14 #  or in the file LICENSE.txt.
15 #
16 #  As a counterpart to the access to the source code and  rights to copy,
17 #  modify and redistribute granted by the license, users are provided only
18 #  with a limited warranty  and the software's author,  the holder of the
19 #  economic rights,  and the successive licensors  have only  limited
20 #  liability.
21 #
22 #  The fact that you are presently reading this means that you have had
23 #  knowledge of the CeCILL-B license and that you accept its terms.
24 # ------------------------------------------------------------------------ */
25
26 /*=========================================================================
27
28   Program:   wxMaracas
29   Module:    $RCSfile: marExperimentCT.h,v $
30   Language:  C++
31   Date:      $Date: 2012/11/15 14:15:31 $
32   Version:   $Revision: 1.2 $
33
34   Copyright: (c) 2002, 2003
35   License:
36   
37      This software is distributed WITHOUT ANY WARRANTY; without even 
38      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
39      PURPOSE.  See the above copyright notice for more information.
40
41 =========================================================================*/
42 #ifndef __MAR__KERNEL__EXPERIMENTCT__HXX__
43 #define __MAR__KERNEL__EXPERIMENTCT__HXX__
44
45 #include <vector>
46 #include "volume.hxx"
47 #include "marExperiment.h"
48 #include "marDynData.h"
49 #include "GestionBifurcations.h"
50 #include "marAxisCT.h"
51 #include "marPoint.h"
52
53 class MAR_KERNEL_EXPORT marExperimentCT : public marExperiment
54 {
55
56 public:
57   
58   marExperimentCT( marParameters* p = NULL );
59   
60   marContour*           getContour( int point, int contour );
61   vtkPoints*            get3Dcontour( int point, int contour );
62   vtkPolyData*          get2Dcontour( int point, int contour );
63   vtkPoints*            get2DDiameterMin( int point, int contour );
64   vtkPoints*            get2DDiameterMax( int point, int contour );
65   int                           getNumberOfContours(int point);
66   void                          prepareQuantification( );
67   void                          RegenerateAxis();
68   void                          RecalculateAxis();
69   void                          updateLumenPercentage(int percentage);
70   void                          updateCalcPercentage(int percentage);
71   void                          updateDiscontinuityThreshold(int percentage);
72   int                           getContourType(int point, int index);
73   void                          histogram(int point);
74   void                          setCalibration(bool calib);
75   bool                          getCalibration();
76   void                          ClearContoursPartial(int start);
77   void                          setStartIndex(int start);
78   int                           getPointSize();
79   marPoint*                     getPoint(int i);
80   void                          markUpLumen(int point);
81   void                          generateFile();
82   void                          replaceContour2D(int size,double *vx,double *vy, int type);
83   void                          cleanContours(int type);
84   marIsocontour*        loadMarIsocontour(int size, double *vx, double *vy);
85   double                        performXOR(int type, std::vector<marIsocontour*> manual);
86   double                        performAND(int type, std::vector<marIsocontour*> manual);
87   double                        performUnion(int type, std::vector<marIsocontour*> manual);
88
89 };
90
91 #endif // __MAR__KERNEL__EXPERIMENTCT__HXX__