1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
5 - University of LYON http://www.universite-lyon.fr/
6 - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr
7 - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr
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.
13 It is distributed under dual licence
15 - BSD See included LICENSE.txt file
16 - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ======================================================================-====*/
19 #ifndef CLITKLABELIZEPARAMETERS_H
20 #define CLITKLABELIZEPARAMETERS_H
23 //#include "clitkCommon.h"
26 #include "itkObject.h"
30 //--------------------------------------------------------------------
31 template<class PixelType>
32 class LabelizeParameters: public itk::Object {
34 typedef LabelizeParameters<PixelType> Self;
35 LabelizeParameters() { UseLastKeepOff(); }
36 itkSetMacro(FirstKeep, PixelType);
37 itkGetMacro(FirstKeep, PixelType);
38 itkSetMacro(LastKeep, PixelType);
39 itkGetMacro(LastKeep, PixelType);
40 itkSetMacro(UseLastKeep, bool);
41 itkGetConstMacro(UseLastKeep, bool);
42 itkBooleanMacro(UseLastKeep);
43 void AddLabelToRemove(PixelType l) { m_LabelsToRemove.push_back(l); }
44 // itkGetMacro(LabelsToRemove, std::vector<PixelType> &);
45 std::vector<PixelType> & GetLabelsToRemove() { return m_LabelsToRemove; }
48 std::vector<PixelType> m_LabelsToRemove;
49 PixelType m_FirstKeep;
53 //--------------------------------------------------------------------
56 } // end namespace clitk
57 //--------------------------------------------------------------------
59 #endif // CLITKLABELIZEPARAMETERS_H