18 #ifndef itkRGBGibbsPriorFilter_h
19 #define itkRGBGibbsPriorFilter_h
21 #include "vnl/vnl_vector.h"
22 #include "vnl/vnl_matrix.h"
46 template<
typename TInputImage,
typename TClassifiedImage >
110 {
return m_LabelledImage; }
118 itkDebugMacro(
"setting NumberOfClasses to " << numberOfClasses );
137 itkDebugMacro(
"setting MaximumNumberOfIterations to " << numberOfIterations);
154 itkSetMacro(ClusterSize,
unsigned int);
161 TInputImage::ImageDimension);
165 itkSetMacro(BoundaryGradient,
unsigned int);
167 itkSetMacro(ObjectThreshold,
double);
170 itkSetMacro(CliqueWeight_1,
double);
171 itkGetConstMacro(CliqueWeight_1,
double);
172 itkSetMacro(CliqueWeight_2,
double);
173 itkGetConstMacro(CliqueWeight_2,
double);
174 itkSetMacro(CliqueWeight_3,
double);
175 itkGetConstMacro(CliqueWeight_3,
double);
176 itkSetMacro(CliqueWeight_4,
double);
177 itkGetConstMacro(CliqueWeight_4,
double);
178 itkSetMacro(CliqueWeight_5,
double);
179 itkGetConstMacro(CliqueWeight_5,
double);
180 itkSetMacro(CliqueWeight_6,
double);
181 itkGetConstMacro(CliqueWeight_6,
double);
202 #ifdef ITK_USE_CONCEPT_CHECKING
206 itkGetStaticConstMacro(ClassifiedImageType::ImageDimension) > ) );
293 double GibbsEnergy(
unsigned int i,
unsigned int k,
unsigned int k1);
311 #ifndef ITK_MANUAL_INSTANTIATION
312 #include "itkRGBGibbsPriorFilter.hxx"
unsigned int m_NumberOfClasses
void SetClassifier(typename ClassifierType::Pointer ptrToClassifier)
SmartPointer< Self > Pointer
Light weight base class for most itk classes.
LabelledImageIndexType::IndexValueType IndexValueType
virtual void SetNumberOfClasses(const unsigned int numberOfClasses) override
TClassifiedImage::PixelType LabelledImagePixelType
SmartPointer< Self > Pointer
TClassifiedImage ClassifiedImageType
virtual void MinimizeFunctional() override
Superclass::InputImageRegionConstIterator InputImageRegionConstIterator
virtual void ApplyGPImageFilter()
TInputImage::SizeType InputImageSizeType
TInputImage::PixelType InputImagePixelType
ImageRegionIterator< TInputImage > InputImageRegionIterator
SmartPointer< const Self > ConstPointer
void GibbsTotalEnergy(int i)
TClassifiedImage::Pointer LabelledImageType
ClassifierType::Pointer m_ClassifierPtr
TClassifiedImage::IndexType LabelledImageIndexType
Base class for the ImageClassifierBase object.
virtual void SetMaximumNumberOfIterations(const unsigned int numberOfIterations) override
Implementation of a labeller object that uses Markov Random Fields to classify pixels in an image dat...
virtual unsigned int GetNumberOfClasses() const override
TInputImage::PixelType InputImageVecType
unsigned int m_MaximumNumberOfIterations
LabelledImageType GetLabelledImage()
ImageRegionIterator< TClassifiedImage > LabelledImageRegionIterator
unsigned int m_ImageHeight
virtual unsigned int GetMaximumNumberOfIterations() const override
ImageRegionConstIterator< TInputImage > InputImageRegionConstIterator
TClassifiedImage::Pointer TrainingImageType
TInputImage::IndexType IndexType
Superclass::IndexValueType IndexValueType
TInputImage::Pointer InputImagePointer
Superclass::LabelledImageRegionIterator LabelledImageRegionIterator
virtual void Modified() const
Superclass::InputImagePixelType InputImagePixelType
Superclass::LabelledImagePixelType LabelledImagePixelType
double GibbsEnergy(unsigned int i, unsigned int k, unsigned int k1)
static const unsigned int ImageDimension
virtual void ApplyGibbsLabeller()
The RGBGibbsPriorFilter applies Gibbs Prior model for the segmentation of MRF images.
vnl_matrix< double > MatrixType
void operator=(const Self &)
TInputImage::ConstPointer InputImageConstPointer
Control indentation during Print() invocation.
ImageClassifierBase< TInputImage, TClassifiedImage > ClassifierType
MRFImageFilter< TInputImage, TClassifiedImage > Superclass
void SetTrainingImage(TrainingImageType image)
virtual void GenerateData() override
Superclass::InputImageRegionIterator InputImageRegionIterator
#define itkConceptMacro(name, concept)
TInputImage::PixelType InputPixelType
void PrintSelf(std::ostream &os, Indent indent) const override
TInputImage InputImageType
void SetLabelledImage(LabelledImageType LabelledImage)
unsigned int m_ImageDepth