]> Creatis software - clitk.git/blob - segmentation/clitkLevelSetSegmentationGenericFilter.cxx
changes in license header
[clitk.git] / segmentation / clitkLevelSetSegmentationGenericFilter.cxx
1 /*=========================================================================
2   Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
3
4   Authors belong to: 
5   - University of LYON              http://www.universite-lyon.fr/
6   - Léon Bérard cancer center       http://www.centreleonberard.fr
7   - CREATIS CNRS laboratory         http://www.creatis.insa-lyon.fr
8
9   This software is distributed WITHOUT ANY WARRANTY; without even
10   the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11   PURPOSE.  See the copyright notices for more information.
12
13   It is distributed under dual licence
14
15   - BSD        See included LICENSE.txt file
16   - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
18 #ifndef clitkLevelSetSegmentationGenericFilter_cxx
19 #define clitkLevelSetSegmentationGenericFilter_cxx
20
21 /* =================================================
22  * @file   clitkLevelSetSegmentationGenericFilter.cxx
23  * @author Jef Vandemeulebroucke <jef@creatis.insa-lyon.fr>
24  * @date   
25  * 
26  * @brief 
27  * 
28  ===================================================*/
29
30 #include "clitkLevelSetSegmentationGenericFilter.h"
31
32
33 namespace clitk
34 {
35
36
37   //-----------------------------------------------------------
38   // Constructor
39   //-----------------------------------------------------------
40   LevelSetSegmentationGenericFilter::LevelSetSegmentationGenericFilter()
41   {
42     m_Verbose=false;
43   }
44
45   //-----------------------------------------------------------
46   // Update
47   //-----------------------------------------------------------
48   void LevelSetSegmentationGenericFilter::Update()
49   {
50     // Read the Dimension and PixelType
51     int Dimension;
52     std::string PixelType;
53     ReadImageDimensionAndPixelType(m_ArgsInfo.input_arg, Dimension, PixelType);
54
55     
56     // Call UpdateWithDim
57     if(Dimension==2) UpdateWithDim<2>(PixelType);
58     else if(Dimension==3) UpdateWithDim<3>(PixelType);
59     // else if (Dimension==4)UpdateWithDim<4>(PixelType); 
60     else 
61       {
62         std::cout<<"Error, Only for 2 or 3  Dimensions!!!"<<std::endl ;
63         return;
64       }
65   }
66
67
68 } //end clitk
69
70 #endif  //#define clitkLevelSetSegmentationGenericFilter_cxx