ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage > Class Template Reference

#include <itkFastGrowCut.h>

Detailed Description

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
class itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >

Segments a 3D image from user-provided seeds.

Seeds could be just foreground and background, or multiple seeds for multiple objects.

Computational complexity is V*log(V), where V is number of voxels in the region to be segmented.

Based on the method first introduced by:

Liangjia Zhu, Ivan Kolesov, Yi Gao, Ron Kikinis, Allen Tannenbaum. An Effective Interactive Medical Image Segmentation Method Using Fast GrowCut International Conference on Medical Image Computing and Computer Assisted Intervention (MICCAI), Interactive Medical Image Computing Workshop, 2014 https://robobees.seas.harvard.edu/files/nac/files/zhu-miccai2014.pdf

Original code was located at: https://github.com/ljzhu/FastGrowCut

Updated code was adapted from Slicer: https://github.com/Slicer/Slicer/blob/1a692bf36e9c99c47661fbf5fdba0fd3c3e72f95/Modules/Loadable/Segmentations/Logic/vtkImageGrowCutSegment.cxx

Definition at line 58 of file itkFastGrowCut.h.

+ Inheritance diagram for itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >:
+ Collaboration diagram for itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >:

Public Types

using ConstPointer = SmartPointer<const Self>
 
using IndexType = typename InputImageType::IndexType
 
using InputImageType = TInputImage
 
using IntensityPixelType = typename InputImageType::PixelType
 
using LabelImageType = TLabelImage
 
using LabelPixelType = typename LabelImageType::PixelType
 
using MaskImageType = TMaskImage
 
using MaskPixelType = typename MaskImageType::PixelType
 
using Pointer = SmartPointer<Self>
 
using RegionType = typename InputImageType::RegionType
 
using Self = FastGrowCut
 
using SizeType = typename InputImageType::SizeType
 
using SpacingType = typename InputImageType::SpacingType
 
using Superclass = ImageToImageFilter<TInputImage, TLabelImage>
 
- Public Types inherited from itk::ImageToImageFilter< TInputImage, TLabelImage >
using ConstPointer
 
using InputImageConstPointer
 
using InputImagePixelType
 
using InputImagePointer
 
using InputImageRegionType
 
using InputImageType
 
typedef typename OutputImageType::PixelType OutputImagePixelType
 
using OutputImagePixelType
 
typedef typename OutputImageType::RegionType OutputImageRegionType
 
using OutputImageRegionType
 
using Pointer
 
using Self
 
using Superclass
 
- Public Types inherited from itk::ImageSource< TLabelImage >
using ConstPointer
 
using DataObjectIdentifierType
 
using DataObjectPointer
 
using DataObjectPointerArraySizeType
 
using OutputImagePixelType
 
using OutputImagePointer
 
using OutputImageRegionType
 
using OutputImageType
 
using Pointer
 
using Self
 
using Superclass
 
- 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 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
 
void GenerateData () override
 
virtual double GetDistancePenalty ()
 
const MaskImageType * GetMaskImage ()
 
virtual const char * GetNameOfClass () const
 
const LabelImageType * GetSeedImage ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
void Reset ()
 
virtual void SetDistancePenalty (double penalty)
 
void SetMaskImage (const MaskImageType *maskImage)
 
void SetSeedImage (const LabelImageType *seedImage)
 
- Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, TLabelImage >
const InputImageType * GetInput () const
 
const InputImageType * GetInput () const
 
const InputImageType * GetInput (unsigned int idx) const
 
const InputImageType * GetInput (unsigned int idx) const
 
void PopBackInput () override
 
void PopBackInput () override
 
void PopFrontInput () override
 
void PopFrontInput () override
 
virtual void PushBackInput (const InputImageType *input)
 
virtual void PushBackInput (const InputImageType *input)
 
virtual void PushFrontInput (const InputImageType *input)
 
virtual void PushFrontInput (const InputImageType *input)
 
virtual void SetInput (const InputImageType *input)
 
virtual void SetInput (const InputImageType *input)
 
virtual void SetInput (unsigned int, const TInputImage *image)
 
virtual void SetInput (unsigned int, const TInputImage *image)
 
virtual void SetCoordinateTolerance (double _arg)
 
virtual double GetCoordinateTolerance () const
 
virtual void SetCoordinateTolerance (double _arg)
 
virtual double GetCoordinateTolerance () const
 
virtual void SetDirectionTolerance (double _arg)
 
virtual double GetDirectionTolerance () const
 
virtual void SetDirectionTolerance (double _arg)
 
virtual double GetDirectionTolerance () const
 
- Public Member Functions inherited from itk::ImageSource< TLabelImage >
OutputImageType * GetOutput (unsigned int idx)
 
virtual void GraftNthOutput (unsigned int idx, DataObject *graft)
 
virtual void GraftOutput (const DataObjectIdentifierType &key, DataObject *graft)
 
virtual void GraftOutput (DataObject *graft)
 
OutputImageType * GetOutput ()
 
const OutputImageType * GetOutput () const
 
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 ()
 
MultiThreaderBase * GetMultiThreader () const
 
DataObjectPointerArraySizeType GetNumberOfIndexedInputs () const
 
DataObjectPointerArraySizeType GetNumberOfIndexedOutputs () const
 
DataObjectPointerArraySizeType GetNumberOfInputs () const
 
DataObjectPointerArraySizeType GetNumberOfOutputs () const
 
virtual DataObjectPointerArraySizeType GetNumberOfValidRequiredInputs () const
 
NameArray GetOutputNames () const
 
DataObjectPointerArray GetOutputs ()
 
virtual float GetProgress () const
 
NameArray GetRequiredInputNames () const
 
bool HasInput (const DataObjectIdentifierType &key) const
 
bool HasOutput (const DataObjectIdentifierType &key) const
 
void IncrementProgress (float increment)
 
virtual void PrepareOutputs ()
 
virtual void PropagateRequestedRegion (DataObject *output)
 
virtual void ResetPipeline ()
 
virtual void SetAbortGenerateData (bool _arg)
 
void SetMultiThreader (MultiThreaderBase *threader)
 
virtual void SetNumberOfWorkUnitsFromThreadRatio (ThreadIdType ratio)
 
virtual void Update ()
 
virtual void UpdateLargestPossibleRegion ()
 
virtual void UpdateOutputData (DataObject *output)
 
virtual void UpdateOutputInformation ()
 
void UpdateProgress (float progress)
 
virtual void SetReleaseDataFlag (bool val)
 
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 numberOfWorkUnits)
 
virtual ThreadIdType GetNumberOfWorkUnits () const
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *cmd) const
 
unsigned long AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const
 
LightObject::Pointer CreateAnother () const override
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
Command * GetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionary & GetMetaDataDictionary ()
 
const MetaDataDictionary & GetMetaDataDictionary () const
 
virtual ModifiedTimeType GetMTime () const
 
virtual const TimeStamp & GetTimeStamp () 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) const
 
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
Pointer Clone () const
 
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, TLabelImage >
static double GetGlobalDefaultCoordinateTolerance ()
 
static double GetGlobalDefaultCoordinateTolerance ()
 
static double GetGlobalDefaultDirectionTolerance ()
 
static double GetGlobalDefaultDirectionTolerance ()
 
static void SetGlobalDefaultCoordinateTolerance (double)
 
static void SetGlobalDefaultCoordinateTolerance (double)
 
static void SetGlobalDefaultDirectionTolerance (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 val)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Protected Types

using DistanceImageType = itk::Image<DistancePixelType, 3>
 
using DistancePixelType = float
 
- Protected Types inherited from itk::ImageToImageFilter< TInputImage, TLabelImage >
using InputToOutputRegionCopierType
 
using OutputToInputRegionCopierType
 

Protected Member Functions

void DijkstraBasedClassificationAHP ()
 
void EnlargeOutputRequestedRegion (DataObject *output) override
 
 FastGrowCut ()=default
 
void GenerateInputRequestedRegion () override
 
bool InitializationAHP ()
 
 ~FastGrowCut () override
 
- Protected Member Functions inherited from itk::ImageToImageFilter< TInputImage, TLabelImage >
virtual void CallCopyInputRegionToOutputRegion (OutputImageRegionType &destRegion, const InputImageRegionType &srcRegion)
 
virtual void CallCopyInputRegionToOutputRegion (OutputImageRegionType &destRegion, const InputImageRegionType &srcRegion)
 
virtual void CallCopyOutputRegionToInputRegion (InputImageRegionType &destRegion, const OutputImageRegionType &srcRegion)
 
virtual void CallCopyOutputRegionToInputRegion (InputImageRegionType &destRegion, const OutputImageRegionType &srcRegion)
 
void GenerateInputRequestedRegion () override
 
void GenerateInputRequestedRegion () override
 
 ImageToImageFilter ()
 
 ImageToImageFilter ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
void VerifyInputInformation () const override
 
void VerifyInputInformation () const override
 
 ~ImageToImageFilter () override=default
 
 ~ImageToImageFilter () override=default
 
- Protected Member Functions inherited from itk::ImageSource< TLabelImage >
virtual void AfterThreadedGenerateData ()
 
virtual void AllocateOutputs ()
 
virtual void BeforeThreadedGenerateData ()
 
void ClassicMultiThread (ThreadFunctionType callbackFunction)
 
void GenerateData () override
 
virtual const ImageRegionSplitterBase * GetImageRegionSplitter () const
 
 ImageSource ()
 
virtual unsigned int SplitRequestedRegion (unsigned int i, unsigned int pieces, OutputImageRegionType &splitRegion)
 
 ~ImageSource () override=default
 
virtual void ThreadedGenerateData (const OutputImageRegionType &region, 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 GenerateOutputInformation ()
 
virtual void GenerateOutputRequestedRegion (DataObject *output)
 
DataObject * GetInput (const DataObjectIdentifierType &key)
 
const DataObject * GetInput (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
 
DataObjectPointerArraySizeType MakeIndexFromInputName (const DataObjectIdentifierType &name) const
 
DataObjectPointerArraySizeType MakeIndexFromOutputName (const DataObjectIdentifierType &name) const
 
DataObjectIdentifierType MakeNameFromInputIndex (DataObjectPointerArraySizeType idx) const
 
DataObjectIdentifierType MakeNameFromOutputIndex (DataObjectPointerArraySizeType idx) const
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
 ProcessObject ()
 
virtual void PropagateResetPipeline ()
 
virtual void PushBackInput (const DataObject *input)
 
virtual void PushFrontInput (const DataObject *input)
 
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 idx, DataObject *input)
 
virtual void SetNthOutput (DataObjectPointerArraySizeType idx, DataObject *output)
 
void SetNumberOfIndexedInputs (DataObjectPointerArraySizeType num)
 
void SetNumberOfIndexedOutputs (DataObjectPointerArraySizeType num)
 
virtual void SetNumberOfRequiredInputs (DataObjectPointerArraySizeType)
 
virtual void SetNumberOfRequiredOutputs (DataObjectPointerArraySizeType _arg)
 
virtual void SetOutput (const DataObjectIdentifierType &name, DataObject *output)
 
virtual void SetPrimaryInput (DataObject *object)
 
virtual void SetPrimaryOutput (DataObject *object)
 
void SetRequiredInputNames (const NameArray &)
 
virtual void VerifyPreconditions () const
 
 ~ProcessObject () override
 
DataObject * GetInput (DataObjectPointerArraySizeType idx)
 
const DataObject * GetInput (DataObjectPointerArraySizeType idx) const
 
DataObject * GetPrimaryInput ()
 
const DataObject * GetPrimaryInput () const
 
virtual void SetPrimaryInputName (const DataObjectIdentifierType &key)
 
virtual const char * GetPrimaryInputName () const
 
DataObject * GetOutput (const DataObjectIdentifierType &key)
 
const DataObject * GetOutput (const DataObjectIdentifierType &key) const
 
virtual void SetPrimaryOutputName (const DataObjectIdentifierType &key)
 
virtual const char * GetPrimaryOutputName () const
 
DataObject * GetOutput (DataObjectPointerArraySizeType i)
 
const DataObject * GetOutput (DataObjectPointerArraySizeType i) const
 
DataObject * GetPrimaryOutput ()
 
const DataObject * GetPrimaryOutput () const
 
virtual bool GetThreaderUpdateProgress () const
 
virtual void ThreaderUpdateProgressOn ()
 
virtual void ThreaderUpdateProgressOff ()
 
virtual void SetThreaderUpdateProgress (bool arg)
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &timeStamp)
 
 ~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 ()
 

Static Protected Attributes

static constexpr NodeKeyValueType DIST_EPSILON = 1e-3f
 
static constexpr NodeKeyValueType DIST_INF = std::numeric_limits<float>::max()
 
static constexpr unsigned char NNGBH = 26
 

Private Attributes

bool m_bSegInitialized { false }
 
NodeIndexType m_DimX
 
NodeIndexType m_DimY
 
NodeIndexType m_DimZ
 
double m_DistancePenalty { 0.0 }
 
DistanceImageType::Pointer m_DistanceVolume = DistanceImageType::New()
 
FibHeap * m_Heap { nullptr }
 
FibHeapNode * m_HeapNodes { nullptr }
 
std::vector< double > m_NeighborDistancePenalties
 
std::vector< NodeIndexType > m_NeighborIndexOffsets
 
std::vector< unsigned char > m_NumberOfNeighbors
 

Additional Inherited Members

- Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TLabelImage >
static constexpr unsigned int InputImageDimension
 
static constexpr unsigned int InputImageDimension
 
static constexpr unsigned int OutputImageDimension
 
static constexpr unsigned int OutputImageDimension
 
- Static Public Attributes inherited from itk::ImageSource< TLabelImage >
static constexpr unsigned int OutputImageDimension
 
- Static Protected Member Functions inherited from itk::ImageSource< TLabelImage >
static const ImageRegionSplitterBase * GetGlobalDefaultSplitter ()
 
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION ThreaderCallback (void *arg)
 
- Static Protected Member Functions inherited from itk::ProcessObject
template<typename TSourceObject>
static void MakeRequiredOutputs (TSourceObject &sourceObject, const DataObjectPointerArraySizeType numberOfRequiredOutputs)
 
static constexpr float progressFixedToFloat (uint32_t fixed)
 
static uint32_t progressFloatToFixed (float f)
 
- Protected Attributes inherited from itk::ImageSource< TLabelImage >
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 {}
 

Member Typedef Documentation

◆ ConstPointer

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
using itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::ConstPointer = SmartPointer<const Self>

Definition at line 67 of file itkFastGrowCut.h.

◆ DistanceImageType

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
using itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::DistanceImageType = itk::Image<DistancePixelType, 3>
protected

Definition at line 175 of file itkFastGrowCut.h.

◆ DistancePixelType

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
using itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::DistancePixelType = float
protected

Definition at line 174 of file itkFastGrowCut.h.

◆ IndexType

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
using itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::IndexType = typename InputImageType::IndexType

Definition at line 85 of file itkFastGrowCut.h.

◆ InputImageType

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
using itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::InputImageType = TInputImage

Definition at line 75 of file itkFastGrowCut.h.

◆ IntensityPixelType

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
using itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::IntensityPixelType = typename InputImageType::PixelType

Definition at line 76 of file itkFastGrowCut.h.

◆ LabelImageType

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
using itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::LabelImageType = TLabelImage

Definition at line 78 of file itkFastGrowCut.h.

◆ LabelPixelType

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
using itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::LabelPixelType = typename LabelImageType::PixelType

Definition at line 79 of file itkFastGrowCut.h.

◆ MaskImageType

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
using itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::MaskImageType = TMaskImage

Definition at line 81 of file itkFastGrowCut.h.

◆ MaskPixelType

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
using itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::MaskPixelType = typename MaskImageType::PixelType

Definition at line 82 of file itkFastGrowCut.h.

◆ Pointer

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
using itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::Pointer = SmartPointer<Self>

Definition at line 66 of file itkFastGrowCut.h.

◆ RegionType

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
using itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::RegionType = typename InputImageType::RegionType

Definition at line 84 of file itkFastGrowCut.h.

◆ Self

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
using itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::Self = FastGrowCut

Standard class type aliases.

Definition at line 64 of file itkFastGrowCut.h.

◆ SizeType

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
using itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::SizeType = typename InputImageType::SizeType

Definition at line 86 of file itkFastGrowCut.h.

◆ SpacingType

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
using itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::SpacingType = typename InputImageType::SpacingType

Definition at line 87 of file itkFastGrowCut.h.

◆ Superclass

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
using itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::Superclass = ImageToImageFilter<TInputImage, TLabelImage>

Definition at line 65 of file itkFastGrowCut.h.

Constructor & Destructor Documentation

◆ FastGrowCut()

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::FastGrowCut ( )
protecteddefault

Referenced by GetNameOfClass().

◆ ~FastGrowCut()

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::~FastGrowCut ( )
inlineoverrideprotected

Definition at line 165 of file itkFastGrowCut.h.

References m_Heap, and m_HeapNodes.

Member Function Documentation

◆ CreateAnother()

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
virtual::itk::LightObject::Pointer itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::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::LightObject.

◆ DijkstraBasedClassificationAHP()

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
void itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::DijkstraBasedClassificationAHP ( )
protected

◆ EnlargeOutputRequestedRegion()

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
void itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::EnlargeOutputRequestedRegion ( DataObject * output)
overrideprotectedvirtual

Give the process object a chance to indicate that it will produce more output than it was requested to produce. For example, many imaging filters must compute the entire output at once or can only produce output in complete slices. Such filters cannot handle smaller requested regions. These filters must provide an implementation of this method, setting the output requested region to the size they will produce. By default, a process object does not modify the size of the output requested region.

Reimplemented from itk::ProcessObject.

◆ GenerateData()

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
void itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::GenerateData ( void )
overridevirtual

This method causes the filter to generate its output.

Reimplemented from itk::ProcessObject.

◆ GenerateInputRequestedRegion()

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
void itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::GenerateInputRequestedRegion ( )
overrideprotectedvirtual

What is the input requested region that is required to produce the output requested region? By default, the largest possible region is always required but this is overridden in many subclasses. For instance, for an image processing filter where an output pixel is a simple function of an input pixel, the input requested region will be set to the output requested region. For an image processing filter where an output pixel is a function of the pixels in a neighborhood of an input pixel, then the input requested region will need to be larger than the output requested region (to avoid introducing artificial boundary conditions). This function should never request an input region that is outside the the input largest possible region (i.e. implementations of this method should crop the input requested region at the boundaries of the input largest possible region).

Reimplemented from itk::ProcessObject.

◆ GetDistancePenalty()

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
virtual double itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::GetDistancePenalty ( )
virtual

◆ GetMaskImage()

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
const MaskImageType * itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::GetMaskImage ( )
inline

Definition at line 147 of file itkFastGrowCut.h.

References itk::ProcessObject::GetInput().

◆ GetNameOfClass()

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
virtual const char * itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

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

References FastGrowCut().

◆ GetSeedImage()

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
const LabelImageType * itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::GetSeedImage ( )
inline

Definition at line 130 of file itkFastGrowCut.h.

References itk::ProcessObject::GetInput().

◆ InitializationAHP()

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
bool itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::InitializationAHP ( )
protected

◆ New()

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
static Pointer itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::New ( )
static

Method for creation through the object factory.

◆ PrintSelf()

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
void itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::PrintSelf ( std::ostream & os,
Indent indent ) const
overridevirtual

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

◆ Reset()

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
void itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::Reset ( )

Reset to initial state. This forces full recomputation of the result label volume. This method has to be called if intensity volume changes or if seeds are deleted after initial computation.

Referenced by SetDistancePenalty().

◆ SetDistancePenalty()

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
virtual void itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::SetDistancePenalty ( double penalty)
inlinevirtual

Spatial regularization factor, which can force growing in nearby regions. For each physical unit distance, this much intensity level difference is simulated. Zero by default, meaning spatial distance does not play a role in the region growing, only intensity value similarity.

Definition at line 106 of file itkFastGrowCut.h.

References itk::Math::ExactlyEquals(), m_DistancePenalty, itk::Object::Modified(), and Reset().

◆ SetMaskImage()

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
void itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::SetMaskImage ( const MaskImageType * maskImage)
inline

Set mask volume (input 2). Optional.

If this volume is specified then only those regions outside the mask (where mask has zero value) will be included in the segmentation result. Regions outside the mask will not be used for region growing either (growing will not start from or cross through masked region).

Definition at line 142 of file itkFastGrowCut.h.

References itk::ProcessObject::SetNthInput().

◆ SetSeedImage()

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
void itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::SetSeedImage ( const LabelImageType * seedImage)
inline

Definition at line 124 of file itkFastGrowCut.h.

References itk::ProcessObject::SetNthInput().

Member Data Documentation

◆ DIST_EPSILON

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
NodeKeyValueType itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::DIST_EPSILON = 1e-3f
staticconstexprprotected

Definition at line 172 of file itkFastGrowCut.h.

◆ DIST_INF

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
NodeKeyValueType itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::DIST_INF = std::numeric_limits<float>::max()
staticconstexprprotected

Definition at line 171 of file itkFastGrowCut.h.

◆ m_bSegInitialized

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
bool itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::m_bSegInitialized { false }
private

Definition at line 204 of file itkFastGrowCut.h.

◆ m_DimX

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
NodeIndexType itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::m_DimX
private

Definition at line 194 of file itkFastGrowCut.h.

◆ m_DimY

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
NodeIndexType itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::m_DimY
private

Definition at line 195 of file itkFastGrowCut.h.

◆ m_DimZ

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
NodeIndexType itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::m_DimZ
private

Definition at line 196 of file itkFastGrowCut.h.

◆ m_DistancePenalty

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
double itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::m_DistancePenalty { 0.0 }
private

Definition at line 205 of file itkFastGrowCut.h.

Referenced by SetDistancePenalty().

◆ m_DistanceVolume

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
DistanceImageType::Pointer itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::m_DistanceVolume = DistanceImageType::New()
private

Definition at line 192 of file itkFastGrowCut.h.

◆ m_Heap

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
FibHeap* itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::m_Heap { nullptr }
private

Definition at line 202 of file itkFastGrowCut.h.

Referenced by ~FastGrowCut().

◆ m_HeapNodes

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
FibHeapNode* itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::m_HeapNodes { nullptr }
private

Definition at line 203 of file itkFastGrowCut.h.

Referenced by ~FastGrowCut().

◆ m_NeighborDistancePenalties

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
std::vector<double> itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::m_NeighborDistancePenalties
private

Definition at line 199 of file itkFastGrowCut.h.

◆ m_NeighborIndexOffsets

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
std::vector<NodeIndexType> itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::m_NeighborIndexOffsets
private

Definition at line 198 of file itkFastGrowCut.h.

◆ m_NumberOfNeighbors

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
std::vector<unsigned char> itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::m_NumberOfNeighbors
private

Definition at line 200 of file itkFastGrowCut.h.

◆ NNGBH

template<typename TInputImage, typename TLabelImage, typename TMaskImage = TLabelImage>
unsigned char itk::FastGrowCut< TInputImage, TLabelImage, TMaskImage >::NNGBH = 26
staticconstexprprotected

Definition at line 173 of file itkFastGrowCut.h.


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