ITK  4.9.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage > Class Template Reference

#include <itkRGBGibbsPriorFilter.h>

+ Inheritance diagram for itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >:
+ Collaboration diagram for itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >:

Detailed Description

template<typename TInputImage, typename TClassifiedImage>
class itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >

The RGBGibbsPriorFilter applies Gibbs Prior model for the segmentation of MRF images.

The core of the method is based on the minimization of a Gibbsian energy function. This energy function f can be divided into three part: f = f_1 + f_2 + f_3; f_1 is related to the object homogeneity, f_2 is related to the boundary smoothness, f_3 is related to the constraint of the observation (or the noise model). The two force components f_1 and f_3 are minimized by the GradientEnergy method while f_2 is minized by the GibbsTotalEnergy method.

This filter only works with 3D images.

Examples:
Examples/Segmentation/GibbsPriorImageFilter1.cxx.

Definition at line 47 of file itkRGBGibbsPriorFilter.h.

Public Types

typedef TClassifiedImage ClassifiedImageType
 
typedef ImageClassifierBase
< TInputImage,
TClassifiedImage > 
ClassifierType
 
typedef SmartPointer< const SelfConstPointer
 
typedef TInputImage::IndexType IndexType
 
typedef Superclass::IndexValueType IndexValueType
 
typedef TInputImage::ConstPointer InputImageConstPointer
 
typedef
Superclass::InputImagePixelType 
InputImagePixelType
 
typedef TInputImage::Pointer InputImagePointer
 
typedef
Superclass::InputImageRegionConstIterator 
InputImageRegionConstIterator
 
typedef
Superclass::InputImageRegionIterator 
InputImageRegionIterator
 
typedef TInputImage InputImageType
 
typedef TInputImage::PixelType InputImageVecType
 
typedef TInputImage::PixelType InputPixelType
 
typedef TClassifiedImage::IndexType LabelledImageIndexType
 
typedef
Superclass::LabelledImagePixelType 
LabelledImagePixelType
 
typedef
Superclass::LabelledImageRegionIterator 
LabelledImageRegionIterator
 
typedef TClassifiedImage::Pointer LabelledImageType
 
typedef unsigned int LabelType
 
typedef vnl_matrix< double > MatrixType
 
typedef SmartPointer< SelfPointer
 
typedef RGBGibbsPriorFilter Self
 
typedef MRFImageFilter
< TInputImage,
TClassifiedImage > 
Superclass
 
typedef TClassifiedImage::Pointer TrainingImageType
 
- Public Types inherited from itk::MRFImageFilter< TInputImage, TClassifiedImage >
typedef ImageClassifierBase
< TInputImage,
TClassifiedImage > 
ClassifierType
 
typedef SmartPointer< const SelfConstPointer
 
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::OutputImagePointer 
OutputImagePointer
 
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 Types inherited from itk::ImageToImageFilter< TInputImage, TClassifiedImage >
typedef SmartPointer< const SelfConstPointer
 
typedef
InputImageType::ConstPointer 
InputImageConstPointer
 
typedef InputImageType::PixelType InputImagePixelType
 
typedef InputImageType::Pointer InputImagePointer
 
typedef InputImageType::RegionType InputImageRegionType
 
typedef TInputImage InputImageType
 
typedef
Superclass::OutputImagePixelType 
OutputImagePixelType
 
typedef
Superclass::OutputImageRegionType 
OutputImageRegionType
 
typedef SmartPointer< SelfPointer
 
typedef ImageToImageFilter Self
 
typedef ImageSource
< TClassifiedImage > 
Superclass
 
- Public Types inherited from itk::ImageSource< TClassifiedImage >
typedef SmartPointer< const SelfConstPointer
 
typedef
Superclass::DataObjectIdentifierType 
DataObjectIdentifierType
 
typedef DataObject::Pointer DataObjectPointer
 
typedef
Superclass::DataObjectPointerArraySizeType 
DataObjectPointerArraySizeType
 
typedef OutputImageType::PixelType OutputImagePixelType
 
typedef OutputImageType::Pointer OutputImagePointer
 
typedef OutputImageType::RegionType OutputImageRegionType
 
typedef TClassifiedImage OutputImageType
 
typedef SmartPointer< SelfPointer
 
typedef ImageSource Self
 
typedef ProcessObject Superclass
 
- Public Types inherited from itk::ProcessObject
typedef SmartPointer< const SelfConstPointer
 
typedef
DataObject::DataObjectIdentifierType 
DataObjectIdentifierType
 
typedef DataObject::Pointer DataObjectPointer
 
typedef std::vector
< DataObjectPointer
DataObjectPointerArray
 
typedef
DataObjectPointerArray::size_type 
DataObjectPointerArraySizeType
 
typedef std::vector
< DataObjectIdentifierType
NameArray
 
typedef SmartPointer< SelfPointer
 
typedef ProcessObject Self
 
typedef Object Superclass
 
- Public Types inherited from itk::Object
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef Object Self
 
typedef LightObject Superclass
 
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightObject Self
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother () const
 
LabelledImageType GetLabelledImage ()
 
virtual unsigned int GetMaximumNumberOfIterations () const override
 
virtual const char * GetNameOfClass () const
 
virtual unsigned int GetNumberOfClasses () const override
 
virtual void SetBoundaryGradient (unsigned int _arg)
 
void SetClassifier (typename ClassifierType::Pointer ptrToClassifier)
 
virtual void SetClusterSize (unsigned int _arg)
 
void SetLabelledImage (LabelledImageType LabelledImage)
 
virtual void SetObjectLabel (LabelType _arg)
 
virtual void SetObjectThreshold (double _arg)
 
virtual void SetStartPoint (IndexType _arg)
 
void SetTrainingImage (TrainingImageType image)
 
virtual void SetNumberOfClasses (const unsigned int numberOfClasses) override
 
virtual void SetMaximumNumberOfIterations (const unsigned int numberOfIterations) override
 
virtual void SetCliqueWeight_1 (double _arg)
 
virtual double GetCliqueWeight_1 () const
 
virtual void SetCliqueWeight_2 (double _arg)
 
virtual double GetCliqueWeight_2 () const
 
virtual void SetCliqueWeight_3 (double _arg)
 
virtual double GetCliqueWeight_3 () const
 
virtual void SetCliqueWeight_4 (double _arg)
 
virtual double GetCliqueWeight_4 () const
 
virtual void SetCliqueWeight_5 (double _arg)
 
virtual double GetCliqueWeight_5 () const
 
virtual void SetCliqueWeight_6 (double _arg)
 
virtual double GetCliqueWeight_6 () const
 
- Public Member Functions inherited from itk::MRFImageFilter< TInputImage, TClassifiedImage >
virtual std::vector< double > GetMRFNeighborhoodWeight ()
 
const NeighborhoodRadiusType GetNeighborhoodRadius () const
 
virtual const unsigned int & GetNumberOfIterations () const
 
virtual const StopConditionTypeGetStopCondition () const
 
void SetClassifier (typename ClassifierType::Pointer ptrToClassifier)
 
virtual void SetMRFNeighborhoodWeight (std::vector< double > BetaMatrix)
 
void SetNeighborhoodRadius (const NeighborhoodRadiusType &)
 
void SetNeighborhoodRadius (const SizeValueType)
 
void SetNeighborhoodRadius (const SizeValueType *radiusArray)
 
 typedef (Concept::Convertible< unsigned int, LabelledImagePixelType >) UnsignedIntConvertibleToClassifiedCheck
 
 typedef (Concept::Convertible< LabelledImagePixelType, unsigned int >) ClassifiedConvertibleToUnsignedIntCheck
 
 typedef (Concept::Convertible< LabelledImagePixelType, int >) ClassifiedConvertibleToIntCheck
 
 typedef (Concept::Convertible< int, LabelledImagePixelType >) IntConvertibleToClassifiedCheck
 
 typedef (Concept::SameDimension< InputImageDimension, ClassifiedImageDimension >) SameDimensionCheck
 
virtual void SetErrorTolerance (double _arg)
 
virtual double GetErrorTolerance () const
 
virtual void SetSmoothingFactor (double _arg)
 
virtual double GetSmoothingFactor () const
 
- Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, TClassifiedImage >
const InputImageTypeGetInput () const
 
const InputImageTypeGetInput (unsigned int idx) const
 
virtual void PopBackInput () override
 
virtual void PopFrontInput () override
 
virtual void PushBackInput (const InputImageType *image)
 
virtual void PushFrontInput (const InputImageType *image)
 
virtual void SetInput (const InputImageType *image)
 
virtual void SetInput (unsigned int, const TInputImage *image)
 
virtual void SetCoordinateTolerance (double _arg)
 
virtual double GetCoordinateTolerance () const
 
virtual void SetDirectionTolerance (double _arg)
 
virtual double GetDirectionTolerance () const
 
- Public Member Functions inherited from itk::ImageSource< TClassifiedImage >
OutputImageTypeGetOutput (unsigned int idx)
 
virtual void GraftNthOutput (unsigned int idx, DataObject *output)
 
virtual void GraftOutput (const DataObjectIdentifierType &key, DataObject *output)
 
OutputImageTypeGetOutput ()
 
const OutputImageTypeGetOutput () const
 
virtual void GraftOutput (DataObject *output)
 
virtual
ProcessObject::DataObjectPointer 
MakeOutput (ProcessObject::DataObjectPointerArraySizeType idx) override
 
virtual
ProcessObject::DataObjectPointer 
MakeOutput (const ProcessObject::DataObjectIdentifierType &) override
 
- Public Member Functions inherited from itk::ProcessObject
virtual void AbortGenerateDataOff ()
 
virtual void AbortGenerateDataOn ()
 
virtual const bool & GetAbortGenerateData () const
 
DataObjectPointerArray GetIndexedInputs ()
 
DataObjectPointerArray GetIndexedOutputs ()
 
NameArray GetInputNames () const
 
DataObjectPointerArray GetInputs ()
 
MultiThreader * GetMultiThreader () const
 
DataObjectPointerArraySizeType GetNumberOfIndexedInputs () const
 
DataObjectPointerArraySizeType GetNumberOfIndexedOutputs () const
 
DataObjectPointerArraySizeType GetNumberOfInputs () const
 
DataObjectPointerArraySizeType GetNumberOfOutputs () const
 
virtual
DataObjectPointerArraySizeType 
GetNumberOfValidRequiredInputs () const
 
NameArray GetOutputNames () const
 
DataObjectPointerArray GetOutputs ()
 
virtual const float & GetProgress () const
 
NameArray GetRequiredInputNames () const
 
bool HasInput (const DataObjectIdentifierType &key) const
 
bool HasOutput (const DataObjectIdentifierType &key) const
 
virtual void PrepareOutputs ()
 
virtual void PropagateRequestedRegion (DataObject *output)
 
virtual void ResetPipeline ()
 
virtual void SetAbortGenerateData (bool _arg)
 
virtual void Update ()
 
virtual void UpdateLargestPossibleRegion ()
 
virtual void UpdateOutputData (DataObject *output)
 
virtual void UpdateOutputInformation ()
 
void UpdateProgress (float progress)
 
void SetProgress (float progress)
 
virtual void SetReleaseDataFlag (bool flag)
 
virtual bool GetReleaseDataFlag () const
 
void ReleaseDataFlagOn ()
 
void ReleaseDataFlagOff ()
 
virtual void SetReleaseDataBeforeUpdateFlag (bool _arg)
 
virtual const bool & GetReleaseDataBeforeUpdateFlag () const
 
virtual void ReleaseDataBeforeUpdateFlagOn ()
 
virtual void ReleaseDataBeforeUpdateFlagOff ()
 
virtual void SetNumberOfThreads (ThreadIdType _arg)
 
virtual const ThreadIdTypeGetNumberOfThreads () const
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionaryGetMetaDataDictionary ()
 
const MetaDataDictionaryGetMetaDataDictionary () const
 
virtual ModifiedTimeType GetMTime () const
 
virtual const TimeStampGetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
virtual void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
virtual void SetReferenceCount (int) override
 
virtual void UnRegister () const noexceptoverride
 
virtual void SetObjectName (std::string _arg)
 
virtual const std::string & GetObjectName () const
 
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
 itkCloneMacro (Self)
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::MRFImageFilter< TInputImage, TClassifiedImage >
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 const unsigned int ImageDimension = TInputImage::ImageDimension
 
- Static Public Attributes inherited from itk::MRFImageFilter< TInputImage, TClassifiedImage >
static const unsigned int ClassifiedImageDimension = TClassifiedImage::ImageDimension
 
static const unsigned int InputImageDimension = TInputImage::ImageDimension
 
- Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TClassifiedImage >
static const unsigned int InputImageDimension
 
static const unsigned int OutputImageDimension
 
- Static Public Attributes inherited from itk::ImageSource< TClassifiedImage >
static const unsigned int OutputImageDimension
 

Protected Member Functions

virtual void ApplyGibbsLabeller ()
 
virtual void ApplyGPImageFilter ()
 
virtual void GenerateData () override
 
virtual void MinimizeFunctional () override
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
 RGBGibbsPriorFilter ()
 
 typedef (Concept::SameDimension< itkGetStaticConstMacro(InputImageType::ImageDimension), itkGetStaticConstMacro(ClassifiedImageType::ImageDimension) >) SameDimension
 
 typedef (Concept::SameDimension< itkGetStaticConstMacro(InputImageType::ImageDimension), 3 >) DimensionShouldBe3
 
 ~RGBGibbsPriorFilter ()
 
- Protected Member Functions inherited from itk::MRFImageFilter< TInputImage, TClassifiedImage >
void Allocate ()
 
virtual void ApplyMRFImageFilter ()
 
virtual void DoNeighborhoodOperation (const InputImageNeighborhoodIterator &imageIter, LabelledImageNeighborhoodIterator &labelledIter, LabelStatusImageNeighborhoodIterator &labelStatusIter)
 
virtual void EnlargeOutputRequestedRegion (DataObject *) override
 
virtual void GenerateInputRequestedRegion () override
 
virtual void GenerateOutputInformation () override
 
 MRFImageFilter ()
 
 ~MRFImageFilter ()
 
- Protected Member Functions inherited from itk::ImageToImageFilter< TInputImage, TClassifiedImage >
virtual void CallCopyInputRegionToOutputRegion (OutputImageRegionType &destRegion, const InputImageRegionType &srcRegion)
 
virtual void CallCopyOutputRegionToInputRegion (InputImageRegionType &destRegion, const OutputImageRegionType &srcRegion)
 
 ImageToImageFilter ()
 
virtual void VerifyInputInformation () override
 
 ~ImageToImageFilter ()
 
void PushBackInput (const DataObject *input) override
 
void PushFrontInput (const DataObject *input) override
 
- Protected Member Functions inherited from itk::ImageSource< TClassifiedImage >
virtual void AfterThreadedGenerateData ()
 
virtual void AllocateOutputs ()
 
virtual void BeforeThreadedGenerateData ()
 
virtual const
ImageRegionSplitterBase
GetImageRegionSplitter () const
 
 ImageSource ()
 
virtual unsigned int SplitRequestedRegion (unsigned int i, unsigned int pieces, OutputImageRegionType &splitRegion)
 
virtual void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId)
 
virtual ~ImageSource ()
 
- Protected Member Functions inherited from itk::ProcessObject
virtual void AddInput (DataObject *input)
 
virtual void AddOutput (DataObject *output)
 
bool AddRequiredInputName (const DataObjectIdentifierType &)
 
bool AddRequiredInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx)
 
virtual void CacheInputReleaseDataFlags ()
 
virtual void GenerateOutputRequestedRegion (DataObject *output)
 
DataObjectGetInput (const DataObjectIdentifierType &key)
 
const DataObjectGetInput (const DataObjectIdentifierType &key) const
 
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredInputs () const
 
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredOutputs () const
 
bool IsIndexedInputName (const DataObjectIdentifierType &) const
 
bool IsIndexedOutputName (const DataObjectIdentifierType &) const
 
bool IsRequiredInputName (const DataObjectIdentifierType &) const
 
 itkLegacyMacro (virtual void RemoveOutput(DataObject *output))
 
 itkLegacyMacro (void SetNumberOfOutputs(DataObjectPointerArraySizeType num))
 
 itkLegacyMacro (virtual void RemoveInput(DataObject *input))
 
 itkLegacyMacro (void SetNumberOfInputs(DataObjectPointerArraySizeType num))
 
DataObjectPointerArraySizeType MakeIndexFromInputName (const DataObjectIdentifierType &name) const
 
DataObjectPointerArraySizeType MakeIndexFromOutputName (const DataObjectIdentifierType &name) const
 
DataObjectIdentifierType MakeNameFromInputIndex (DataObjectPointerArraySizeType idx) const
 
DataObjectIdentifierType MakeNameFromOutputIndex (DataObjectPointerArraySizeType idx) const
 
 ProcessObject ()
 
virtual void PropagateResetPipeline ()
 
virtual void ReleaseInputs ()
 
virtual void RemoveInput (const DataObjectIdentifierType &key)
 
virtual void RemoveInput (DataObjectPointerArraySizeType)
 
virtual void RemoveOutput (const DataObjectIdentifierType &key)
 
virtual void RemoveOutput (DataObjectPointerArraySizeType idx)
 
bool RemoveRequiredInputName (const DataObjectIdentifierType &)
 
virtual void RestoreInputReleaseDataFlags ()
 
virtual void SetInput (const DataObjectIdentifierType &key, DataObject *input)
 
virtual void SetNthInput (DataObjectPointerArraySizeType num, DataObject *input)
 
virtual void SetNthOutput (DataObjectPointerArraySizeType num, DataObject *output)
 
void SetNumberOfIndexedInputs (DataObjectPointerArraySizeType num)
 
void SetNumberOfIndexedOutputs (DataObjectPointerArraySizeType num)
 
virtual void SetNumberOfRequiredInputs (DataObjectPointerArraySizeType)
 
virtual void SetNumberOfRequiredOutputs (DataObjectPointerArraySizeType _arg)
 
virtual void SetOutput (const DataObjectIdentifierType &key, DataObject *output)
 
virtual void SetPrimaryInput (DataObject *input)
 
virtual void SetPrimaryOutput (DataObject *output)
 
void SetRequiredInputNames (const NameArray &)
 
virtual void VerifyPreconditions ()
 
 ~ProcessObject ()
 
DataObjectGetInput (DataObjectPointerArraySizeType idx)
 
const DataObjectGetInput (DataObjectPointerArraySizeType idx) const
 
DataObjectGetPrimaryInput ()
 
const DataObjectGetPrimaryInput () const
 
virtual void SetPrimaryInputName (const DataObjectIdentifierType &key)
 
virtual const char * GetPrimaryInputName (void) const
 
DataObjectGetOutput (const DataObjectIdentifierType &key)
 
const DataObjectGetOutput (const DataObjectIdentifierType &key) const
 
virtual void SetPrimaryOutputName (const DataObjectIdentifierType &key)
 
virtual const char * GetPrimaryOutputName (void) const
 
DataObjectGetOutput (DataObjectPointerArraySizeType idx)
 
const DataObjectGetOutput (DataObjectPointerArraySizeType idx) const
 
DataObjectGetPrimaryOutput ()
 
const DataObjectGetPrimaryOutput () const
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &time)
 
virtual ~Object ()
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Private Types

typedef TInputImage::SizeType InputImageSizeType
 

Private Member Functions

double GibbsEnergy (unsigned int i, unsigned int k, unsigned int k1)
 
void GibbsTotalEnergy (int i)
 
void operator= (const Self &)
 
 RGBGibbsPriorFilter (const Self &)
 

Private Attributes

ClassifierType::Pointer m_ClassifierPtr
 
unsigned int m_ImageDepth
 
unsigned int m_ImageHeight
 
double m_ObjectThreshold
 

Additional Inherited Members

- Protected Types inherited from itk::MRFImageFilter< TInputImage, TClassifiedImage >
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
 
- Protected Types inherited from itk::ImageToImageFilter< TInputImage, TClassifiedImage >
typedef
ImageToImageFilterDetail::ImageRegionCopier
< itkGetStaticConstMacro(OutputImageDimension),
itkGetStaticConstMacro(InputImageDimension) > 
InputToOutputRegionCopierType
 
typedef
ImageToImageFilterDetail::ImageRegionCopier
< itkGetStaticConstMacro(InputImageDimension),
itkGetStaticConstMacro(OutputImageDimension) > 
OutputToInputRegionCopierType
 
- Static Protected Member Functions inherited from itk::ImageSource< TClassifiedImage >
static const
ImageRegionSplitterBase
GetGlobalDefaultSplitter ()
 
static ITK_THREAD_RETURN_TYPE ThreaderCallback (void *arg)
 
- Protected Attributes inherited from itk::ProcessObject
TimeStamp m_OutputInformationMTime
 
bool m_Updating
 
- Protected Attributes inherited from itk::LightObject
AtomicInt< int > m_ReferenceCount
 

Member Typedef Documentation

template<typename TInputImage , typename TClassifiedImage >
typedef TClassifiedImage itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::ClassifiedImageType

Type definitions for the training image.

Definition at line 80 of file itkRGBGibbsPriorFilter.h.

template<typename TInputImage , typename TClassifiedImage >
typedef ImageClassifierBase< TInputImage, TClassifiedImage > itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::ClassifierType

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

Definition at line 96 of file itkRGBGibbsPriorFilter.h.

template<typename TInputImage , typename TClassifiedImage >
typedef SmartPointer< const Self > itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::ConstPointer

Definition at line 55 of file itkRGBGibbsPriorFilter.h.

template<typename TInputImage , typename TClassifiedImage >
typedef TInputImage::IndexType itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::IndexType

Definition at line 100 of file itkRGBGibbsPriorFilter.h.

template<typename TInputImage , typename TClassifiedImage >
typedef Superclass::IndexValueType itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::IndexValueType

Definition at line 69 of file itkRGBGibbsPriorFilter.h.

template<typename TInputImage , typename TClassifiedImage >
typedef TInputImage::ConstPointer itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::InputImageConstPointer

Definition at line 74 of file itkRGBGibbsPriorFilter.h.

template<typename TInputImage , typename TClassifiedImage >
typedef Superclass::InputImagePixelType itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::InputImagePixelType

Types from superclass.

Definition at line 61 of file itkRGBGibbsPriorFilter.h.

template<typename TInputImage , typename TClassifiedImage >
typedef TInputImage::Pointer itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::InputImagePointer

Definition at line 73 of file itkRGBGibbsPriorFilter.h.

template<typename TInputImage , typename TClassifiedImage >
typedef Superclass::InputImageRegionConstIterator itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::InputImageRegionConstIterator

Definition at line 65 of file itkRGBGibbsPriorFilter.h.

template<typename TInputImage , typename TClassifiedImage >
typedef Superclass::InputImageRegionIterator itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::InputImageRegionIterator

Definition at line 66 of file itkRGBGibbsPriorFilter.h.

template<typename TInputImage , typename TClassifiedImage >
typedef TInputImage::SizeType itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::InputImageSizeType
private

Definition at line 216 of file itkRGBGibbsPriorFilter.h.

template<typename TInputImage , typename TClassifiedImage >
typedef TInputImage itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::InputImageType

A smart pointer to the input image type.

Definition at line 72 of file itkRGBGibbsPriorFilter.h.

template<typename TInputImage , typename TClassifiedImage >
typedef TInputImage::PixelType itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::InputImageVecType

The type of input pixel.

Definition at line 99 of file itkRGBGibbsPriorFilter.h.

template<typename TInputImage , typename TClassifiedImage >
typedef TInputImage::PixelType itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::InputPixelType

Type definition for the input image pixel type.

Definition at line 77 of file itkRGBGibbsPriorFilter.h.

template<typename TInputImage , typename TClassifiedImage >
typedef TClassifiedImage::IndexType itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::LabelledImageIndexType

Type definition for the classified image index type.

Definition at line 88 of file itkRGBGibbsPriorFilter.h.

template<typename TInputImage , typename TClassifiedImage >
typedef Superclass::LabelledImagePixelType itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::LabelledImagePixelType

Definition at line 68 of file itkRGBGibbsPriorFilter.h.

template<typename TInputImage , typename TClassifiedImage >
typedef Superclass::LabelledImageRegionIterator itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::LabelledImageRegionIterator

Definition at line 67 of file itkRGBGibbsPriorFilter.h.

template<typename TInputImage , typename TClassifiedImage >
typedef TClassifiedImage::Pointer itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::LabelledImageType

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

Definition at line 85 of file itkRGBGibbsPriorFilter.h.

template<typename TInputImage , typename TClassifiedImage >
typedef unsigned int itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::LabelType

Type used as identifier for the Labels

Warning
-1 cannot be used as the identifier for unlabeled pixels the NumericTraits<>::max() value is used for indicating unlabeled pixels

Definition at line 93 of file itkRGBGibbsPriorFilter.h.

template<typename TInputImage , typename TClassifiedImage >
typedef vnl_matrix< double > itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::MatrixType

Specify the type of matrix to use.

Definition at line 181 of file itkRGBGibbsPriorFilter.h.

template<typename TInputImage , typename TClassifiedImage >
typedef SmartPointer< Self > itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::Pointer

Definition at line 54 of file itkRGBGibbsPriorFilter.h.

template<typename TInputImage , typename TClassifiedImage >
typedef RGBGibbsPriorFilter itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::Self

Standard "Self" typedef.

Definition at line 52 of file itkRGBGibbsPriorFilter.h.

template<typename TInputImage , typename TClassifiedImage >
typedef MRFImageFilter< TInputImage, TClassifiedImage > itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::Superclass

Definition at line 53 of file itkRGBGibbsPriorFilter.h.

template<typename TInputImage , typename TClassifiedImage >
typedef TClassifiedImage::Pointer itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::TrainingImageType

Definition at line 81 of file itkRGBGibbsPriorFilter.h.

Constructor & Destructor Documentation

template<typename TInputImage , typename TClassifiedImage >
itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::RGBGibbsPriorFilter ( )
protected
template<typename TInputImage , typename TClassifiedImage >
itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::~RGBGibbsPriorFilter ( )
protected
template<typename TInputImage , typename TClassifiedImage >
itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::RGBGibbsPriorFilter ( const Self )
private

Member Function Documentation

template<typename TInputImage , typename TClassifiedImage >
virtual void itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::ApplyGibbsLabeller ( )
protectedvirtual
template<typename TInputImage , typename TClassifiedImage >
virtual void itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::ApplyGPImageFilter ( )
protectedvirtual
template<typename TInputImage , typename TClassifiedImage >
virtual::itk::LightObject::Pointer itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::CreateAnother ( ) const
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::MRFImageFilter< TInputImage, TClassifiedImage >.

template<typename TInputImage , typename TClassifiedImage >
virtual void itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::GenerateData ( void  )
overrideprotectedvirtual

A version of GenerateData() specific for image processing filters. This implementation will split the processing across multiple threads. The buffer is allocated by this method. Then the BeforeThreadedGenerateData() method is called (if provided). Then, a series of threads are spawned each calling ThreadedGenerateData(). After all the threads have completed processing, the AfterThreadedGenerateData() method is called (if provided). If an image processing filter cannot be threaded, the filter should provide an implementation of GenerateData(). That implementation is responsible for allocating the output buffer. If a filter an be threaded, it should NOT provide a GenerateData() method but should provide a ThreadedGenerateData() instead.

See Also
ThreadedGenerateData()

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

template<typename TInputImage , typename TClassifiedImage >
virtual double itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::GetCliqueWeight_1 ( ) const
virtual

set and get the value for Clique weights

template<typename TInputImage , typename TClassifiedImage >
virtual double itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::GetCliqueWeight_2 ( ) const
virtual

set and get the value for Clique weights

template<typename TInputImage , typename TClassifiedImage >
virtual double itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::GetCliqueWeight_3 ( ) const
virtual

set and get the value for Clique weights

template<typename TInputImage , typename TClassifiedImage >
virtual double itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::GetCliqueWeight_4 ( ) const
virtual

set and get the value for Clique weights

template<typename TInputImage , typename TClassifiedImage >
virtual double itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::GetCliqueWeight_5 ( ) const
virtual

set and get the value for Clique weights

template<typename TInputImage , typename TClassifiedImage >
virtual double itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::GetCliqueWeight_6 ( ) const
virtual

set and get the value for Clique weights

template<typename TInputImage , typename TClassifiedImage >
LabelledImageType itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::GetLabelledImage ( )
inline

Get the labelled image.

Definition at line 109 of file itkRGBGibbsPriorFilter.h.

template<typename TInputImage , typename TClassifiedImage >
virtual unsigned int itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::GetMaximumNumberOfIterations ( ) const
inlineoverridevirtual

Get the number of iterations of the Iterated Conditional Mode (ICM) algorithm.

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

Definition at line 148 of file itkRGBGibbsPriorFilter.h.

References itk::MRFImageFilter< TInputImage, TClassifiedImage >::m_MaximumNumberOfIterations.

template<typename TInputImage , typename TClassifiedImage >
virtual const char* itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

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

template<typename TInputImage , typename TClassifiedImage >
virtual unsigned int itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::GetNumberOfClasses ( ) const
inlineoverridevirtual
template<typename TInputImage , typename TClassifiedImage >
double itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::GibbsEnergy ( unsigned int  i,
unsigned int  k,
unsigned int  k1 
)
private

calculate the energy in each cluster.

template<typename TInputImage , typename TClassifiedImage >
void itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::GibbsTotalEnergy ( int  i)
private

region size smaller than the threshold will be erased. the label for object region. the channel number in the image. the point give lowest value of H-1 in neighbor. for region erase. for region erase. weights for different clique configuration. weight for cliques that v/h smooth boundayr weight for clique that has an intermadiate smooth boundary weight for clique that has a diagonal smooth boundary weight for clique consists only object pixels weight for clique consists only background pixels weight for clique other than these calculate H_2.

template<typename TInputImage , typename TClassifiedImage >
virtual void itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::MinimizeFunctional ( )
overrideprotectedvirtual

allocate memory space for the filter.

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

template<typename TInputImage , typename TClassifiedImage >
static Pointer itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::New ( )
static

Method for creation through the object factory.

template<typename TInputImage , typename TClassifiedImage >
void itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::operator= ( const Self )
private
template<typename TInputImage , typename TClassifiedImage >
void itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
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::MRFImageFilter< TInputImage, TClassifiedImage >.

template<typename TInputImage , typename TClassifiedImage >
virtual void itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::SetBoundaryGradient ( unsigned int  _arg)
virtual
template<typename TInputImage , typename TClassifiedImage >
void itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::SetClassifier ( typename ClassifierType::Pointer  ptrToClassifier)

Set the pointer to the classifer being used.

template<typename TInputImage , typename TClassifiedImage >
virtual void itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::SetCliqueWeight_1 ( double  _arg)
virtual

set and get the value for Clique weights

template<typename TInputImage , typename TClassifiedImage >
virtual void itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::SetCliqueWeight_2 ( double  _arg)
virtual

set and get the value for Clique weights

template<typename TInputImage , typename TClassifiedImage >
virtual void itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::SetCliqueWeight_3 ( double  _arg)
virtual

set and get the value for Clique weights

template<typename TInputImage , typename TClassifiedImage >
virtual void itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::SetCliqueWeight_4 ( double  _arg)
virtual

set and get the value for Clique weights

template<typename TInputImage , typename TClassifiedImage >
virtual void itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::SetCliqueWeight_5 ( double  _arg)
virtual

set and get the value for Clique weights

template<typename TInputImage , typename TClassifiedImage >
virtual void itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::SetCliqueWeight_6 ( double  _arg)
virtual

set and get the value for Clique weights

template<typename TInputImage , typename TClassifiedImage >
virtual void itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::SetClusterSize ( unsigned int  _arg)
virtual

Set the threshold for the object size.

template<typename TInputImage , typename TClassifiedImage >
void itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::SetLabelledImage ( LabelledImageType  LabelledImage)

Set the labelled image.

template<typename TInputImage , typename TClassifiedImage >
virtual void itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::SetMaximumNumberOfIterations ( const unsigned int  numberOfIterations)
inlineoverridevirtual

Set/Get the number of iteration of the Iterated Conditional Mode (ICM) algorithm. A default value is set at 50 iterations.

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

Definition at line 135 of file itkRGBGibbsPriorFilter.h.

References itk::MRFImageFilter< TInputImage, TClassifiedImage >::m_MaximumNumberOfIterations, and itk::Object::Modified().

template<typename TInputImage , typename TClassifiedImage >
virtual void itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::SetNumberOfClasses ( const unsigned int  numberOfClasses)
inlineoverridevirtual
template<typename TInputImage , typename TClassifiedImage >
virtual void itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::SetObjectLabel ( LabelType  _arg)
virtual

Set the label for the object region.

template<typename TInputImage , typename TClassifiedImage >
virtual void itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::SetObjectThreshold ( double  _arg)
virtual
template<typename TInputImage , typename TClassifiedImage >
virtual void itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::SetStartPoint ( IndexType  _arg)
virtual
template<typename TInputImage , typename TClassifiedImage >
void itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::SetTrainingImage ( TrainingImageType  image)

Set the image required for training type classifiers.

template<typename TInputImage , typename TClassifiedImage >
itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::typedef ( Concept::SameDimension< itkGetStaticConstMacro(InputImageType::ImageDimension), itkGetStaticConstMacro(ClassifiedImageType::ImageDimension) >  )
protected

This class requires SameDimension in the form of ( Concept::SameDimension< itkGetStaticConstMacro(InputImageType::ImageDimension), itkGetStaticConstMacro(ClassifiedImageType::ImageDimension) > )

template<typename TInputImage , typename TClassifiedImage >
itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::typedef ( Concept::SameDimension< itkGetStaticConstMacro(InputImageType::ImageDimension), 3 >  )
protected

This class requires DimensionShouldBe3 in the form of ( Concept::SameDimension< itkGetStaticConstMacro(InputImageType::ImageDimension), 3 > )

Member Data Documentation

template<typename TInputImage , typename TClassifiedImage >
const unsigned int itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::ImageDimension = TInputImage::ImageDimension
static

Extract the input image dimension.

Definition at line 161 of file itkRGBGibbsPriorFilter.h.

template<typename TInputImage , typename TClassifiedImage >
ClassifierType::Pointer itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::m_ClassifierPtr
private

the input image to train the filter. output the number of class need to be classified.number of the iteration.

Definition at line 232 of file itkRGBGibbsPriorFilter.h.

template<typename TInputImage , typename TClassifiedImage >
unsigned int itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::m_ImageDepth
private

Definition at line 256 of file itkRGBGibbsPriorFilter.h.

template<typename TInputImage , typename TClassifiedImage >
unsigned int itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::m_ImageHeight
private

the threshold for the existence of a boundary. weight for H_1 weight for H_2 define the start region of the object. number of SA iterations. array for the state of each pixel. the medium image to store intermedium result for SA algo. the seed of object image size.

Definition at line 255 of file itkRGBGibbsPriorFilter.h.

template<typename TInputImage , typename TClassifiedImage >
double itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::m_ObjectThreshold
private

method to return 1 when a equal to b. help to erase the small region. erase the small region. create the intermedium image.calculate H_1.

Definition at line 308 of file itkRGBGibbsPriorFilter.h.


The documentation for this class was generated from the following file: