18 #ifndef __itkVoronoiSegmentationRGBImageFilter_h
19 #define __itkVoronoiSegmentationRGBImageFilter_h
53 template<
class TInputImage,
class 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)
118 void GetTestMean(
unsigned int x[3])
120 x[0] = m_TestMean[0]; x[1] = m_TestMean[1]; x[2] = m_TestMean[2];
123 void GetTestSTD(
unsigned int x[3])
125 x[0] = m_TestSTD[0]; x[1] = m_TestSTD[1]; x[2] = m_TestSTD[2];
128 void TakeAPrior(
const BinaryObjectImage *aprior);
130 using Superclass::SetInput;
131 virtual void SetInput(
const InputImageType *input);
133 virtual void SetInput(
unsigned int,
const InputImageType *image);
136 itkStaticConstMacro(InputImageDimension,
unsigned int,
137 TInputImage::ImageDimension);
138 itkStaticConstMacro(OutputImageDimension,
unsigned int,
139 TOutputImage::ImageDimension);
142 #ifdef ITK_USE_CONCEPT_CHECKING
155 void PrintSelf(std::ostream & os,
Indent indent)
const;
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 virtual bool TestHomogeneity(
IndexList & Plist);
173 void operator=(
const Self &);
177 #ifndef ITK_MANUAL_INSTANTIATION
178 #include "itkVoronoiSegmentationRGBImageFilter.hxx"