Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::MRFImageFilter< TInputImage, TClassifiedImage > Class Template Reference
[Markov Random Field-based Filters]

#include <itkMRFImageFilter.h>

Inheritance diagram for itk::MRFImageFilter< TInputImage, TClassifiedImage >:

Inheritance graph
[legend]
Collaboration diagram for itk::MRFImageFilter< TInputImage, TClassifiedImage >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class TInputImage, class TClassifiedImage>
class itk::MRFImageFilter< TInputImage, TClassifiedImage >

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 gets the 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 a 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 functions be 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 is same as the input image dimension and values of the weighting parameters are either specified by the user through the beta matrix parameter. The default weighting table is generated during object construction. The following table shows an example of a 3x3x3 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, while a weight 1.3 is assigned to the influence of the north, south, east, west and diagonal pixels in the previous and next slices.

\[\begin{tabular}{ccc} \begin{tabular}{|c|c|c|} 1.3 & 1.3 & 1.3 \\ 1.3 & 1.5 & 1.3 \\ 1.3 & 1.3 & 1.3 \\ \end{tabular} & \begin{tabular}{|c|c|c|} 1.7 & 1.7 & 1.7 \\ 1.7 & 0 & 1.7 \\ 1.7 & 1.7 & 1.7 \\ \end{tabular} & \begin{tabular}{|c|c|c|} 1.3 & 1.3 & 1.3 \\ 1.5 & 1.5 & 1.3 \\ 1.3 & 1.3 & 1.3 \\ \end{tabular} \\ \end{tabular}\]

The user needs to set the neighborhood size using the SetNeighborhoodRadius functions. 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 with 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 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 over ridded by custom weights after filter initialization.

See also:
Neighborhood

ImageIterator

NeighborhoodIterator

Classifier

Definition at line 131 of file itkMRFImageFilter.h.

Public Types

typedef ImageClassifierBase<
TInputImage, TClassifiedImage > 
ClassifierType
typedef SmartPointer< const
Self
ConstPointer
typedef DataObject::Pointer DataObjectPointer
typedef std::vector< DataObjectPointerDataObjectPointerArray
typedef DataObjectPointerArray::size_type DataObjectPointerArraySizeType
typedef LabelledImageIndexType::IndexValueType IndexValueType
typedef TInputImage::ConstPointer InputImageConstPointer
typedef InputImageFaceListType::iterator InputImageFaceListIterator
typedef InputImageFacesCalculator::FaceListType InputImageFaceListType
typedef NeighborhoodAlgorithm::ImageBoundaryFacesCalculator<
TInputImage > 
InputImageFacesCalculator
typedef ConstNeighborhoodIterator<
TInputImage > 
InputImageNeighborhoodIterator
typedef InputImageNeighborhoodIterator::RadiusType InputImageNeighborhoodRadiusType
typedef TInputImage::PixelType InputImagePixelType
typedef TInputImage::Pointer InputImagePointer
typedef ImageRegionConstIterator<
TInputImage > 
InputImageRegionConstIterator
typedef ImageRegionIterator<
TInputImage > 
InputImageRegionIterator
typedef TInputImage::RegionType InputImageRegionType
typedef TInputImage InputImageType
typedef LabelledImageFaceListType::iterator LabelledImageFaceListIterator
typedef LabelledImageFacesCalculator::FaceListType LabelledImageFaceListType
typedef NeighborhoodAlgorithm::ImageBoundaryFacesCalculator<
TClassifiedImage > 
LabelledImageFacesCalculator
typedef TClassifiedImage::IndexType LabelledImageIndexType
typedef NeighborhoodIterator<
TClassifiedImage > 
LabelledImageNeighborhoodIterator
typedef LabelledImageNeighborhoodIterator::RadiusType LabelledImageNeighborhoodRadiusType
typedef TClassifiedImage::OffsetType LabelledImageOffsetType
typedef TClassifiedImage::PixelType LabelledImagePixelType
typedef TClassifiedImage::Pointer LabelledImagePointer
typedef ImageRegionIterator<
TClassifiedImage > 
LabelledImageRegionIterator
typedef TClassifiedImage::RegionType LabelledImageRegionType
typedef TInputImage::SizeType NeighborhoodRadiusType
typedef Superclass::OutputImagePixelType OutputImagePixelType
typedef Superclass::OutputImagePointer OutputImagePointer
typedef Superclass::OutputImageRegionType OutputImageRegionType
typedef TClassifiedImage OutputImageType
typedef SmartPointer< SelfPointer
typedef MRFImageFilter Self
typedef TInputImage::SizeType SizeType
enum  StopConditionType {
  MaximumNumberOfIterations = 1,
  ErrorTolerance
}
typedef ImageToImageFilter<
TInputImage, TClassifiedImage > 
Superclass
typedef TClassifiedImage::PixelType TrainingImagePixelType
typedef TClassifiedImage::Pointer TrainingImagePointer

Public Member Functions

virtual void AbortGenerateDataOff ()
virtual void AbortGenerateDataOn ()
virtual LightObject::Pointer CreateAnother () const
virtual void DebugOff () const
virtual void DebugOn () const
virtual void Delete ()
virtual const bool & GetAbortGenerateData ()
CommandGetCommand (unsigned long tag)
bool GetDebug () const
const InputImageTypeGetInput (unsigned int idx)
const InputImageTypeGetInput (void)
DataObjectPointerArrayGetInputs ()
const MetaDataDictionaryGetMetaDataDictionary (void) const
MetaDataDictionaryGetMetaDataDictionary (void)
virtual unsigned long GetMTime () const
MultiThreaderGetMultiThreader ()
virtual const char * GetNameOfClass () const
const NeighborhoodRadiusType GetNeighborhoodRadius () const
DataObjectPointerArraySizeType GetNumberOfInputs () const
virtual const unsigned int & GetNumberOfIterations ()
virtual DataObjectPointerArraySizeType GetNumberOfValidRequiredInputs () const
OutputImageTypeGetOutput (unsigned int idx)
OutputImageTypeGetOutput (void)
virtual const float & GetProgress ()
virtual int GetReferenceCount () const
virtual const StopConditionTypeGetStopCondition ()
virtual void GraftNthOutput (unsigned int idx, DataObject *output)
virtual void GraftOutput (DataObject *output)
bool HasObserver (const EventObject &event) const
void InvokeEvent (const EventObject &) const
void InvokeEvent (const EventObject &)
 itkStaticConstMacro (OutputImageDimension, unsigned int, TClassifiedImage::ImageDimension)
 itkStaticConstMacro (ClassifiedImageDimension, unsigned int, TClassifiedImage::ImageDimension)
 itkStaticConstMacro (InputImageDimension, unsigned int, TInputImage::ImageDimension)
virtual DataObjectPointer MakeOutput (unsigned int idx)
virtual void Modified () const
virtual void PopBackInput ()
virtual void PopFrontInput ()
virtual void PrepareOutputs ()
void Print (std::ostream &os, Indent indent=0) const
virtual void PropagateRequestedRegion (DataObject *output)
virtual void PushBackInput (const InputImageType *image)
virtual void PushFrontInput (const InputImageType *image)
virtual void Register () const
void RemoveAllObservers ()
void RemoveObserver (unsigned long tag)
virtual void ResetPipeline ()
virtual void SetAbortGenerateData (bool _arg)
void SetClassifier (typename ClassifierType::Pointer ptrToClassifier)
void SetDebug (bool debugFlag) const
virtual void SetInput (unsigned int, const TInputImage *image)
virtual void SetInput (const InputImageType *image)
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
void SetNeighborhoodRadius (const unsigned long *radiusArray)
void SetNeighborhoodRadius (const unsigned long)
void SetNeighborhoodRadius (const NeighborhoodRadiusType &)
virtual void SetProgress (float _arg)
virtual void SetReferenceCount (int)
virtual void UnRegister () const
virtual void Update ()
virtual void UpdateLargestPossibleRegion ()
virtual void UpdateOutputData (DataObject *output)
virtual void UpdateOutputInformation ()
void UpdateProgress (float amount)
unsigned long AddObserver (const EventObject &event, Command *) const
unsigned long AddObserver (const EventObject &event, Command *)
virtual double GetErrorTolerance ()
virtual void SetErrorTolerance (double _arg)
virtual unsigned int GetMaximumNumberOfIterations ()
virtual void SetMaximumNumberOfIterations (unsigned int _arg)
virtual std::vector< double > GetMRFNeighborhoodWeight ()
virtual void SetMRFNeighborhoodWeight (std::vector< double > BetaMatrix)
virtual unsigned int GetNumberOfClasses ()
virtual void SetNumberOfClasses (unsigned int _arg)
DataObjectPointerArraySizeType GetNumberOfOutputs () const
DataObjectPointerArrayGetOutputs ()
virtual const int & GetNumberOfThreads ()
virtual void SetNumberOfThreads (int _arg)
virtual const bool & GetReleaseDataBeforeUpdateFlag ()
virtual void ReleaseDataBeforeUpdateFlagOff ()
virtual void ReleaseDataBeforeUpdateFlagOn ()
virtual void SetReleaseDataBeforeUpdateFlag (bool _arg)
virtual bool GetReleaseDataFlag () const
void ReleaseDataFlagOff ()
void ReleaseDataFlagOn ()
virtual void SetReleaseDataFlag (bool flag)
virtual double GetSmoothingFactor ()
virtual void SetSmoothingFactor (double _arg)

Static Public Member Functions

static void BreakOnError ()
static Pointer New ()
static bool GetGlobalWarningDisplay ()
static void GlobalWarningDisplayOff ()
static void GlobalWarningDisplayOn ()
static void SetGlobalWarningDisplay (bool flag)

Protected Types

typedef ImageToImageFilterDetail::ImageRegionCopier<
itkGetStaticConstMacro(OutputImageDimension),
itkGetStaticConstMacro(InputImageDimension)> 
InputToOutputRegionCopierType
typedef ImageRegionIterator<
LabelStatusImageType
LabelStatusImageIterator
typedef NeighborhoodIterator<
LabelStatusImageType
LabelStatusImageNeighborhoodIterator
typedef LabelStatusImageType::Pointer LabelStatusImagePointer
typedef Image< int, itkGetStaticConstMacro(InputImageDimension) > LabelStatusImageType
typedef LabelStatusImageType::IndexType LabelStatusIndexType
typedef LabelStatusImageType::RegionType LabelStatusRegionType
typedef ImageToImageFilterDetail::ImageRegionCopier<
itkGetStaticConstMacro(InputImageDimension),
itkGetStaticConstMacro(OutputImageDimension)> 
OutputToInputRegionCopierType

Protected Member Functions

virtual void AfterThreadedGenerateData ()
void Allocate ()
virtual void AllocateOutputs ()
virtual void ApplyMRFImageFilter ()
virtual void BeforeThreadedGenerateData ()
virtual void CacheInputReleaseDataFlags ()
virtual void CallCopyInputRegionToOutputRegion (OutputImageRegionType &destRegion, const InputImageRegionType &srcRegion)
virtual void CallCopyOutputRegionToInputRegion (InputImageRegionType &destRegion, const OutputImageRegionType &srcRegion)
virtual void DoNeighborhoodOperation (const InputImageNeighborhoodIterator &imageIter, LabelledImageNeighborhoodIterator &labelledIter, LabelStatusImageNeighborhoodIterator &labelStatusIter)
virtual void EnlargeOutputRequestedRegion (DataObject *)
virtual void GenerateData ()
virtual void GenerateInputRequestedRegion ()
virtual void GenerateOutputInformation ()
virtual void GenerateOutputRequestedRegion (DataObject *output)
virtual void MinimizeFunctional ()
 MRFImageFilter ()
bool PrintObservers (std::ostream &os, Indent indent) const
void PrintSelf (std::ostream &os, Indent indent) const
virtual void PropagateResetPipeline ()
void PushBackInput (const DataObject *input)
void PushFrontInput (const DataObject *input)
virtual void ReleaseInputs ()
virtual void RestoreInputReleaseDataFlags ()
void SetNumberOfInputs (unsigned int num)
void SetNumberOfOutputs (unsigned int num)
virtual int SplitRequestedRegion (int i, int num, OutputImageRegionType &splitRegion)
virtual void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, int threadId) ITK_NO_RETURN
 ~MRFImageFilter ()
virtual void AddInput (DataObject *input)
virtual const unsigned int & GetNumberOfRequiredInputs ()
virtual void RemoveInput (DataObject *input)
virtual void SetNthInput (unsigned int num, DataObject *input)
virtual void SetNumberOfRequiredInputs (unsigned int _arg)
virtual void AddOutput (DataObject *output)
virtual const unsigned int & GetNumberOfRequiredOutputs ()
virtual void RemoveOutput (DataObject *output)
virtual void SetNthOutput (unsigned int num, DataObject *output)
virtual void SetNumberOfRequiredOutputs (unsigned int _arg)
const DataObjectGetInput (unsigned int idx) const
const DataObjectGetOutput (unsigned int idx) const
virtual void PrintHeader (std::ostream &os, Indent indent) const
virtual void PrintTrailer (std::ostream &os, Indent indent) const

Static Protected Member Functions

static ITK_THREAD_RETURN_TYPE ThreaderCallback (void *arg)

Protected Attributes

TimeStamp m_OutputInformationMTime
volatile int m_ReferenceCount
SimpleFastMutexLock m_ReferenceCountLock
bool m_Updating


Member Typedef Documentation

template<class TInputImage, class TClassifiedImage>
typedef ImageClassifierBase<TInputImage,TClassifiedImage> itk::MRFImageFilter< TInputImage, TClassifiedImage >::ClassifierType

Type definitions for classifier to be used for the MRF lavbelling.

Reimplemented in itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >.

Definition at line 201 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef SmartPointer<const Self> itk::MRFImageFilter< TInputImage, TClassifiedImage >::ConstPointer

Reimplemented from itk::ImageToImageFilter< TInputImage, TClassifiedImage >.

Reimplemented in itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >.

Definition at line 139 of file itkMRFImageFilter.h.

typedef DataObject::Pointer itk::ImageSource< TClassifiedImage >::DataObjectPointer [inherited]

Smart Pointer type to a DataObject.

Reimplemented from itk::ProcessObject.

Definition at line 62 of file itkImageSource.h.

typedef std::vector<DataObjectPointer> itk::ProcessObject::DataObjectPointerArray [inherited]

STL Array of SmartPointers to DataObjects

Definition at line 103 of file itkProcessObject.h.

typedef DataObjectPointerArray::size_type itk::ProcessObject::DataObjectPointerArraySizeType [inherited]

Size type of an std::vector

Definition at line 112 of file itkProcessObject.h.

template<class TInputImage, class TClassifiedImage>
typedef LabelledImageIndexType::IndexValueType itk::MRFImageFilter< TInputImage, TClassifiedImage >::IndexValueType

Reimplemented in itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >.

Definition at line 187 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TInputImage::ConstPointer itk::MRFImageFilter< TInputImage, TClassifiedImage >::InputImageConstPointer

Reimplemented from itk::ImageToImageFilter< TInputImage, TClassifiedImage >.

Reimplemented in itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >.

Definition at line 151 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef InputImageFaceListType::iterator itk::MRFImageFilter< TInputImage, TClassifiedImage >::InputImageFaceListIterator

Definition at line 223 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef InputImageFacesCalculator::FaceListType itk::MRFImageFilter< TInputImage, TClassifiedImage >::InputImageFaceListType

Definition at line 220 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef NeighborhoodAlgorithm::ImageBoundaryFacesCalculator< TInputImage > itk::MRFImageFilter< TInputImage, TClassifiedImage >::InputImageFacesCalculator

Definition at line 217 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef ConstNeighborhoodIterator< TInputImage > itk::MRFImageFilter< TInputImage, TClassifiedImage >::InputImageNeighborhoodIterator

Input image neighborhood iterator and kernel size typedef

Definition at line 211 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef InputImageNeighborhoodIterator::RadiusType itk::MRFImageFilter< TInputImage, TClassifiedImage >::InputImageNeighborhoodRadiusType

Definition at line 214 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TInputImage::PixelType itk::MRFImageFilter< TInputImage, TClassifiedImage >::InputImagePixelType

Type definition for the input image pixel type.

Reimplemented from itk::ImageToImageFilter< TInputImage, TClassifiedImage >.

Reimplemented in itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >.

Definition at line 154 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TInputImage::Pointer itk::MRFImageFilter< TInputImage, TClassifiedImage >::InputImagePointer

Reimplemented from itk::ImageToImageFilter< TInputImage, TClassifiedImage >.

Reimplemented in itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >.

Definition at line 150 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef ImageRegionConstIterator<TInputImage> itk::MRFImageFilter< TInputImage, TClassifiedImage >::InputImageRegionConstIterator

Reimplemented in itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >.

Definition at line 161 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef ImageRegionIterator<TInputImage> itk::MRFImageFilter< TInputImage, TClassifiedImage >::InputImageRegionIterator

Type definition for the input image region iterator

Reimplemented in itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >.

Definition at line 160 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TInputImage::RegionType itk::MRFImageFilter< TInputImage, TClassifiedImage >::InputImageRegionType

Type definition for the input image region type.

Reimplemented from itk::ImageToImageFilter< TInputImage, TClassifiedImage >.

Definition at line 157 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TInputImage itk::MRFImageFilter< TInputImage, TClassifiedImage >::InputImageType

Type definition for the input image.

Reimplemented from itk::ImageToImageFilter< TInputImage, TClassifiedImage >.

Reimplemented in itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >.

Definition at line 146 of file itkMRFImageFilter.h.

typedef ImageToImageFilterDetail::ImageRegionCopier<itkGetStaticConstMacro(OutputImageDimension), itkGetStaticConstMacro(InputImageDimension)> itk::ImageToImageFilter< TInputImage , TClassifiedImage >::InputToOutputRegionCopierType [protected, inherited]

Typedef for the region copier function object that converts an input region to an output region.

Definition at line 164 of file itkImageToImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef LabelledImageFaceListType::iterator itk::MRFImageFilter< TInputImage, TClassifiedImage >::LabelledImageFaceListIterator

Definition at line 239 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef LabelledImageFacesCalculator::FaceListType itk::MRFImageFilter< TInputImage, TClassifiedImage >::LabelledImageFaceListType

Definition at line 236 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef NeighborhoodAlgorithm::ImageBoundaryFacesCalculator< TClassifiedImage > itk::MRFImageFilter< TInputImage, TClassifiedImage >::LabelledImageFacesCalculator

Definition at line 233 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TClassifiedImage::IndexType itk::MRFImageFilter< TInputImage, TClassifiedImage >::LabelledImageIndexType

Type definition for the classified image index type.

Reimplemented in itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >.

Definition at line 186 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef NeighborhoodIterator< TClassifiedImage > itk::MRFImageFilter< TInputImage, TClassifiedImage >::LabelledImageNeighborhoodIterator

Labelled image neighborhood interator typedef

Definition at line 227 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef LabelledImageNeighborhoodIterator::RadiusType itk::MRFImageFilter< TInputImage, TClassifiedImage >::LabelledImageNeighborhoodRadiusType

Definition at line 230 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TClassifiedImage::OffsetType itk::MRFImageFilter< TInputImage, TClassifiedImage >::LabelledImageOffsetType

Type definition for the classified image offset type.

Definition at line 190 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TClassifiedImage::PixelType itk::MRFImageFilter< TInputImage, TClassifiedImage >::LabelledImagePixelType

Type definitions for the classified image pixel type. It has to be the same type as the training image.

Reimplemented in itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >.

Definition at line 179 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TClassifiedImage::Pointer itk::MRFImageFilter< TInputImage, TClassifiedImage >::LabelledImagePointer

Type definitions for the labelled image. It is derived from the training image.

Definition at line 175 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef ImageRegionIterator<TClassifiedImage> itk::MRFImageFilter< TInputImage, TClassifiedImage >::LabelledImageRegionIterator

Type definition for the input image region iterator

Reimplemented in itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >.

Definition at line 194 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TClassifiedImage::RegionType itk::MRFImageFilter< TInputImage, TClassifiedImage >::LabelledImageRegionType

Type definitions for the classified image pixel type. It has to be the same type as the training image.

Definition at line 183 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef ImageRegionIterator< LabelStatusImageType > itk::MRFImageFilter< TInputImage, TClassifiedImage >::LabelStatusImageIterator [protected]

Definition at line 350 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef NeighborhoodIterator< LabelStatusImageType > itk::MRFImageFilter< TInputImage, TClassifiedImage >::LabelStatusImageNeighborhoodIterator [protected]

Labelled status image neighborhood interator typedef

Definition at line 354 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef LabelStatusImageType::Pointer itk::MRFImageFilter< TInputImage, TClassifiedImage >::LabelStatusImagePointer [protected]

Definition at line 348 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef Image<int,itkGetStaticConstMacro(InputImageDimension) > itk::MRFImageFilter< TInputImage, TClassifiedImage >::LabelStatusImageType [protected]

Definition at line 345 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef LabelStatusImageType::IndexType itk::MRFImageFilter< TInputImage, TClassifiedImage >::LabelStatusIndexType [protected]

Definition at line 346 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef LabelStatusImageType::RegionType itk::MRFImageFilter< TInputImage, TClassifiedImage >::LabelStatusRegionType [protected]

Definition at line 347 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TInputImage::SizeType itk::MRFImageFilter< TInputImage, TClassifiedImage >::NeighborhoodRadiusType

Radius typedef support.

Definition at line 207 of file itkMRFImageFilter.h.

typedef Superclass::OutputImagePixelType itk::ImageToImageFilter< TInputImage , TClassifiedImage >::OutputImagePixelType [inherited]

Reimplemented from itk::ImageSource< TClassifiedImage >.

Definition at line 79 of file itkImageToImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef Superclass::OutputImagePointer itk::MRFImageFilter< TInputImage, TClassifiedImage >::OutputImagePointer

Reimplemented from itk::ImageSource< TClassifiedImage >.

Definition at line 140 of file itkMRFImageFilter.h.

typedef Superclass::OutputImageRegionType itk::ImageToImageFilter< TInputImage , TClassifiedImage >::OutputImageRegionType [inherited]

Superclass typedefs.

Reimplemented from itk::ImageSource< TClassifiedImage >.

Definition at line 75 of file itkImageToImageFilter.h.

typedef TClassifiedImage itk::ImageSource< TClassifiedImage >::OutputImageType [inherited]

Some convenient typedefs.

Definition at line 65 of file itkImageSource.h.

typedef ImageToImageFilterDetail::ImageRegionCopier<itkGetStaticConstMacro(InputImageDimension), itkGetStaticConstMacro(OutputImageDimension)> itk::ImageToImageFilter< TInputImage , TClassifiedImage >::OutputToInputRegionCopierType [protected, inherited]

Typedef for the region copier function object that converts an output region to an input region.

Definition at line 169 of file itkImageToImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef SmartPointer<Self> itk::MRFImageFilter< TInputImage, TClassifiedImage >::Pointer

Reimplemented from itk::ImageToImageFilter< TInputImage, TClassifiedImage >.

Reimplemented in itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >.

Definition at line 138 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef MRFImageFilter itk::MRFImageFilter< TInputImage, TClassifiedImage >::Self

Standard class typedefs.

Reimplemented from itk::ImageToImageFilter< TInputImage, TClassifiedImage >.

Reimplemented in itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >.

Definition at line 136 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TInputImage::SizeType itk::MRFImageFilter< TInputImage, TClassifiedImage >::SizeType

Size and value typedef support.

Definition at line 204 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef ImageToImageFilter<TInputImage,TClassifiedImage> itk::MRFImageFilter< TInputImage, TClassifiedImage >::Superclass

Reimplemented from itk::ImageToImageFilter< TInputImage, TClassifiedImage >.

Reimplemented in itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >.

Definition at line 137 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TClassifiedImage::PixelType itk::MRFImageFilter< TInputImage, TClassifiedImage >::TrainingImagePixelType

Type definitions for the training image pixel type.

Definition at line 171 of file itkMRFImageFilter.h.

template<class TInputImage, class TClassifiedImage>
typedef TClassifiedImage::Pointer itk::MRFImageFilter< TInputImage, TClassifiedImage >::TrainingImagePointer

Type definitions for the training image.

Definition at line 168 of file itkMRFImageFilter.h.


Member Enumeration Documentation

template<class TInputImage, class TClassifiedImage>
enum itk::MRFImageFilter::StopConditionType

Enumerator:
MaximumNumberOfIterations 
ErrorTolerance 

Definition at line 300 of file itkMRFImageFilter.h.


Constructor & Destructor Documentation

template<class TInputImage, class TClassifiedImage>
itk::MRFImageFilter< TInputImage, TClassifiedImage >::MRFImageFilter (  )  [protected]

template<class TInputImage, class TClassifiedImage>
itk::MRFImageFilter< TInputImage, TClassifiedImage >::~MRFImageFilter (  )  [protected]


Member Function Documentation

virtual void itk::ProcessObject::AbortGenerateDataOff (  )  [virtual, inherited]

virtual void itk::ProcessObject::AbortGenerateDataOn (  )  [virtual, inherited]

Turn on and off the AbortGenerateData flag.

virtual void itk::ProcessObject::AddInput ( DataObject input  )  [protected, virtual, inherited]

unsigned long itk::Object::AddObserver ( const EventObject event,
Command  
) const [inherited]

unsigned long itk::Object::AddObserver ( const EventObject event,
Command  
) [inherited]

Allow people to add/remove/invoke observers (callbacks) to any ITK object. This is an implementation of the subject/observer design pattern. An observer is added by specifying an event to respond to and an itk::Command to execute. It returns an unsigned long tag which can be used later to remove the event or retrieve the command. The memory for the Command becomes the responsibility of this object, so don't pass the same instance of a command to two different objects

virtual void itk::ProcessObject::AddOutput ( DataObject output  )  [protected, virtual, inherited]

virtual void itk::ImageSource< TClassifiedImage >::AfterThreadedGenerateData ( void