18 #ifndef itkVoronoiSegmentationRGBImageFilter_h
19 #define itkVoronoiSegmentationRGBImageFilter_h
53 template<
typename TInputImage,
typename TOutputImage >
83 void SetMeanPercentError(
double x[6]);
84 void SetSTDPercentError(
double x[6]);
85 void GetMeanPercentError(
double x[6]){
for (
int i = 0; i < 6; i++ ) { x[i] = m_MeanPercentError[i]; } }
86 void GetSTDPercentError(
double x[6]){
for (
int i = 0; i < 6; i++ ) { x[i] = m_STDPercentError[i]; } }
87 void GetMean(
double x[6]){
for (
int i = 0; i < 6; i++ ) { x[i] = m_Mean[i]; } }
88 void GetSTD(
double x[6]){
for (
int i = 0; i < 6; i++ ) { x[i] = m_STD[i]; } }
89 void SetMean(
double x[6]){
for (
int i = 0; i < 6; i++ ) { m_Mean[i] = x[i]; } }
90 void SetSTD(
double x[6]){
for (
int i = 0; i < 6; i++ ) { m_STD[i] = x[i]; } }
91 void GetMeanTolerance(
double x[6]){
for (
int i = 0; i < 6; i++ ) { x[i] = m_MeanTolerance[i]; } }
92 void GetSTDTolerance(
double x[6]){
for (
int i = 0; i < 6; i++ ) { x[i] = m_STDTolerance[i]; } }
98 itkSetMacro(MaxValueOfRGB,
double);
99 itkGetConstMacro(MaxValueOfRGB,
double);
104 void SetTestMean(
unsigned int t1,
unsigned int t2,
unsigned int t3)
111 void SetTestSTD(
unsigned int t1,
unsigned int t2,
unsigned int t3)
120 x[0] = m_TestMean[0]; x[1] = m_TestMean[1]; x[2] = m_TestMean[2];
125 x[0] = m_TestSTD[0]; x[1] = m_TestSTD[1]; x[2] = m_TestSTD[2];
128 void TakeAPrior(
const BinaryObjectImage *aprior) ITK_OVERRIDE;
130 using Superclass::SetInput;
131 virtual void SetInput(
const InputImageType *input) ITK_OVERRIDE;
133 virtual void SetInput(
unsigned int,
const InputImageType *image) ITK_OVERRIDE;
136 itkStaticConstMacro(InputImageDimension,
unsigned int,
137 TInputImage::ImageDimension);
138 itkStaticConstMacro(OutputImageDimension,
unsigned int,
139 TOutputImage::ImageDimension);
142 #ifdef ITK_USE_CONCEPT_CHECKING
156 void PrintSelf(std::ostream & os,
Indent indent) const ITK_OVERRIDE;
161 double m_MeanTolerance[6];
162 double m_STDTolerance[6];
163 double m_MeanPercentError[6];
164 double m_STDPercentError[6];
165 double m_MaxValueOfRGB;
166 unsigned int m_TestMean[3];
167 unsigned int m_TestSTD[3];
170 virtual
bool TestHomogeneity(
IndexList & Plist) ITK_OVERRIDE;
177 #ifndef ITK_MANUAL_INSTANTIATION
178 #include "itkVoronoiSegmentationRGBImageFilter.hxx"
void SetMean(double x[6])
Base class for VoronoiSegmentationImageFilter.
Superclass::IndexList IndexList
Image< RGBHCVPixel > RGBHCVImage
void GetMeanTolerance(double x[6])
Superclass::BinaryObjectImage BinaryObjectImage
SmartPointer< Self > Pointer
Superclass::RegionType RegionType
Base class for all process objects that output image data.
void SetTestMean(unsigned int t1, unsigned int t2, unsigned int t3)
SmartPointer< const Self > ConstPointer
Superclass::PixelType PixelType
void GetTestMean(unsigned int x[3])
A templated class holding a n-Dimensional vector.
Vector< float, 6 > RGBHCVPixel
void SetTestSTD(unsigned int t1, unsigned int t2, unsigned int t3)
void GetMeanPercentError(double x[6])
void GetMean(double x[6])
VoronoiSegmentationImageFilterBase< TInputImage, TOutputImage > Superclass
Control indentation during Print() invocation.
void GetSTDPercentError(double x[6])
void GetTestSTD(unsigned int x[3])
#define itkConceptMacro(name, concept)
Superclass::InputImagePointer InputImagePointer
void GetSTDTolerance(double x[6])
VoronoiSegmentationRGBImageFilter Self
Superclass::IndexType IndexType
Templated n-dimensional image class.
Superclass::InputImageType InputImageType
ImageBaseType::IndexType IndexType