18 #ifndef itkVoronoiSegmentationRGBImageFilter_h
19 #define itkVoronoiSegmentationRGBImageFilter_h
53 template<
typename TInputImage,
typename TOutputImage >
85 void SetMeanPercentError(
double x[6]);
86 void SetSTDPercentError(
double x[6]);
87 void GetMeanPercentError(
double x[6]){
for (
int i = 0; i < 6; i++ ) { x[i] = m_MeanPercentError[i]; } }
88 void GetSTDPercentError(
double x[6]){
for (
int i = 0; i < 6; i++ ) { x[i] = m_STDPercentError[i]; } }
89 void GetMean(
double x[6]){
for (
int i = 0; i < 6; i++ ) { x[i] = m_Mean[i]; } }
90 void GetSTD(
double x[6]){
for (
int i = 0; i < 6; i++ ) { x[i] = m_STD[i]; } }
91 void SetMean(
double x[6]){
for (
int i = 0; i < 6; i++ ) { m_Mean[i] = x[i]; } }
92 void SetSTD(
double x[6]){
for (
int i = 0; i < 6; i++ ) { m_STD[i] = x[i]; } }
93 void GetMeanTolerance(
double x[6]){
for (
int i = 0; i < 6; i++ ) { x[i] = m_MeanTolerance[i]; } }
94 void GetSTDTolerance(
double x[6]){
for (
int i = 0; i < 6; i++ ) { x[i] = m_STDTolerance[i]; } }
100 itkSetMacro(MaxValueOfRGB,
double);
101 itkGetConstMacro(MaxValueOfRGB,
double);
106 void SetTestMean(
unsigned int t1,
unsigned int t2,
unsigned int t3)
113 void SetTestSTD(
unsigned int t1,
unsigned int t2,
unsigned int t3)
122 x[0] = m_TestMean[0]; x[1] = m_TestMean[1]; x[2] = m_TestMean[2];
127 x[0] = m_TestSTD[0]; x[1] = m_TestSTD[1]; x[2] = m_TestSTD[2];
130 void TakeAPrior(
const BinaryObjectImage *aprior)
override;
132 using Superclass::SetInput;
133 void SetInput(
const InputImageType *input)
override;
135 void SetInput(
unsigned int,
const InputImageType *image)
override;
138 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
139 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
141 #ifdef ITK_USE_CONCEPT_CHECKING
155 void PrintSelf(std::ostream & os,
Indent indent)
const override;
160 double m_MeanTolerance[6];
161 double m_STDTolerance[6];
162 double m_MeanPercentError[6];
163 double m_STDPercentError[6];
165 unsigned int m_TestMean[3];
166 unsigned int m_TestSTD[3];
169 bool TestHomogeneity(
IndexList & Plist)
override;
173 #ifndef ITK_MANUAL_INSTANTIATION
174 #include "itkVoronoiSegmentationRGBImageFilter.hxx"
void SetMean(double x[6])
Base class for VoronoiSegmentationImageFilter.
void GetMeanTolerance(double x[6])
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
typename Superclass::PixelType PixelType
TInputImage InputImageType
RGBHCVImage::Pointer m_WorkingImage
void SetTestMean(unsigned int t1, unsigned int t2, unsigned int t3)
typename Superclass::BinaryObjectImage BinaryObjectImage
typename InputImageType::Pointer InputImagePointer
typename Superclass::RegionType RegionType
void GetTestMean(unsigned int x[3])
A templated class holding a n-Dimensional vector.
typename Superclass::IndexList IndexList
ImageBaseType::IndexType IndexType
void SetTestSTD(unsigned int t1, unsigned int t2, unsigned int t3)
void GetMeanPercentError(double x[6])
void GetMean(double x[6])
Control indentation during Print() invocation.
typename Superclass::IndexType IndexType
ImageBaseType::RegionType RegionType
void GetSTDPercentError(double x[6])
void GetTestSTD(unsigned int x[3])
#define itkConceptMacro(name, concept)
void GetSTDTolerance(double x[6])
Templated n-dimensional image class.