ITK  5.1.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

#include <itkRGBGibbsPriorFilter.h>

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

Public Types

using ClassifiedImageType = TClassifiedImage
 
using ClassifierType = ImageClassifierBase< TInputImage, TClassifiedImage >
 
using ConstPointer = SmartPointer< const Self >
 
using IndexType = typename TInputImage::IndexType
 
using IndexValueType = typename Superclass::IndexValueType
 
using InputImageConstPointer = typename TInputImage::ConstPointer
 
using InputImagePixelType = typename Superclass::InputImagePixelType
 
using InputImagePointer = typename TInputImage::Pointer
 
using InputImageRegionConstIterator = typename Superclass::InputImageRegionConstIterator
 
using InputImageRegionIterator = typename Superclass::InputImageRegionIterator
 
using InputImageType = TInputImage
 
using InputImageVecType = typename TInputImage::PixelType
 
using InputPixelType = typename TInputImage::PixelType
 
using LabelledImageIndexType = typename TClassifiedImage::IndexType
 
using LabelledImagePixelType = typename Superclass::LabelledImagePixelType
 
using LabelledImageRegionIterator = typename Superclass::LabelledImageRegionIterator
 
using LabelledImageType = typename TClassifiedImage::Pointer
 
using LabelType = unsigned int
 
using MatrixType = vnl_matrix< double >
 
using Pointer = SmartPointer< Self >
 
using Self = RGBGibbsPriorFilter
 
using Superclass = MRFImageFilter< TInputImage, TClassifiedImage >
 
using TrainingImageType = typename TClassifiedImage::Pointer
 
- Public Types inherited from itk::MRFImageFilter< TInputImage, TClassifiedImage >
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
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother () const
 
LabelledImageType GetLabelledImage ()
 
unsigned int GetMaximumNumberOfIterations () const override
 
virtual const char * GetNameOfClass () const
 
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)
 
void SetNumberOfClasses (const unsigned int numberOfClasses) override
 
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)
 
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
 
void PopBackInput () override
 
void PopFrontInput () override
 
virtual void PushBackInput (const InputImageType *image)
 
virtual void PushFrontInput (const InputImageType *image)
 
virtual void SetInput (const DataObjectIdentifierType &key, DataObject *input)
 
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)
 
OutputImageTypeGetOutput ()
 
const OutputImageTypeGetOutput () const
 
virtual void GraftOutput (DataObject *output)
 
virtual void GraftOutput (const DataObjectIdentifierType &key, DataObject *output)
 
virtual void GraftNthOutput (unsigned int idx, DataObject *output)
 
ProcessObject::DataObjectPointer MakeOutput (ProcessObject::DataObjectPointerArraySizeType idx) override
 
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 ()
 
MultiThreaderTypeGetMultiThreader () 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)
 
void SetMultiThreader (MultiThreaderType *threader)
 
virtual void Update ()
 
virtual void UpdateLargestPossibleRegion ()
 
virtual void UpdateOutputData (DataObject *output)
 
virtual void UpdateOutputInformation ()
 
void UpdateProgress (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 SetNumberOfWorkUnits (ThreadIdType _arg)
 
virtual const ThreadIdTypeGetNumberOfWorkUnits () 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
 
void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetReferenceCount (int) override
 
void UnRegister () const noexcept override
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
void SetMetaDataDictionary (MetaDataDictionary &&rrhs)
 
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::ImageToImageFilter< TInputImage, TClassifiedImage >
static double GetGlobalDefaultCoordinateTolerance ()
 
static double GetGlobalDefaultDirectionTolerance ()
 
static void SetGlobalDefaultCoordinateTolerance (double)
 
static void SetGlobalDefaultDirectionTolerance (double)
 
- 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 ImageDimension = TInputImage::ImageDimension
 
- Static Public Attributes inherited from itk::MRFImageFilter< TInputImage, TClassifiedImage >
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 Member Functions

virtual void ApplyGibbsLabeller ()
 
virtual void ApplyGPImageFilter ()
 
void GenerateData () override
 
void MinimizeFunctional () override
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
 RGBGibbsPriorFilter ()
 
 ~RGBGibbsPriorFilter () override
 
- Protected Member Functions inherited from itk::MRFImageFilter< TInputImage, TClassifiedImage >
void Allocate ()
 
virtual void ApplyMRFImageFilter ()
 
virtual void DoNeighborhoodOperation (const InputImageNeighborhoodIterator &imageIter, LabelledImageNeighborhoodIterator &labelledIter, LabelStatusImageNeighborhoodIterator &labelStatusIter)
 
void EnlargeOutputRequestedRegion (DataObject *) override
 
void GenerateInputRequestedRegion () override
 
void GenerateOutputInformation () override
 
 MRFImageFilter ()
 
 ~MRFImageFilter () override=default
 
- 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)
 
void GenerateInputRequestedRegion () override
 
 ImageToImageFilter ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
void VerifyInputInformation () ITKv5_CONST override
 
 ~ImageToImageFilter () override
 
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 ()
 
void ClassicMultiThread (ThreadFunctionType callbackFunction)
 
void GenerateData () override
 
virtual const ImageRegionSplitterBaseGetImageRegionSplitter () const
 
 ImageSource ()
 
virtual unsigned int SplitRequestedRegion (unsigned int i, unsigned int pieces, OutputImageRegionType &splitRegion)
 
 ~ImageSource () override=default
 
virtual void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId)
 
virtual void DynamicThreadedGenerateData (const OutputImageRegionType &outputRegionForThread)
 
virtual bool GetDynamicMultiThreading () const
 
virtual void SetDynamicMultiThreading (bool _arg)
 
virtual void DynamicMultiThreadingOn ()
 
virtual void DynamicMultiThreadingOff ()
 
- Protected Member Functions inherited from itk::ProcessObject
virtual void AddInput (DataObject *input)
 
void AddOptionalInputName (const DataObjectIdentifierType &)
 
void AddOptionalInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx)
 
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 DataObjectPointerArraySizeTypeGetNumberOfRequiredInputs () const
 
virtual const DataObjectPointerArraySizeTypeGetNumberOfRequiredOutputs () const
 
bool IsIndexedInputName (const DataObjectIdentifierType &) const
 
bool IsIndexedOutputName (const DataObjectIdentifierType &) const
 
bool IsRequiredInputName (const DataObjectIdentifierType &) const
 
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 () ITKv5_CONST
 
 ~ProcessObject () override
 
DataObjectGetInput (DataObjectPointerArraySizeType idx)
 
const DataObjectGetInput (DataObjectPointerArraySizeType idx) const
 
DataObjectGetPrimaryInput ()
 
const DataObjectGetPrimaryInput () const
 
virtual void SetPrimaryInputName (const DataObjectIdentifierType &key)
 
virtual const char * GetPrimaryInputName () const
 
DataObjectGetOutput (const DataObjectIdentifierType &key)
 
const DataObjectGetOutput (const DataObjectIdentifierType &key) const
 
virtual void SetPrimaryOutputName (const DataObjectIdentifierType &key)
 
virtual const char * GetPrimaryOutputName () 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)
 
 ~Object () override
 
- 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

using InputImageSizeType = typename TInputImage::SizeType
 

Private Member Functions

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

Private Attributes

ClassifierType::Pointer m_ClassifierPtr
 
unsigned int m_ImageDepth {0}
 
unsigned int m_ImageHeight {0}
 
double m_ObjectThreshold {5.0}
 

Additional Inherited Members

- Protected Types inherited from itk::MRFImageFilter< TInputImage, TClassifiedImage >
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 >
 
- Static Protected Member Functions inherited from itk::ImageSource< TClassifiedImage >
static const ImageRegionSplitterBaseGetGlobalDefaultSplitter ()
 
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
 

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.

Member Typedef Documentation

◆ ClassifiedImageType

template<typename TInputImage , typename TClassifiedImage >
using itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::ClassifiedImageType = TClassifiedImage

Type definitions for the training image.

Definition at line 80 of file itkRGBGibbsPriorFilter.h.

◆ ClassifierType

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

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

Definition at line 96 of file itkRGBGibbsPriorFilter.h.

◆ ConstPointer

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

Definition at line 55 of file itkRGBGibbsPriorFilter.h.

◆ IndexType

template<typename TInputImage , typename TClassifiedImage >
using itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::IndexType = typename TInputImage::IndexType

Definition at line 100 of file itkRGBGibbsPriorFilter.h.

◆ IndexValueType

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

Definition at line 69 of file itkRGBGibbsPriorFilter.h.

◆ InputImageConstPointer

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

Definition at line 74 of file itkRGBGibbsPriorFilter.h.

◆ InputImagePixelType

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

Types from superclass.

Definition at line 64 of file itkRGBGibbsPriorFilter.h.

◆ InputImagePointer

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

Definition at line 73 of file itkRGBGibbsPriorFilter.h.

◆ InputImageRegionConstIterator

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

Definition at line 65 of file itkRGBGibbsPriorFilter.h.

◆ InputImageRegionIterator

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

Definition at line 66 of file itkRGBGibbsPriorFilter.h.

◆ InputImageSizeType

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

Definition at line 215 of file itkRGBGibbsPriorFilter.h.

◆ InputImageType

template<typename TInputImage , typename TClassifiedImage >
using itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::InputImageType = TInputImage

A smart pointer to the input image type.

Definition at line 72 of file itkRGBGibbsPriorFilter.h.

◆ InputImageVecType

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

The type of input pixel.

Definition at line 99 of file itkRGBGibbsPriorFilter.h.

◆ InputPixelType

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

Type definition for the input image pixel type.

Definition at line 77 of file itkRGBGibbsPriorFilter.h.

◆ LabelledImageIndexType

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

Type definition for the classified image index type.

Definition at line 88 of file itkRGBGibbsPriorFilter.h.

◆ LabelledImagePixelType

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

Definition at line 68 of file itkRGBGibbsPriorFilter.h.

◆ LabelledImageRegionIterator

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

Definition at line 67 of file itkRGBGibbsPriorFilter.h.

◆ LabelledImageType

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

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

Definition at line 85 of file itkRGBGibbsPriorFilter.h.

◆ LabelType

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

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.

◆ MatrixType

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

Specify the type of matrix to use.

Definition at line 184 of file itkRGBGibbsPriorFilter.h.

◆ Pointer

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

Definition at line 54 of file itkRGBGibbsPriorFilter.h.

◆ Self

template<typename TInputImage , typename TClassifiedImage >
using itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::Self = RGBGibbsPriorFilter

Standard "Self" type alias.

Definition at line 52 of file itkRGBGibbsPriorFilter.h.

◆ Superclass

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

Definition at line 53 of file itkRGBGibbsPriorFilter.h.

◆ TrainingImageType

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

Definition at line 81 of file itkRGBGibbsPriorFilter.h.

Constructor & Destructor Documentation

◆ RGBGibbsPriorFilter() [1/2]

template<typename TInputImage , typename TClassifiedImage >
itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::RGBGibbsPriorFilter ( )
protected

◆ ~RGBGibbsPriorFilter()

template<typename TInputImage , typename TClassifiedImage >
itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::~RGBGibbsPriorFilter ( )
overrideprotected

◆ RGBGibbsPriorFilter() [2/2]

template<typename TInputImage , typename TClassifiedImage >
itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::RGBGibbsPriorFilter ( const Self )
privatedelete

Member Function Documentation

◆ ApplyGibbsLabeller()

template<typename TInputImage , typename TClassifiedImage >
virtual void itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::ApplyGibbsLabeller ( )
protectedvirtual

◆ ApplyGPImageFilter()

template<typename TInputImage , typename TClassifiedImage >
virtual void itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::ApplyGPImageFilter ( )
protectedvirtual

◆ CreateAnother()

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 >.

◆ GenerateData()

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

This method causes the filter to generate its output.

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

◆ GetCliqueWeight_1()

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

set and get the value for Clique weights

◆ GetCliqueWeight_2()

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

set and get the value for Clique weights

◆ GetCliqueWeight_3()

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

set and get the value for Clique weights

◆ GetCliqueWeight_4()

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

set and get the value for Clique weights

◆ GetCliqueWeight_5()

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

set and get the value for Clique weights

◆ GetCliqueWeight_6()

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

set and get the value for Clique weights

◆ GetLabelledImage()

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

Get the labelled image.

Definition at line 109 of file itkRGBGibbsPriorFilter.h.

◆ GetMaximumNumberOfIterations()

template<typename TInputImage , typename TClassifiedImage >
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.

◆ GetNameOfClass()

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 >.

◆ GetNumberOfClasses()

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

Get the Number of classes.

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

Definition at line 128 of file itkRGBGibbsPriorFilter.h.

◆ GibbsEnergy()

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.

◆ GibbsTotalEnergy()

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.

◆ MinimizeFunctional()

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

allocate memory space for the filter.

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

◆ New()

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

Method for creation through the object factory.

◆ operator=()

template<typename TInputImage , typename TClassifiedImage >
void itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::operator= ( const Self )
privatedelete

◆ PrintSelf()

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 >.

◆ SetBoundaryGradient()

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

◆ SetClassifier()

template<typename TInputImage , typename TClassifiedImage >
void itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::SetClassifier ( typename ClassifierType::Pointer  ptrToClassifier)

Set the pointer to the classifer being used.

◆ SetCliqueWeight_1()

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

set and get the value for Clique weights

◆ SetCliqueWeight_2()

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

set and get the value for Clique weights

◆ SetCliqueWeight_3()

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

set and get the value for Clique weights

◆ SetCliqueWeight_4()

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

set and get the value for Clique weights

◆ SetCliqueWeight_5()

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

set and get the value for Clique weights

◆ SetCliqueWeight_6()

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

set and get the value for Clique weights

◆ SetClusterSize()

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

Set the threshold for the object size.

◆ SetLabelledImage()

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

Set the labelled image.

◆ SetMaximumNumberOfIterations()

template<typename TInputImage , typename TClassifiedImage >
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.

◆ SetNumberOfClasses()

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

Set the Number of classes.

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

Definition at line 116 of file itkRGBGibbsPriorFilter.h.

◆ SetObjectLabel()

template<typename TInputImage , typename TClassifiedImage >
virtual void itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::SetObjectLabel ( LabelType  _arg)
virtual

Set the label for the object region.

◆ SetObjectThreshold()

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

◆ SetStartPoint()

template<typename TInputImage , typename TClassifiedImage >
virtual void itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::SetStartPoint ( IndexType  _arg)
virtual

◆ SetTrainingImage()

template<typename TInputImage , typename TClassifiedImage >
void itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::SetTrainingImage ( TrainingImageType  image)

Set the image required for training type classifiers.

Member Data Documentation

◆ ImageDimension

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

Extract the input image dimension.

Definition at line 160 of file itkRGBGibbsPriorFilter.h.

◆ m_ClassifierPtr

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 231 of file itkRGBGibbsPriorFilter.h.

◆ m_ImageDepth

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

Definition at line 255 of file itkRGBGibbsPriorFilter.h.

◆ m_ImageHeight

template<typename TInputImage , typename TClassifiedImage >
unsigned int itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::m_ImageHeight {0}
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 254 of file itkRGBGibbsPriorFilter.h.

◆ m_ObjectThreshold

template<typename TInputImage , typename TClassifiedImage >
double itk::RGBGibbsPriorFilter< TInputImage, TClassifiedImage >::m_ObjectThreshold {5.0}
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 307 of file itkRGBGibbsPriorFilter.h.


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