From 106482d2d2ea83afbc1aa973c496bb89e873d920 Mon Sep 17 00:00:00 2001 From: dsarrut Date: Wed, 30 Jun 2010 06:06:06 +0000 Subject: [PATCH] temporary --- common/clitkLabelizeParameters.h | 59 ++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 common/clitkLabelizeParameters.h diff --git a/common/clitkLabelizeParameters.h b/common/clitkLabelizeParameters.h new file mode 100644 index 0000000..7a4ced9 --- /dev/null +++ b/common/clitkLabelizeParameters.h @@ -0,0 +1,59 @@ +/*========================================================================= + 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://oncora1.lyon.fnclcc.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 -- 2.47.1