/*========================================================================= Program: vv http://www.creatis.insa-lyon.fr/rio/vv Authors belong to: - University of LYON http://www.universite-lyon.fr/ - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the copyright notices for more information. It is distributed under dual licence - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html ===========================================================================**/ #ifndef CLITKLABELIZEPARAMETERS_H #define CLITKLABELIZEPARAMETERS_H // clitk //#include "clitkCommon.h" // itk #include "itkObject.h" namespace clitk { //-------------------------------------------------------------------- template class LabelizeParameters: public itk::Object { public: typedef LabelizeParameters Self; LabelizeParameters() { UseLastKeepOff(); } itkSetMacro(FirstKeep, PixelType); itkGetMacro(FirstKeep, PixelType); itkSetMacro(LastKeep, PixelType); itkGetMacro(LastKeep, PixelType); itkSetMacro(UseLastKeep, bool); itkGetConstMacro(UseLastKeep, bool); itkBooleanMacro(UseLastKeep); void AddLabelToRemove(PixelType l) { m_LabelsToRemove.push_back(l); } // itkGetMacro(LabelsToRemove, std::vector &); std::vector & GetLabelsToRemove() { return m_LabelsToRemove; } protected: std::vector m_LabelsToRemove; PixelType m_FirstKeep; PixelType m_LastKeep; bool m_UseLastKeep; }; //-------------------------------------------------------------------- } // end namespace clitk //-------------------------------------------------------------------- #endif // CLITKLABELIZEPARAMETERS_H