ITK
5.0.0
Insight Segmentation and Registration Toolkit
|
#include <itkMRFImageFilter.h>
Implementation of a labeller object that uses Markov Random Fields to classify pixels in an image data set.
This object classifies pixels based on a Markov Random Field (MRF) model. This implementation uses the maximum a posteriori (MAP) estimates for modeling the MRF. The object traverses the data set and uses the model generated by the Mahalanobis distance classifier to get the distance between each pixel in the data set to a set of known classes, updates the distances by evaluating the influence of its neighboring pixels (based on a MRF model) and finally, classifies each pixel to the class which has the minimum distance to that pixel (taking the neighborhood influence under consideration). DoNeighborhoodOperation is the function that can be modified to achieve different falvors of MRF filters in derived classes.
The classified initial labeled image is needed. It is important that the number of expected classes be set before calling the classifier. In our case we have used the ImageClassifer using a Gaussian model to generate the initial labels. This classifier requires the user to ensure that an appropriate membership function is provided. See the documentation of the image classifier class for more information.
The influence of a neighborhood on a given pixel's classification (the MRF term) is computed by calculating a weighted sum of number of class labels in a three dimensional neighborhood. The basic idea of this neighborhood influence is that if a large number of neighbors of a pixel are of one class, then the current pixel is likely to be of the same class.
The dimensions of the neighborhood are the same as the input image dimensions, and values of the weighting parameters are either specified by the user or through the beta matrix parameter. The default weighting table is generated during object construction. The following table shows an example of a 3 x 3 x 3 neighborhood and the weighting values used. A 3 x 3 x 3 kernel is used where each value is a nonnegative parameter, which encourages neighbors to be of the same class. In this example, the influence of the pixels in the same slice is assigned a weight 1.7. The influence of the pixels in the same location in the previous and next slice is assigned a weight 1.5. A weight of 1.3 is assigned to the influence of the north, south, east, west, and diagonal pixels in the previous and next slices.
The user needs to set the neighborhood size using the SetNeighborhoodRadius function. The details on the semantics of a neighborhood can be found in the documentation associated with the itkNeighborhood and related objects. NOTE: The size of the neighborhood must match the size of the neighborhood weighting parameters set by the user.
For minimization of the MRF labeling function the MinimizeFunctional virtual method is called. For our current implementation we use the iterated conditional modes (ICM) algorithm described by Besag in the paper "On the Statistical Analysis of Dirty Pictures" in J. Royal Stat. Soc. B, Vol. 48, 1986.
In each iteration, the algorithm visits each pixel in turn and determines whether to update its classification by computing the influence of the classification of the pixel's neighbors and of the intensity data. On each iteration after the first, we reexamine the classification of a pixel only if the classification of some of its neighbors has changed in the previous iteration. The pixels' classification is updated using a synchronous scheme (iteration by iteration) until the error reaches less than the threshold or the number of iteration exceed the maximum set number of iterations. Note: The current implementation supports betaMatrix default weight for two and three dimensional images only. The default for higher dimension is set to unity. This should be overridden by custom weights after filter initialization.
Definition at line 125 of file itkMRFImageFilter.h.
Public Types | |
using | ClassifierType = ImageClassifierBase< TInputImage, TClassifiedImage > |
using | ConstPointer = SmartPointer< const Self > |
using | IndexValueType = typename LabelledImageIndexType::IndexValueType |
using | InputImageConstPointer = typename TInputImage::ConstPointer |
using | InputImageFaceListIterator = typename InputImageFaceListType::iterator |
using | InputImageFaceListType = typename InputImageFacesCalculator::FaceListType |
using | InputImageFacesCalculator = NeighborhoodAlgorithm::ImageBoundaryFacesCalculator< TInputImage > |
using | InputImageNeighborhoodIterator = ConstNeighborhoodIterator< TInputImage > |
using | InputImageNeighborhoodRadiusType = typename InputImageNeighborhoodIterator::RadiusType |
using | InputImagePixelType = typename TInputImage::PixelType |
using | InputImagePointer = typename TInputImage::Pointer |
using | InputImageRegionConstIterator = ImageRegionConstIterator< TInputImage > |
using | InputImageRegionIterator = ImageRegionIterator< TInputImage > |
using | InputImageRegionType = typename TInputImage::RegionType |
using | InputImageType = TInputImage |
using | LabelledImageFaceListIterator = typename LabelledImageFaceListType::iterator |
using | LabelledImageFaceListType = typename LabelledImageFacesCalculator::FaceListType |
using | LabelledImageFacesCalculator = NeighborhoodAlgorithm::ImageBoundaryFacesCalculator< TClassifiedImage > |
using | LabelledImageIndexType = typename TClassifiedImage::IndexType |
using | LabelledImageNeighborhoodIterator = NeighborhoodIterator< TClassifiedImage > |
using | LabelledImageNeighborhoodRadiusType = typename LabelledImageNeighborhoodIterator::RadiusType |
using | LabelledImageOffsetType = typename TClassifiedImage::OffsetType |
using | LabelledImagePixelType = typename TClassifiedImage::PixelType |
using | LabelledImagePointer = typename TClassifiedImage::Pointer |
using | LabelledImageRegionIterator = ImageRegionIterator< TClassifiedImage > |
using | LabelledImageRegionType = typename TClassifiedImage::RegionType |
using | NeighborhoodRadiusType = typename TInputImage::SizeType |
using | OutputImagePointer = typename Superclass::OutputImagePointer |
using | Pointer = SmartPointer< Self > |
using | Self = MRFImageFilter |
using | SizeType = typename TInputImage::SizeType |
enum | StopConditionType { MaximumNumberOfIterations = 1, ErrorTolerance } |
using | Superclass = ImageToImageFilter< TInputImage, TClassifiedImage > |
using | TrainingImagePixelType = typename TClassifiedImage::PixelType |
using | TrainingImagePointer = typename TClassifiedImage::Pointer |
Public Types inherited from itk::ImageToImageFilter< TInputImage, TClassifiedImage > | |
using | ConstPointer = SmartPointer< const Self > |
using | InputImageConstPointer = typename InputImageType::ConstPointer |
using | InputImagePixelType = typename InputImageType::PixelType |
using | InputImagePointer = typename InputImageType::Pointer |
using | InputImageRegionType = typename InputImageType::RegionType |
using | InputImageType = TInputImage |
using | OutputImagePixelType = typename Superclass::OutputImagePixelType |
using | OutputImageRegionType = typename Superclass::OutputImageRegionType |
using | Pointer = SmartPointer< Self > |
using | Self = ImageToImageFilter |
using | Superclass = ImageSource< TClassifiedImage > |
Public Types inherited from itk::ImageSource< TClassifiedImage > | |
using | ConstPointer = SmartPointer< const Self > |
using | DataObjectIdentifierType = Superclass::DataObjectIdentifierType |
using | DataObjectPointer = DataObject::Pointer |
using | DataObjectPointerArraySizeType = Superclass::DataObjectPointerArraySizeType |
using | OutputImagePixelType = typename OutputImageType::PixelType |
using | OutputImagePointer = typename OutputImageType::Pointer |
using | OutputImageRegionType = typename OutputImageType::RegionType |
using | OutputImageType = TClassifiedImage |
using | Pointer = SmartPointer< Self > |
using | Self = ImageSource |
using | Superclass = ProcessObject |
Public Types inherited from itk::ProcessObject | |
using | ConstPointer = SmartPointer< const Self > |
using | DataObjectIdentifierType = DataObject::DataObjectIdentifierType |
using | DataObjectPointer = DataObject::Pointer |
using | DataObjectPointerArray = std::vector< DataObjectPointer > |
using | DataObjectPointerArraySizeType = DataObjectPointerArray::size_type |
using | MultiThreaderType = MultiThreaderBase |
using | NameArray = std::vector< DataObjectIdentifierType > |
using | Pointer = SmartPointer< Self > |
using | Self = ProcessObject |
using | Superclass = Object |
Public Types inherited from itk::Object | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = Object |
using | Superclass = LightObject |
Public Types inherited from itk::LightObject | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = LightObject |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static constexpr unsigned int | ClassifiedImageDimension = TClassifiedImage::ImageDimension |
static constexpr unsigned int | InputImageDimension = TInputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TClassifiedImage > | |
static constexpr unsigned int | InputImageDimension |
static constexpr unsigned int | OutputImageDimension |
Static Public Attributes inherited from itk::ImageSource< TClassifiedImage > | |
static constexpr unsigned int | OutputImageDimension |
Protected Types | |
using | LabelStatusImageIterator = ImageRegionIterator< LabelStatusImageType > |
using | LabelStatusImageNeighborhoodIterator = NeighborhoodIterator< LabelStatusImageType > |
using | LabelStatusImagePointer = typename LabelStatusImageType::Pointer |
using | LabelStatusImageType = Image< int, Self::InputImageDimension > |
using | LabelStatusIndexType = typename LabelStatusImageType::IndexType |
using | LabelStatusRegionType = typename LabelStatusImageType::RegionType |
Protected Types inherited from itk::ImageToImageFilter< TInputImage, TClassifiedImage > | |
using | InputToOutputRegionCopierType = ImageToImageFilterDetail::ImageRegionCopier< Self::OutputImageDimension, Self::InputImageDimension > |
using | OutputToInputRegionCopierType = ImageToImageFilterDetail::ImageRegionCopier< Self::InputImageDimension, Self::OutputImageDimension > |
Private Types | |
using | InputImageSizeType = typename TInputImage::SizeType |
using | LabelStatusImageFaceListIterator = typename LabelStatusImageFaceListType::iterator |
using | LabelStatusImageFaceListType = typename LabelStatusImageFacesCalculator::FaceListType |
using | LabelStatusImageFacesCalculator = NeighborhoodAlgorithm::ImageBoundaryFacesCalculator< LabelStatusImageType > |
using | LabelStatusImageNeighborhoodRadiusType = typename LabelStatusImageNeighborhoodIterator::RadiusType |
Private Member Functions | |
void | ApplyICMLabeller () |
virtual void | SetDefaultMRFNeighborhoodWeight () |
Private Attributes | |
ClassifierType::Pointer | m_ClassifierPtr |
double * | m_ClassProbability {nullptr} |
std::vector< double > | m_DummyVector |
int | m_ErrorCounter {0} |
double | m_ErrorTolerance {0.2} |
InputImageNeighborhoodRadiusType | m_InputImageNeighborhoodRadius |
unsigned int | m_KernelSize |
LabelledImageNeighborhoodRadiusType | m_LabelledImageNeighborhoodRadius |
LabelStatusImagePointer | m_LabelStatusImage |
LabelStatusImageNeighborhoodRadiusType | m_LabelStatusImageNeighborhoodRadius |
std::vector< double > | m_MahalanobisDistance |
unsigned int | m_MaximumNumberOfIterations {50} |
std::vector< double > | m_MRFNeighborhoodWeight |
int | m_NeighborhoodSize {27} |
std::vector< double > | m_NeighborInfluence |
unsigned int | m_NumberOfClasses {0} |
unsigned int | m_NumberOfIterations {0} |
double | m_SmoothingFactor {1} |
StopConditionType | m_StopCondition |
int | m_TotalNumberOfPixelsInInputImage {1} |
int | m_TotalNumberOfValidPixelsInOutputImage {1} |
Additional Inherited Members | |
Static Protected Member Functions inherited from itk::ImageSource< TClassifiedImage > | |
static const ImageRegionSplitterBase * | GetGlobalDefaultSplitter () |
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION | ThreaderCallback (void *arg) |
Protected Attributes inherited from itk::ImageSource< TClassifiedImage > | |
bool | m_DynamicMultiThreading |
Protected Attributes inherited from itk::ProcessObject | |
TimeStamp | m_OutputInformationMTime |
bool | m_Updating |
Protected Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount |
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::ClassifierType = ImageClassifierBase< TInputImage, TClassifiedImage > |
Type definitions for classifier to be used for the MRF lavbelling.
Definition at line 194 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::ConstPointer = SmartPointer< const Self > |
Definition at line 135 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::IndexValueType = typename LabelledImageIndexType::IndexValueType |
Definition at line 182 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::InputImageConstPointer = typename TInputImage::ConstPointer |
Definition at line 147 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::InputImageFaceListIterator = typename InputImageFaceListType::iterator |
Definition at line 211 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::InputImageFaceListType = typename InputImageFacesCalculator::FaceListType |
Definition at line 209 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::InputImageFacesCalculator = NeighborhoodAlgorithm::ImageBoundaryFacesCalculator<TInputImage> |
Definition at line 207 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::InputImageNeighborhoodIterator = ConstNeighborhoodIterator<TInputImage> |
Input image neighborhood iterator and kernel size type alias
Definition at line 203 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::InputImageNeighborhoodRadiusType = typename InputImageNeighborhoodIterator::RadiusType |
Definition at line 205 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::InputImagePixelType = typename TInputImage::PixelType |
Type definition for the input image pixel type.
Definition at line 150 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::InputImagePointer = typename TInputImage::Pointer |
Definition at line 146 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::InputImageRegionConstIterator = ImageRegionConstIterator< TInputImage > |
Definition at line 157 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::InputImageRegionIterator = ImageRegionIterator< TInputImage > |
Type definition for the input image region iterator
Definition at line 156 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::InputImageRegionType = typename TInputImage::RegionType |
Type definition for the input image region type.
Definition at line 153 of file itkMRFImageFilter.h.
|
private |
Definition at line 352 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::InputImageType = TInputImage |
Type definition for the input image.
Definition at line 145 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::LabelledImageFaceListIterator = typename LabelledImageFaceListType::iterator |
Definition at line 222 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::LabelledImageFaceListType = typename LabelledImageFacesCalculator::FaceListType |
Definition at line 220 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::LabelledImageFacesCalculator = NeighborhoodAlgorithm::ImageBoundaryFacesCalculator< TClassifiedImage > |
Definition at line 218 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::LabelledImageIndexType = typename TClassifiedImage::IndexType |
Type definition for the classified image index type.
Definition at line 181 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::LabelledImageNeighborhoodIterator = NeighborhoodIterator< TClassifiedImage > |
Labelled image neighborhood interator type alias
Definition at line 214 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::LabelledImageNeighborhoodRadiusType = typename LabelledImageNeighborhoodIterator::RadiusType |
Definition at line 216 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::LabelledImageOffsetType = typename TClassifiedImage::OffsetType |
Type definition for the classified image offset type.
Definition at line 185 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::LabelledImagePixelType = typename TClassifiedImage::PixelType |
Type definitions for the classified image pixel type. It has to be the same type as the training image.
Definition at line 174 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::LabelledImagePointer = typename TClassifiedImage::Pointer |
Type definitions for the labelled image. It is derived from the training image.
Definition at line 170 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::LabelledImageRegionIterator = ImageRegionIterator< TClassifiedImage > |
Type definition for the input image region iterator
Definition at line 188 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::LabelledImageRegionType = typename TClassifiedImage::RegionType |
Type definitions for the classified image pixel type. It has to be the same type as the training image.
Definition at line 178 of file itkMRFImageFilter.h.
|
private |
Definition at line 360 of file itkMRFImageFilter.h.
|
private |
Definition at line 358 of file itkMRFImageFilter.h.
|
private |
Definition at line 356 of file itkMRFImageFilter.h.
|
protected |
Definition at line 333 of file itkMRFImageFilter.h.
|
protected |
Labelled status image neighborhood interator type alias
Definition at line 336 of file itkMRFImageFilter.h.
|
private |
Definition at line 354 of file itkMRFImageFilter.h.
|
protected |
Definition at line 332 of file itkMRFImageFilter.h.
|
protected |
Definition at line 329 of file itkMRFImageFilter.h.
|
protected |
Definition at line 330 of file itkMRFImageFilter.h.
|
protected |
Definition at line 331 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::NeighborhoodRadiusType = typename TInputImage::SizeType |
Radius type alias support
Definition at line 200 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::OutputImagePointer = typename Superclass::OutputImagePointer |
Definition at line 136 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::Pointer = SmartPointer< Self > |
Definition at line 134 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::Self = MRFImageFilter |
Standard class type aliases.
Definition at line 132 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::SizeType = typename TInputImage::SizeType |
Size and value type alias support
Definition at line 197 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::Superclass = ImageToImageFilter< TInputImage, TClassifiedImage > |
Definition at line 133 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::TrainingImagePixelType = typename TClassifiedImage::PixelType |
Type definitions for the training image pixel type.
Definition at line 166 of file itkMRFImageFilter.h.
using itk::MRFImageFilter< TInputImage, TClassifiedImage >::TrainingImagePointer = typename TClassifiedImage::Pointer |
Type definitions for the training image.
Definition at line 163 of file itkMRFImageFilter.h.
enum itk::MRFImageFilter::StopConditionType |
Enumerator | |
---|---|
MaximumNumberOfIterations | |
ErrorTolerance |
Definition at line 285 of file itkMRFImageFilter.h.
|
protected |
|
overrideprotecteddefault |
|
protected |
Allocate memory for labelled images.
|
private |
|
protectedvirtual |
Apply MRF Classifier. In this example the images are labelled using Iterated Conditional Mode algorithm by J. Besag, "On statistical analysis of dirty pictures," J. Royal Stat. Soc. B, vol. 48, pp. 259-302, 1986.
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
Reimplemented in itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >.
|
protectedvirtual |
|
overrideprotectedvirtual |
Give the process object a chance to indictate that it will produce more output than it was requested to produce. For example, many imaging filters must compute the entire output at once or can only produce output in complete slices. Such filters cannot handle smaller requested regions. These filters must provide an implementation of this method, setting the output requested region to the size they will produce. By default, a process object does not modify the size of the output requested region.
Reimplemented from itk::ProcessObject.
|
overrideprotectedvirtual |
This method causes the filter to generate its output.
Reimplemented from itk::ProcessObject.
Reimplemented in itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >.
|
overrideprotectedvirtual |
What is the input requested region that is required to produce the output requested region? By default, the largest possible region is always required but this is overridden in many subclasses. For instance, for an image processing filter where an output pixel is a simple function of an input pixel, the input requested region will be set to the output requested region. For an image processing filter where an output pixel is a function of the pixels in a neighborhood of an input pixel, then the input requested region will need to be larger than the output requested region (to avoid introducing artificial boundary conditions). This function should never request an input region that is outside the the input largest possible region (i.e. implementations of this method should crop the input requested region at the boundaries of the input largest possible region).
Reimplemented from itk::ProcessObject.
|
overrideprotectedvirtual |
Generate the information describing the output data. The default implementation of this method will copy information from the input to the output. A filter may override this method if its output will have different information than its input. For instance, a filter that shrinks an image will need to provide an implementation for this method that changes the spacing of the pixels. Such filters should call their superclass' implementation of this method prior to changing the information values they need (i.e. GenerateOutputInformation() should call Superclass::GenerateOutputInformation() prior to changing the information.
Reimplemented from itk::ProcessObject.
|
virtual |
Set/Get the error tollerance level which is used as a threshold to quit the iterations
|
virtual |
Set/Get the number of iteration of the Iterated Conditional Mode (ICM) algorithm. A default value is set at 50 iterations.
Reimplemented in itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >.
|
inlinevirtual |
Definition at line 279 of file itkMRFImageFilter.h.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ImageToImageFilter< TInputImage, TClassifiedImage >.
Reimplemented in itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >.
|
inline |
Get the neighborhood radius
Definition at line 261 of file itkMRFImageFilter.h.
|
virtual |
Set/Get the number of classes.
Reimplemented in itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >.
|
virtual |
|
virtual |
Set/Get the degree of smoothing desired
|
virtual |
Get condition that stops the MRF filter (Number of Iterations / Error tolerance )
|
protectedvirtual |
Minimization algorithm to be used.
Reimplemented in itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >.
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::ProcessObject.
Reimplemented in itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >.
void itk::MRFImageFilter< TInputImage, TClassifiedImage >::SetClassifier | ( | typename ClassifierType::Pointer | ptrToClassifier | ) |
Set the pointer to the classifer being used.
|
privatevirtual |
Set/Get the weighting parameters (Beta Matrix). A default 3 x 3 x 3 matrix is provided. However, the user is allowed to override it with their choice of weights for a 3 x 3 x 3 matrix.
|
virtual |
Set/Get the error tollerance level which is used as a threshold to quit the iterations
|
virtual |
Set/Get the number of iteration of the Iterated Conditional Mode (ICM) algorithm. A default value is set at 50 iterations.
Reimplemented in itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >.
|
virtual |
Set the weighting parameters (used in MRF algorithms). This is a function allowing the users to set the weight matrix by providing a a 1D array of weights. The default implementation supports a 3 x 3 x 3 kernel. The labeler needs to be extended for a different kernel size.
void itk::MRFImageFilter< TInputImage, TClassifiedImage >::SetNeighborhoodRadius | ( | const NeighborhoodRadiusType & | ) |
Set the neighborhood radius
void itk::MRFImageFilter< TInputImage, TClassifiedImage >::SetNeighborhoodRadius | ( | const SizeValueType | ) |
Sets the radius for the neighborhood, calculates size from the radius, and allocates storage.
void itk::MRFImageFilter< TInputImage, TClassifiedImage >::SetNeighborhoodRadius | ( | const SizeValueType * | radiusArray | ) |
|
virtual |
Set/Get the number of classes.
Reimplemented in itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >.
|
virtual |
Set/Get the degree of smoothing desired
|
static |
Labelled Image dimension
Definition at line 191 of file itkMRFImageFilter.h.
|
static |
Image dimension
Definition at line 160 of file itkMRFImageFilter.h.
|
private |
Pointer to the classifier to be used for the MRF labelling.
Definition at line 388 of file itkMRFImageFilter.h.
|
private |
Definition at line 376 of file itkMRFImageFilter.h.
|
private |
Definition at line 385 of file itkMRFImageFilter.h.
|
private |
Definition at line 370 of file itkMRFImageFilter.h.
|
private |
Definition at line 374 of file itkMRFImageFilter.h.
|
private |
Definition at line 362 of file itkMRFImageFilter.h.
|
private |
Definition at line 368 of file itkMRFImageFilter.h.
|
private |
Definition at line 363 of file itkMRFImageFilter.h.
|
private |
Definition at line 380 of file itkMRFImageFilter.h.
|
private |
Definition at line 364 of file itkMRFImageFilter.h.
|
private |
Definition at line 384 of file itkMRFImageFilter.h.
|
private |
Definition at line 367 of file itkMRFImageFilter.h.
|
private |
Definition at line 382 of file itkMRFImageFilter.h.
|
private |
Definition at line 371 of file itkMRFImageFilter.h.
|
private |
Definition at line 383 of file itkMRFImageFilter.h.
|
private |
Definition at line 366 of file itkMRFImageFilter.h.
|
private |
Definition at line 377 of file itkMRFImageFilter.h.
|
private |
Definition at line 375 of file itkMRFImageFilter.h.
|
private |
Definition at line 378 of file itkMRFImageFilter.h.
|
private |
Definition at line 373 of file itkMRFImageFilter.h.
|
private |
Definition at line 372 of file itkMRFImageFilter.h.