18#ifndef itkVoronoiSegmentationRGBImageFilter_h
19#define itkVoronoiSegmentationRGBImageFilter_h
53template <
typename TInputImage,
typename TOutputImage>
73 using typename Superclass::BinaryObjectImage;
74 using typename Superclass::IndexList;
77 using typename Superclass::PixelType;
78 using typename Superclass::InputImagePointer;
79 using typename Superclass::InputImageType;
91 for (
int i = 0; i < 6; ++i)
93 x[i] = m_MeanPercentError[i];
99 for (
int i = 0; i < 6; ++i)
101 x[i] = m_STDPercentError[i];
107 for (
int i = 0; i < 6; ++i)
115 for (
int i = 0; i < 6; ++i)
123 for (
int i = 0; i < 6; ++i)
131 for (
int i = 0; i < 6; ++i)
139 for (
int i = 0; i < 6; ++i)
141 x[i] = m_MeanTolerance[i];
147 for (
int i = 0; i < 6; ++i)
149 x[i] = m_STDTolerance[i];
157 itkSetMacro(MaxValueOfRGB,
double);
158 itkGetConstMacro(MaxValueOfRGB,
double);
172 SetTestSTD(
unsigned int t1,
unsigned int t2,
unsigned int t3)
182 x[0] = m_TestMean[0];
183 x[1] = m_TestMean[1];
184 x[2] = m_TestMean[2];
198 using Superclass::SetInput;
206 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
207 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
209#ifdef ITK_USE_CONCEPT_CHECKING
226 double m_MeanTolerance[6]{};
227 double m_STDTolerance[6]{};
228 double m_MeanPercentError[6]{};
229 double m_STDPercentError[6]{};
230 double m_MaxValueOfRGB{};
231 unsigned int m_TestMean[3]{};
232 unsigned int m_TestSTD[3]{};
240#ifndef ITK_MANUAL_INSTANTIATION
241# include "itkVoronoiSegmentationRGBImageFilter.hxx"
Base class for all process objects that output image data.
TInputImage InputImageType
Templated n-dimensional image class.
Control indentation during Print() invocation.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
A templated class holding a n-Dimensional vector.
Base class for VoronoiSegmentationImageFilter.
TBinaryPriorImage BinaryObjectImage
std::vector< IndexType > IndexList
void SetMean(const double x[6])
void SetTestMean(unsigned int t1, unsigned int t2, unsigned int t3)
void SetInput(unsigned int, const InputImageType *input) override
void GetTestSTD(unsigned int x[3])
void SetMeanPercentError(const double x[6])
void SetInput(const InputImageType *input) override
void GetTestMean(unsigned int x[3])
void TakeAPrior(const BinaryObjectImage *aprior) override
VoronoiSegmentationRGBImageFilter()
void PrintSelf(std::ostream &os, Indent indent) const override
void GetMeanPercentError(double x[6])
bool TestHomogeneity(IndexList &Plist) override
void GetSTDTolerance(double x[6])
void SetSTD(const double x[6])
void GetMean(double x[6])
void GetMeanTolerance(double x[6])
void SetTestSTD(unsigned int t1, unsigned int t2, unsigned int t3)
void GetSTDPercentError(double x[6])
void SetSTDPercentError(const double x[6])
~VoronoiSegmentationRGBImageFilter() override=default
#define itkConceptMacro(name, concept)
ImageBaseType::RegionType RegionType
ImageBaseType::IndexType IndexType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....