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; }
116 itkSetMacro(NumberOfClasses,
unsigned int);
119 itkGetConstMacro(NumberOfClasses,
unsigned int);
130 itkSetMacro(ClusterSize,
unsigned int);
137 TInputImage::ImageDimension);
141 itkSetMacro(BoundaryGradient,
unsigned int);
143 itkSetMacro(ObjectThreshold,
double);
146 itkSetMacro(CliqueWeight_1,
double);
147 itkGetConstMacro(CliqueWeight_1,
double);
148 itkSetMacro(CliqueWeight_2,
double);
149 itkGetConstMacro(CliqueWeight_2,
double);
150 itkSetMacro(CliqueWeight_3,
double);
151 itkGetConstMacro(CliqueWeight_3,
double);
152 itkSetMacro(CliqueWeight_4,
double);
153 itkGetConstMacro(CliqueWeight_4,
double);
154 itkSetMacro(CliqueWeight_5,
double);
155 itkGetConstMacro(CliqueWeight_5,
double);
156 itkSetMacro(CliqueWeight_6,
double);
157 itkGetConstMacro(CliqueWeight_6,
double);
178 #ifdef ITK_USE_CONCEPT_CHECKING
182 itkGetStaticConstMacro(ClassifiedImageType::ImageDimension) > ) );
269 double GibbsEnergy(
unsigned int i,
unsigned int k,
unsigned int k1);
287 #ifndef ITK_MANUAL_INSTANTIATION
288 #include "itkRGBGibbsPriorFilter.hxx"
void SetClassifier(typename ClassifierType::Pointer ptrToClassifier)
virtual void MinimizeFunctional()
SmartPointer< Self > Pointer
Light weight base class for most itk classes.
LabelledImageIndexType::IndexValueType IndexValueType
TClassifiedImage::PixelType LabelledImagePixelType
SmartPointer< Self > Pointer
TClassifiedImage ClassifiedImageType
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.
Implementation of a labeller object that uses Markov Random Fields to classify pixels in an image dat...
TInputImage::PixelType InputImageVecType
LabelledImageType GetLabelledImage()
ImageRegionIterator< TClassifiedImage > LabelledImageRegionIterator
unsigned int m_ImageHeight
ImageRegionConstIterator< TInputImage > InputImageRegionConstIterator
TClassifiedImage::Pointer TrainingImageType
TInputImage::IndexType IndexType
Superclass::IndexValueType IndexValueType
TInputImage::Pointer InputImagePointer
Superclass::LabelledImageRegionIterator LabelledImageRegionIterator
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()
void PrintSelf(std::ostream &os, Indent indent) const
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)
Superclass::InputImageRegionIterator InputImageRegionIterator
#define itkConceptMacro(name, concept)
TInputImage::PixelType InputPixelType
virtual void GenerateData()
TInputImage InputImageType
void SetLabelledImage(LabelledImageType LabelledImage)
unsigned int m_ImageDepth