18 #ifndef itkVoronoiSegmentationImageFilter_h
19 #define itkVoronoiSegmentationImageFilter_h
52 template <
typename TInputImage,
typename TOutputImage,
typename TBinaryPriorImage = Image<
unsigned char, 2>>
72 using typename Superclass::BinaryObjectImage;
73 using typename Superclass::IndexList;
76 using typename Superclass::InputImageType;
79 itkSetMacro(Mean,
double);
80 itkGetConstMacro(Mean,
double);
85 itkSetMacro(STD,
double);
86 itkGetConstMacro(STD,
double);
90 itkSetMacro(MeanTolerance,
double);
91 itkGetConstMacro(MeanTolerance,
double);
95 itkSetMacro(STDTolerance,
double);
98 itkGetConstMacro(STDTolerance,
double);
102 SetMeanPercentError(
double x);
104 itkGetConstMacro(MeanPercentError,
double);
107 itkGetConstMacro(STDPercentError,
double);
109 SetSTDPercentError(
double x);
118 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
119 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
121 #ifdef ITK_USE_CONCEPT_CHECKING
132 PrintSelf(std::ostream & os,
Indent indent)
const override;
135 double m_Mean{ 0.0 };
137 double m_MeanTolerance{ 0.0 };
138 double m_STDTolerance{ 0.0 };
139 double m_MeanPercentError{ 0.10 };
140 double m_STDPercentError{ 1.5 };
143 TestHomogeneity(IndexList & Plist)
override;
147 #ifndef ITK_MANUAL_INSTANTIATION
148 # include "itkVoronoiSegmentationImageFilter.hxx"