ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage > Class Template Reference

#include <itkParabolicErodeDilateImageFilter.h>

Detailed Description

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
class itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >

Parent class for morphological operations with parabolic structuring elements.

Parabolic structuring elements are the morphological counterpart of the gaussian function in linear processing. Parabolic structuring elements are dimensionally decomposable and fast algorithms are available for computing erosions and dilations along lines. This class implements the "point of contact" algorithm and the "intersection" algorithm. The contact point algorithm is faster at small scales. The intersection algorithm was rediscovered by Felzenszwalb & Huttenlocher, but was actually described and tested by van den Boomgaard many years earlier. The intersection algorithm is faster for scales > 1, and independent of scale. It also seems to perform significantly better in the distance transform application. The intersection algorithm is also used in the IJ article on generalised distance transforms.

Parabolic structuring functions can be used as a fast alternative to the "rolling ball" structuring element classically used in background estimation, for example in ImageJ, have applications in image sharpening and distance transform computation.

This class uses an internal buffer of RealType pixels for each line. This line is cast to the output pixel type when written back to the output image. Since the filter uses dimensional decomposition this approach could result in inaccuracy as pixels are cast back and forth between low and high precision types. Use a high precision output type and cast manually if this is a problem.

Boomgaard, R. van den and Dorst, L. and Makram-Ebeid, L.S. and Schavemaker, J. Quadratic structuring functions in mathematical morphology. Mathematical Morphology and its Applications to Image and Signal Processing.

Felzenszwalb, P.F. & Huttenlocher, D.P. Distance Transforms of Sampled Functions. Techreport: Cornell Computing and Information Science, 2004.

This filter is threaded. Threading mechanism derived from SignedMaurerDistanceMap extensions by Gaƫtan Lehmann

Core methods described in the InsightJournal article: "Morphology with parabolic structuring elements"

https://hdl.handle.net/1926/1370

Author
Richard Beare, Department of Medicine, Monash University, Australia. Richa.nosp@m.rd.B.nosp@m.eare@.nosp@m.mona.nosp@m.sh.ed.nosp@m.u

Definition at line 83 of file itkParabolicErodeDilateImageFilter.h.

+ Inheritance diagram for itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >:
+ Collaboration diagram for itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >:

Public Types

using ConstPointer = SmartPointer<const Self>
 
using InputImageConstPointer = typename TInputImage::ConstPointer
 
using InputImagePointer = typename TInputImage::Pointer
 
using InputImageType = TInputImage
 
using InputSizeType = typename TInputImage::SizeType
 
using InternalRealType = typename NumericTraits<PixelType>::FloatType
 
using OutputImageRegionType = typename OutputImageType::RegionType
 
using OutputImageType = TOutputImage
 
using OutputIndexType = typename OutputImageType::IndexType
 
using OutputPixelType = typename TOutputImage::PixelType
 
using OutputSizeType = typename TOutputImage::SizeType
 
enum  ParabolicAlgorithm {
  NOCHOICE = 0 ,
  CONTACTPOINT = 1 ,
  INTERSECTION = 2
}
 
using PixelType = typename TInputImage::PixelType
 
using Pointer = SmartPointer<Self>
 
using RadiusType = typename itk::FixedArray<ScalarRealType, TInputImage::ImageDimension>
 
using RealType = typename NumericTraits<PixelType>::RealType
 
using ScalarRealType = typename NumericTraits<PixelType>::ScalarRealType
 
using Self = ParabolicErodeDilateImageFilter
 
using Superclass = ImageToImageFilter<TInputImage, TOutputImage>
 
- Public Types inherited from itk::ImageToImageFilter< TInputImage, TInputImage >
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< TInputImage >
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
 
virtual const char * GetNameOfClass () const
 
virtual const int & GetParabolicAlgorithm () const
 
virtual const RadiusType & GetScale () const
 
virtual const bool & GetUseImageSpacing () const
 
virtual void SetParabolicAlgorithm (int _arg)
 
virtual void SetScale (RadiusType _arg)
 
void SetScale (ScalarRealType scale)
 
virtual void SetUseImageSpacing (bool _arg)
 
virtual void UseImageSpacingOff ()
 
virtual void UseImageSpacingOn ()
 
- Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, TInputImage >
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< TInputImage >
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
 
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, TInputImage >
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 ()
 

Static Public Attributes

static constexpr unsigned int ImageDimension = TInputImage::ImageDimension
 
static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension
 
static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension
 
- Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TInputImage >
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< TInputImage >
static constexpr unsigned int OutputImageDimension
 

Protected Member Functions

void EnlargeOutputRequestedRegion (DataObject *output) override
 
void GenerateData () override
 
void GenerateInputRequestedRegion () override
 
 ParabolicErodeDilateImageFilter ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
unsigned int SplitRequestedRegion (unsigned int i, unsigned int num, OutputImageRegionType &splitRegion) override
 
void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override
 
 ~ParabolicErodeDilateImageFilter () override=default
 
- Protected Member Functions inherited from itk::ImageToImageFilter< TInputImage, TInputImage >
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)
 
 ImageToImageFilter ()
 
 ImageToImageFilter ()
 
void VerifyInputInformation () const override
 
void VerifyInputInformation () const override
 
 ~ImageToImageFilter () override=default
 
 ~ImageToImageFilter () override=default
 
- Protected Member Functions inherited from itk::ImageSource< TInputImage >
virtual void AfterThreadedGenerateData ()
 
virtual void AllocateOutputs ()
 
virtual void BeforeThreadedGenerateData ()
 
void ClassicMultiThread (ThreadFunctionType callbackFunction)
 
virtual const ImageRegionSplitterBase * GetImageRegionSplitter () const
 
 ImageSource ()
 
 ~ImageSource () override=default
 
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 ()
 

Protected Attributes

int m_ParabolicAlgorithm
 
bool m_UseImageSpacing
 
- Protected Attributes inherited from itk::ImageSource< TInputImage >
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 {}
 

Private Attributes

unsigned int m_CurrentDimension
 
RadiusType m_Scale
 

Additional Inherited Members

- Protected Types inherited from itk::ImageToImageFilter< TInputImage, TInputImage >
using InputToOutputRegionCopierType
 
using OutputToInputRegionCopierType
 
- Static Protected Member Functions inherited from itk::ImageSource< TInputImage >
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)
 

Member Typedef Documentation

◆ ConstPointer

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
using itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::ConstPointer = SmartPointer<const Self>

Definition at line 92 of file itkParabolicErodeDilateImageFilter.h.

◆ InputImageConstPointer

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
using itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::InputImageConstPointer = typename TInputImage::ConstPointer

Definition at line 110 of file itkParabolicErodeDilateImageFilter.h.

◆ InputImagePointer

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
using itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::InputImagePointer = typename TInputImage::Pointer

Smart pointer type alias support.

Definition at line 109 of file itkParabolicErodeDilateImageFilter.h.

◆ InputImageType

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
using itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::InputImageType = TInputImage

Pixel Type of the input image

Definition at line 101 of file itkParabolicErodeDilateImageFilter.h.

◆ InputSizeType

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
using itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::InputSizeType = typename TInputImage::SizeType

Definition at line 111 of file itkParabolicErodeDilateImageFilter.h.

◆ InternalRealType

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
using itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::InternalRealType = typename NumericTraits<PixelType>::FloatType

Define the image type for internal computations RealType is usually 'double' in NumericTraits. Here we prefer float in order to save memory.

Definition at line 129 of file itkParabolicErodeDilateImageFilter.h.

◆ OutputImageRegionType

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
using itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::OutputImageRegionType = typename OutputImageType::RegionType

Definition at line 124 of file itkParabolicErodeDilateImageFilter.h.

◆ OutputImageType

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
using itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::OutputImageType = TOutputImage

Definition at line 102 of file itkParabolicErodeDilateImageFilter.h.

◆ OutputIndexType

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
using itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::OutputIndexType = typename OutputImageType::IndexType

Definition at line 114 of file itkParabolicErodeDilateImageFilter.h.

◆ OutputPixelType

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
using itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::OutputPixelType = typename TOutputImage::PixelType

Definition at line 106 of file itkParabolicErodeDilateImageFilter.h.

◆ OutputSizeType

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
using itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::OutputSizeType = typename TOutputImage::SizeType

Definition at line 112 of file itkParabolicErodeDilateImageFilter.h.

◆ PixelType

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
using itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::PixelType = typename TInputImage::PixelType

Definition at line 103 of file itkParabolicErodeDilateImageFilter.h.

◆ Pointer

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
using itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::Pointer = SmartPointer<Self>

Definition at line 91 of file itkParabolicErodeDilateImageFilter.h.

◆ RadiusType

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
using itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::RadiusType = typename itk::FixedArray<ScalarRealType, TInputImage::ImageDimension>

a type to represent the "kernel radius"

Definition at line 117 of file itkParabolicErodeDilateImageFilter.h.

◆ RealType

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
using itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::RealType = typename NumericTraits<PixelType>::RealType

Definition at line 104 of file itkParabolicErodeDilateImageFilter.h.

◆ ScalarRealType

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
using itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::ScalarRealType = typename NumericTraits<PixelType>::ScalarRealType

Definition at line 105 of file itkParabolicErodeDilateImageFilter.h.

◆ Self

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
using itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::Self = ParabolicErodeDilateImageFilter

Standard class type alias.

Definition at line 89 of file itkParabolicErodeDilateImageFilter.h.

◆ Superclass

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
using itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::Superclass = ImageToImageFilter<TInputImage, TOutputImage>

Definition at line 90 of file itkParabolicErodeDilateImageFilter.h.

Member Enumeration Documentation

◆ ParabolicAlgorithm

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
enum itk::ParabolicErodeDilateImageFilter::ParabolicAlgorithm
Enumerator
NOCHOICE 
CONTACTPOINT 
INTERSECTION 

Definition at line 140 of file itkParabolicErodeDilateImageFilter.h.

Constructor & Destructor Documentation

◆ ParabolicErodeDilateImageFilter()

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::ParabolicErodeDilateImageFilter ( )
protected

Image related type alias.

◆ ~ParabolicErodeDilateImageFilter()

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::~ParabolicErodeDilateImageFilter ( )
overrideprotecteddefault

Member Function Documentation

◆ CreateAnother()

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
virtual::itk::LightObject::Pointer itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::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::Object.

Reimplemented in itk::ParabolicErodeImageFilter< TInputImage, TOutputImage >.

◆ EnlargeOutputRequestedRegion()

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
void itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::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, bool doDilate, typename TOutputImage = TInputImage>
void itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::GenerateData ( )
overrideprotectedvirtual

Generate Data

Reimplemented from itk::ImageSource< TInputImage >.

◆ GenerateInputRequestedRegion()

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
void itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::GenerateInputRequestedRegion ( )
overrideprotectedvirtual

What is the input requested region that is required to produce the output requested region? The base assumption for image processing filters is that the input requested region can be set to match the output requested region. If a filter requires more input (for instance a filter that uses neighborhoods needs more input than output to avoid introducing artificial boundary conditions) or less input (for instance a magnify filter) will have to override this method. In doing so, it should call its superclass' implementation as its first step. Note that imaging filters operate differently than the classes to this point in the class hierarchy. Up till now, the base assumption has been that the largest possible region will be requested of the input.

This implementation of GenerateInputRequestedRegion() only processes the inputs that are a subclass of the ImageBase<InputImageDimension>. If an input is another type of DataObject (including an Image of a different dimension), they are skipped by this method. The subclasses of ImageToImageFilter are responsible for providing an implementation of GenerateInputRequestedRegion() when there are multiple inputs of different types.

See also
ProcessObject::GenerateInputRequestedRegion(), ImageSource::GenerateInputRequestedRegion()

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

◆ GetNameOfClass()

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
virtual const char * itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::GetNameOfClass ( ) const
virtual

◆ GetParabolicAlgorithm()

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
virtual const int & itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::GetParabolicAlgorithm ( ) const
virtual

◆ GetScale()

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
virtual const RadiusType & itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::GetScale ( ) const
virtual

◆ GetUseImageSpacing()

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
virtual const bool & itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::GetUseImageSpacing ( ) const
virtual

◆ New()

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
static Pointer itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::New ( )
static

Method for creation through the object factory.

◆ PrintSelf()

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
void itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::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::ImageToImageFilter< TInputImage, TInputImage >.

◆ SetParabolicAlgorithm()

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
virtual void itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::SetParabolicAlgorithm ( int _arg)
virtual

Set/Get the method used. Choices are contact point or intersection. Intersection is the default. Contact point can be faster at small scales.

◆ SetScale() [1/2]

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
virtual void itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::SetScale ( RadiusType _arg)
virtual

◆ SetScale() [2/2]

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
void itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::SetScale ( ScalarRealType scale)

◆ SetUseImageSpacing()

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
virtual void itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::SetUseImageSpacing ( bool _arg)
virtual

Set/Get whether the scale refers to pixels or world units - default is false

◆ SplitRequestedRegion()

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
unsigned int itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::SplitRequestedRegion ( unsigned int i,
unsigned int pieces,
OutputImageRegionType & splitRegion )
overrideprotectedvirtual

Split the output's RequestedRegion into "pieces" pieces, returning region "i" as "splitRegion". This method is called concurrently "pieces" times. The regions must not overlap. The method returns the number of pieces that the routine is capable of splitting the output RequestedRegion, i.e. return value is less than or equal to "pieces".

To override the algorithm used split the image this method should no longer be overridden. Instead, the algorithm should be implemented in a ImageRegionSplitterBase class, and the GetImageRegionSplitter should overridden to return the splitter object with the desired algorithm.

See also
GetImageRegionSplitter

Reimplemented from itk::ImageSource< TInputImage >.

◆ ThreadedGenerateData()

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
void itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::ThreadedGenerateData ( const OutputImageRegionType & region,
ThreadIdType threadId )
overrideprotectedvirtual

If an imaging filter can be implemented as a multithreaded algorithm, the filter will provide an implementation of ThreadedGenerateData() or DynamicThreadedGenerateData(). This superclass will automatically split the output image into a number of pieces, spawn multiple threads, and call (Dynamic)ThreadedGenerateData() in each thread. Prior to spawning threads, the BeforeThreadedGenerateData() method is called. After all the threads have completed, the AfterThreadedGenerateData() method is called. If an image processing filter cannot support threading, that filter should provide an implementation of the GenerateData() method instead of providing an implementation of (Dynamic)ThreadedGenerateData(). If a filter provides a GenerateData() method as its implementation, then the filter is responsible for allocating the output data. If a filter provides a (Dynamic)ThreadedGenerateData() method as its implementation, then the output memory will allocated automatically by this superclass. The (Dynamic)ThreadedGenerateData() method should only produce the output specified by "outputThreadRegion" parameter. (Dynamic)ThreadedGenerateData() cannot write to any other portion of the output image (as this is responsibility of a different thread).

DynamicThreadedGenerateData() is the newer variant without threadId, and is the preferred signature, which is called by default. This variant can split the requested region into different number of pieces depending on current multi-processing load, which allows better load balancing. The non-dynamic (also known as classic) ThreadedGenerateData() signature has threadId, and number of pieces to be split into is known in advance. It is activated by calling this->DynamicMultiThreadingOff(); in derived class constructor. It should be used when the multi-threaded algorithm needs to pre-allocate some data structure with size dependent on the number of pieces (also known as chunks, work units, and sometimes also incorrectly as threads). Only PlatformMultiThreader guarantees that each piece will be processed in its own specific thread. Pool and TBB multi-threaders maintain a pool of threads (normally equal to number of processing cores) which they use to process the pieces. This normally results in a single thread being reused to process multiple work units.

See also
GenerateData(), SplitRequestedRegion()

Reimplemented from itk::ImageSource< TInputImage >.

◆ UseImageSpacingOff()

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
virtual void itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::UseImageSpacingOff ( )
virtual

◆ UseImageSpacingOn()

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
virtual void itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::UseImageSpacingOn ( )
virtual

Member Data Documentation

◆ ImageDimension

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
unsigned int itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::ImageDimension = TInputImage::ImageDimension
staticconstexpr

Image dimension.

Definition at line 120 of file itkParabolicErodeDilateImageFilter.h.

◆ InputImageDimension

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
unsigned int itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::InputImageDimension = TInputImage::ImageDimension
staticconstexpr

Definition at line 122 of file itkParabolicErodeDilateImageFilter.h.

◆ m_CurrentDimension

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
unsigned int itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::m_CurrentDimension
private

Definition at line 197 of file itkParabolicErodeDilateImageFilter.h.

◆ m_ParabolicAlgorithm

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
int itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::m_ParabolicAlgorithm
protected

Definition at line 192 of file itkParabolicErodeDilateImageFilter.h.

◆ m_Scale

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
RadiusType itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::m_Scale
private

Definition at line 195 of file itkParabolicErodeDilateImageFilter.h.

◆ m_UseImageSpacing

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
bool itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::m_UseImageSpacing
protected

Definition at line 191 of file itkParabolicErodeDilateImageFilter.h.

◆ OutputImageDimension

template<typename TInputImage, bool doDilate, typename TOutputImage = TInputImage>
unsigned int itk::ParabolicErodeDilateImageFilter< TInputImage, doDilate, TOutputImage >::OutputImageDimension = TOutputImage::ImageDimension
staticconstexpr

Definition at line 121 of file itkParabolicErodeDilateImageFilter.h.


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