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

#include <itkCannyEdgeDetectionRecursiveGaussianImageFilter.h>

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

Detailed Description

template<typename TInputImage, typename TOutputImage>
class itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >

This filter is an implementation of a Canny edge detector for scalar-valued images. Based on John Canny's paper "A Computational Approach to Edge Detection"(IEEE Transactions on Pattern Analysis and Machine Intelligence, Vol. PAMI-8, No.6, November 1986), there are four major steps used in the edge-detection scheme: (1) Smooth the input image with Gaussian filter. (2) Calculate the second directional derivatives of the smoothed image. (3) Non-Maximum Suppression: the zero-crossings of 2nd derivative are found, and the sign of third derivative is used to find the correct extrema. (4) The hysteresis thresholding is applied to the gradient magnitude (multiplied with zero-crossings) of the smoothed image to find and link edges.

Inputs and Outputs
The input to this filter should be a scalar, real-valued Itk image of arbitrary dimension. The output should also be a scalar, real-value Itk image of the same dimensionality.
Parameters
There are four parameters for this filter that control the sub-filters used by the algorithm.
Sigma is used in the Gaussian smoothing of the input image. See itkSmoothingRecursiveGaussianImageFilter for information on these parameters.
Threshold is the lowest allowed value in the output image. Its data type is the same as the data type of the output image. Any values below the Threshold level will be replaced with the OutsideValue parameter value, whose default is zero.
Todo:
Edge-linking will be added when an itk connected component labeling algorithm is available.
See Also
SmoothingRecursiveGaussianImageFilter
ZeroCrossingImageFilter
ThresholdImageFilter

Definition at line 93 of file itkCannyEdgeDetectionRecursiveGaussianImageFilter.h.

Classes

struct  CannyThreadStruct
 

Public Types

using ArrayType = FixedArray< double, itkGetStaticConstMacro(ImageDimension)>
 
using ConstPointer = SmartPointer< const Self >
 
using DefaultBoundaryConditionType = ZeroFluxNeumannBoundaryCondition< OutputImageType >
 
using GaussianImageFilterType = SmoothingRecursiveGaussianImageFilter< InputImageType, OutputImageType >
 
using IndexType = typename TInputImage::IndexType
 
using InputImagePixelType = typename TInputImage::PixelType
 
using InputImageType = TInputImage
 
using ListNodeStorageType = ObjectStore< ListNodeType >
 
using ListNodeType = ListNode< IndexType >
 
using ListPointerType = typename ListType::Pointer
 
using ListType = SparseFieldLayer< ListNodeType >
 
using NeighborhoodType = ConstNeighborhoodIterator< OutputImageType, DefaultBoundaryConditionType >
 
using OutputImagePixelType = typename TOutputImage::PixelType
 
using OutputImageRegionType = typename TOutputImage::RegionType
 
using OutputImageType = TOutputImage
 
using Pointer = SmartPointer< Self >
 
using ScalarRealType = typename GaussianImageFilterType::ScalarRealType
 
using Self = CannyEdgeDetectionRecursiveGaussianImageFilter
 
using SigmaArrayType = typename GaussianImageFilterType::SigmaArrayType
 
using Superclass = ImageToImageFilter< TInputImage, TOutputImage >
 
- Public Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
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< TOutputImage >
 
- Public Types inherited from itk::ImageSource< TOutputImage >
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 = TOutputImage
 
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
 
void GenerateInputRequestedRegion () override throw (InvalidRequestedRegionError)
 
virtual OutputImagePixelType GetLowerThreshold ()
 
virtual const char * GetNameOfClass () const
 
OutputImageTypeGetNonMaximumSuppressionImage () const
 
virtual OutputImagePixelType GetOutsideValue ()
 
OutputImagePixelType GetThreshold (OutputImagePixelType)
 
virtual OutputImagePixelType GetUpperThreshold ()
 
virtual void SetLowerThreshold (OutputImagePixelType _arg)
 
virtual void SetOutsideValue (OutputImagePixelType _arg)
 
void SetThreshold (const OutputImagePixelType th)
 
virtual void SetUpperThreshold (OutputImagePixelType _arg)
 
void SetSigmaArray (const SigmaArrayType &sigmas)
 
void SetSigma (ScalarRealType sigma)
 
SigmaArrayType GetSigmaArray () const
 
ScalarRealType GetSigma () const
 
- Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
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 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< TOutputImage >
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 void EnlargeOutputRequestedRegion (DataObject *)
 
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 noexceptoverride
 
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::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 constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension
 
- Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension
 
static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension
 
- Static Public Attributes inherited from itk::ImageSource< TOutputImage >
static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension
 

Protected Types

using MultiplyImageFilterType = MultiplyImageFilter< OutputImageType, OutputImageType, OutputImageType >
 
- Protected Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
using InputToOutputRegionCopierType = ImageToImageFilterDetail::ImageRegionCopier< Self::OutputImageDimension, Self::InputImageDimension >
 
using OutputToInputRegionCopierType = ImageToImageFilterDetail::ImageRegionCopier< Self::InputImageDimension, Self::OutputImageDimension >
 

Protected Member Functions

 CannyEdgeDetectionRecursiveGaussianImageFilter ()
 
 CannyEdgeDetectionRecursiveGaussianImageFilter (const Self &)
 
void GenerateData () override
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
- Protected Member Functions inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
virtual void CallCopyInputRegionToOutputRegion (OutputImageRegionType &destRegion, const InputImageRegionType &srcRegion)
 
virtual void CallCopyOutputRegionToInputRegion (InputImageRegionType &destRegion, const OutputImageRegionType &srcRegion)
 
 ImageToImageFilter ()
 
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< TOutputImage >
virtual void AfterThreadedGenerateData ()
 
virtual void AllocateOutputs ()
 
virtual void BeforeThreadedGenerateData ()
 
void ClassicMultiThread (ThreadFunctionType callbackFunction)
 
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 &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 GenerateOutputInformation ()
 
virtual void GenerateOutputRequestedRegion (DataObject *output)
 
DataObjectGetInput (const DataObjectIdentifierType &key)
 
const DataObjectGetInput (const DataObjectIdentifierType &key) const
 
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredInputs () const
 
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredOutputs () const
 
bool IsIndexedInputName (const DataObjectIdentifierType &) const
 
bool IsIndexedOutputName (const DataObjectIdentifierType &) const
 
bool IsRequiredInputName (const DataObjectIdentifierType &) const
 
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 Member Functions

void AllocateUpdateBuffer ()
 
void Compute2ndDerivative ()
 
void Compute2ndDerivativePos ()
 
OutputImagePixelType ComputeCannyEdge (const NeighborhoodType &it, void *globalData)
 
void FollowEdge (IndexType index)
 
void HysteresisThresholding ()
 
bool InBounds (IndexType index)
 
void ThreadedCompute2ndDerivative (const OutputImageRegionType &outputRegionForThread, int threadId)
 
void ThreadedCompute2ndDerivativePos (const OutputImageRegionType &outputRegionForThread, int threadId)
 
 ~CannyEdgeDetectionRecursiveGaussianImageFilter () override
 

Static Private Member Functions

static ITK_THREAD_RETURN_TYPE Compute2ndDerivativePosThreaderCallback (void *arg)
 
static ITK_THREAD_RETURN_TYPE Compute2ndDerivativeThreaderCallback (void *arg)
 

Private Attributes

unsigned long m_Center
 
std::slice m_ComputeCannyEdgeSlice [ImageDimension]
 
GaussianImageFilterType::Pointer m_GaussianFilter
 
OutputImagePixelType m_LowerThreshold
 
ArrayType m_MaximumError
 
MultiplyImageFilterType::Pointer m_MultiplyImageFilter
 
ListPointerType m_NodeList
 
ListNodeStorageType::Pointer m_NodeStore
 
OutputImagePixelType m_OutsideValue
 
SigmaArrayType m_Sigma
 
unsigned long m_Stride [ImageDimension]
 
OutputImagePixelType m_Threshold
 
OutputImageType::Pointer m_UpdateBuffer1
 
OutputImagePixelType m_UpperThreshold
 
DerivativeOperator
< OutputImagePixelType,
itkGetStaticConstMacro(ImageDimension)> 
m_ComputeCannyEdge1stDerivativeOper
 
DerivativeOperator
< OutputImagePixelType,
itkGetStaticConstMacro(ImageDimension)> 
m_ComputeCannyEdge2ndDerivativeOper
 

Additional Inherited Members

- Static Protected Member Functions inherited from itk::ImageSource< TOutputImage >
static const
ImageRegionSplitterBase
GetGlobalDefaultSplitter ()
 
static
ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION 
ThreaderCallback (void *arg)
 
- Protected Attributes inherited from itk::ImageSource< TOutputImage >
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

template<typename TInputImage , typename TOutputImage >
using itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::ArrayType = FixedArray<double, itkGetStaticConstMacro(ImageDimension)>

Typedef of double containers

Definition at line 148 of file itkCannyEdgeDetectionRecursiveGaussianImageFilter.h.

template<typename TInputImage , typename TOutputImage >
using itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::ConstPointer = SmartPointer<const Self>
template<typename TInputImage , typename TOutputImage >
using itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::DefaultBoundaryConditionType = ZeroFluxNeumannBoundaryCondition<OutputImageType>

The default boundary condition is used unless overridden in the Evaluate() method.

Definition at line 121 of file itkCannyEdgeDetectionRecursiveGaussianImageFilter.h.

template<typename TInputImage , typename TOutputImage >
using itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::GaussianImageFilterType = SmoothingRecursiveGaussianImageFilter< InputImageType, OutputImageType>
template<typename TInputImage , typename TOutputImage >
using itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::IndexType = typename TInputImage::IndexType
template<typename TInputImage , typename TOutputImage >
using itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::InputImagePixelType = typename TInputImage::PixelType

Define pixel types.

Definition at line 110 of file itkCannyEdgeDetectionRecursiveGaussianImageFilter.h.

template<typename TInputImage , typename TOutputImage >
using itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::InputImageType = TInputImage

Image type alias support

Definition at line 102 of file itkCannyEdgeDetectionRecursiveGaussianImageFilter.h.

template<typename TInputImage , typename TOutputImage >
using itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::ListNodeStorageType = ObjectStore<ListNodeType>
template<typename TInputImage , typename TOutputImage >
using itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::ListNodeType = ListNode<IndexType>
template<typename TInputImage , typename TOutputImage >
using itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::ListPointerType = typename ListType::Pointer
template<typename TInputImage , typename TOutputImage >
using itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::ListType = SparseFieldLayer<ListNodeType>
template<typename TInputImage , typename TOutputImage >
using itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::MultiplyImageFilterType = MultiplyImageFilter< OutputImageType, OutputImageType, OutputImageType>
protected
template<typename TInputImage , typename TOutputImage >
using itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::NeighborhoodType = ConstNeighborhoodIterator<OutputImageType, DefaultBoundaryConditionType>

The type of data structure that is passed to this function object to evaluate at a pixel that does not lie on a data set boundary.

Definition at line 127 of file itkCannyEdgeDetectionRecursiveGaussianImageFilter.h.

template<typename TInputImage , typename TOutputImage >
using itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::OutputImagePixelType = typename TOutputImage::PixelType
template<typename TInputImage , typename TOutputImage >
using itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::OutputImageRegionType = typename TOutputImage::RegionType

Typedef to describe the output image region type.

Definition at line 138 of file itkCannyEdgeDetectionRecursiveGaussianImageFilter.h.

template<typename TInputImage , typename TOutputImage >
using itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::OutputImageType = TOutputImage
template<typename TInputImage , typename TOutputImage >
using itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::Pointer = SmartPointer<Self>

SmartPointer type alias support

Definition at line 106 of file itkCannyEdgeDetectionRecursiveGaussianImageFilter.h.

template<typename TInputImage , typename TOutputImage >
using itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::ScalarRealType = typename GaussianImageFilterType::ScalarRealType
template<typename TInputImage , typename TOutputImage >
using itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::Self = CannyEdgeDetectionRecursiveGaussianImageFilter

Standard "Self" & Superclass type alias.

Definition at line 98 of file itkCannyEdgeDetectionRecursiveGaussianImageFilter.h.

template<typename TInputImage , typename TOutputImage >
using itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::SigmaArrayType = typename GaussianImageFilterType::SigmaArrayType
template<typename TInputImage , typename TOutputImage >
using itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::Superclass = ImageToImageFilter<TInputImage, TOutputImage>

Constructor & Destructor Documentation

template<typename TInputImage , typename TOutputImage >
itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::CannyEdgeDetectionRecursiveGaussianImageFilter ( )
protected

Begin concept checking End concept checking

template<typename TInputImage , typename TOutputImage >
itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::CannyEdgeDetectionRecursiveGaussianImageFilter ( const Self )
inlineprotected
template<typename TInputImage , typename TOutputImage >
itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::~CannyEdgeDetectionRecursiveGaussianImageFilter ( )
inlineoverrideprivate

Member Function Documentation

template<typename TInputImage , typename TOutputImage >
void itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::AllocateUpdateBuffer ( )
private

This allocate storage for m_UpdateBuffer, m_UpdateBuffer1

template<typename TInputImage , typename TOutputImage >
void itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::Compute2ndDerivative ( )
private

Calculate the second derivative of the smoothed image, it writes the result to m_UpdateBuffer using the ThreadedCompute2ndDerivative() method and multithreading mechanism.

template<typename TInputImage , typename TOutputImage >
void itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::Compute2ndDerivativePos ( )
private

Calculate the gradient of the second derivative of the smoothed image, it writes the result to m_UpdateBuffer1 using the ThreadedCompute2ndDerivativePos() method and multithreading mechanism.

template<typename TInputImage , typename TOutputImage >
static ITK_THREAD_RETURN_TYPE itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::Compute2ndDerivativePosThreaderCallback ( void *  arg)
staticprivate

This callback method uses ImageSource::SplitRequestedRegion to acquire an output region that it passes to ThreadedCompute2ndDerivative for processing.

template<typename TInputImage , typename TOutputImage >
static ITK_THREAD_RETURN_TYPE itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::Compute2ndDerivativeThreaderCallback ( void *  arg)
staticprivate

This callback method uses ImageSource::SplitRequestedRegion to acquire an output region that it passes to ThreadedCompute2ndDerivative for processing.

template<typename TInputImage , typename TOutputImage >
OutputImagePixelType itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::ComputeCannyEdge ( const NeighborhoodType it,
void *  globalData 
)
private

This methos is used to calculate the 2nd derivative for non-boundary pixels. It is called by the ThreadedCompute2ndDerivative method.

template<typename TInputImage , typename TOutputImage >
virtual::itk::LightObject::Pointer itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, 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.

template<typename TInputImage , typename TOutputImage >
void itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::FollowEdge ( IndexType  index)
private

Edge linking funciton

template<typename TInputImage , typename TOutputImage >
void itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::GenerateData ( )
overrideprotectedvirtual

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

See Also
ThreadedGenerateData()

Reimplemented from itk::ImageSource< TOutputImage >.

template<typename TInputImage , typename TOutputImage >
void itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::GenerateInputRequestedRegion ( )
throw (InvalidRequestedRegionError
)
overridevirtual

CannyEdgeDetectionRecursiveGaussianImageFilter needs a larger input requested region than the output requested region ( derivative operators, etc). As such, CannyEdgeDetectionRecursiveGaussianImageFilter needs to provide an implementation for GenerateInputRequestedRegion() in order to inform the pipeline execution model.

See Also
ImageToImageFilter::GenerateInputRequestedRegion()

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

template<typename TInputImage , typename TOutputImage >
virtual OutputImagePixelType itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::GetLowerThreshold ( )
virtual
template<typename TInputImage , typename TOutputImage >
virtual const char* itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

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

template<typename TInputImage , typename TOutputImage >
OutputImageType* itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::GetNonMaximumSuppressionImage ( ) const
inline
template<typename TInputImage , typename TOutputImage >
virtual OutputImagePixelType itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::GetOutsideValue ( )
virtual
template<typename TInputImage , typename TOutputImage >
ScalarRealType itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::GetSigma ( ) const

Smoothing parameters for the Gaussian filter.

template<typename TInputImage , typename TOutputImage >
SigmaArrayType itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::GetSigmaArray ( ) const

Smoothing parameters for the Gaussian filter.

template<typename TInputImage , typename TOutputImage >
OutputImagePixelType itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::GetThreshold ( OutputImagePixelType  )
inline
template<typename TInputImage , typename TOutputImage >
virtual OutputImagePixelType itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::GetUpperThreshold ( )
virtual
template<typename TInputImage , typename TOutputImage >
void itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::HysteresisThresholding ( )
private

Implement hysteresis thresholding

template<typename TInputImage , typename TOutputImage >
bool itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::InBounds ( IndexType  index)
private

Check if the index is in bounds or not

template<typename TInputImage , typename TOutputImage >
static Pointer itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::New ( )
static

Method for creation through the object factory.

template<typename TInputImage , typename TOutputImage >
void itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, 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, TOutputImage >.

template<typename TInputImage , typename TOutputImage >
virtual void itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::SetLowerThreshold ( OutputImagePixelType  _arg)
virtual
template<typename TInputImage , typename TOutputImage >
virtual void itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::SetOutsideValue ( OutputImagePixelType  _arg)
virtual
template<typename TInputImage , typename TOutputImage >
void itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::SetSigma ( ScalarRealType  sigma)

Smoothing parameters for the Gaussian filter.

template<typename TInputImage , typename TOutputImage >
void itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::SetSigmaArray ( const SigmaArrayType sigmas)

Smoothing parameters for the Gaussian filter.

template<typename TInputImage , typename TOutputImage >
void itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::SetThreshold ( const OutputImagePixelType  th)
inline
template<typename TInputImage , typename TOutputImage >
virtual void itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::SetUpperThreshold ( OutputImagePixelType  _arg)
virtual
  • Set the Threshold value for detected edges. */
template<typename TInputImage , typename TOutputImage >
void itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::ThreadedCompute2ndDerivative ( const OutputImageRegionType outputRegionForThread,
int  threadId 
)
private

Split the input into "num" pieces, returning region "i" as "splitRegion". This method is called "num" times to return non-overlapping regions. The method returns the number of pieces that the input can be split into by the routine. i.e. return value is less than or equal to "num".

See Also
ImageSourceDoes the actual work of calculating of the 2nd derivative over a region supplied by the multithreading mechanism.
Compute2ndDerivative
Compute2ndDerivativeThreaderCallBack
template<typename TInputImage , typename TOutputImage >
void itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::ThreadedCompute2ndDerivativePos ( const OutputImageRegionType outputRegionForThread,
int  threadId 
)
private

Does the actual work of calculating of the 2nd derivative over a region supplied by the multithreading mechanism.

See Also
Compute2ndDerivativePos
Compute3ndDerivativePosThreaderCallBack

Member Data Documentation

template<typename TInputImage , typename TOutputImage >
constexpr unsigned int itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::ImageDimension = TInputImage::ImageDimension
static

ImageDimension constant

Definition at line 144 of file itkCannyEdgeDetectionRecursiveGaussianImageFilter.h.

template<typename TInputImage , typename TOutputImage >
unsigned long itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::m_Center
private
template<typename TInputImage , typename TOutputImage >
DerivativeOperator<OutputImagePixelType,itkGetStaticConstMacro(ImageDimension)> itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::m_ComputeCannyEdge1stDerivativeOper
private

Function objects that are used in the inner loops of derivatiVex calculations.

Definition at line 333 of file itkCannyEdgeDetectionRecursiveGaussianImageFilter.h.

template<typename TInputImage , typename TOutputImage >
DerivativeOperator<OutputImagePixelType,itkGetStaticConstMacro(ImageDimension)> itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::m_ComputeCannyEdge2ndDerivativeOper
private

Function objects that are used in the inner loops of derivatiVex calculations.

Definition at line 335 of file itkCannyEdgeDetectionRecursiveGaussianImageFilter.h.

template<typename TInputImage , typename TOutputImage >
std::slice itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::m_ComputeCannyEdgeSlice[ImageDimension]
private
template<typename TInputImage , typename TOutputImage >
GaussianImageFilterType::Pointer itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::m_GaussianFilter
private

Gaussian filter to smooth the input image

Definition at line 324 of file itkCannyEdgeDetectionRecursiveGaussianImageFilter.h.

template<typename TInputImage , typename TOutputImage >
OutputImagePixelType itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::m_LowerThreshold
private

Lower threshold value for identifying edges.

Definition at line 312 of file itkCannyEdgeDetectionRecursiveGaussianImageFilter.h.

template<typename TInputImage , typename TOutputImage >
ArrayType itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::m_MaximumError
private

The maximum error of the gaussian blurring kernel in each dimensional direction.

Definition at line 306 of file itkCannyEdgeDetectionRecursiveGaussianImageFilter.h.

template<typename TInputImage , typename TOutputImage >
MultiplyImageFilterType::Pointer itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::m_MultiplyImageFilter
private

Multiply image filter to multiply with the zero crossings of the second derivative.

Definition at line 328 of file itkCannyEdgeDetectionRecursiveGaussianImageFilter.h.

template<typename TInputImage , typename TOutputImage >
ListPointerType itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::m_NodeList
private
template<typename TInputImage , typename TOutputImage >
ListNodeStorageType::Pointer itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::m_NodeStore
private
template<typename TInputImage , typename TOutputImage >
OutputImagePixelType itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::m_OutsideValue
private

"Background" value for use in thresholding.

Definition at line 318 of file itkCannyEdgeDetectionRecursiveGaussianImageFilter.h.

template<typename TInputImage , typename TOutputImage >
SigmaArrayType itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::m_Sigma
private

Standard deviation of the gaussian used for smoothing

Definition at line 302 of file itkCannyEdgeDetectionRecursiveGaussianImageFilter.h.

template<typename TInputImage , typename TOutputImage >
unsigned long itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::m_Stride[ImageDimension]
private
template<typename TInputImage , typename TOutputImage >
OutputImagePixelType itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::m_Threshold
private

Threshold value for identifying edges.

Definition at line 315 of file itkCannyEdgeDetectionRecursiveGaussianImageFilter.h.

template<typename TInputImage , typename TOutputImage >
OutputImageType::Pointer itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::m_UpdateBuffer1
private

Update buffers used during calculation of multiple steps

Definition at line 321 of file itkCannyEdgeDetectionRecursiveGaussianImageFilter.h.

template<typename TInputImage , typename TOutputImage >
OutputImagePixelType itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::m_UpperThreshold
private

Upper threshold value for identifying edges.

Definition at line 309 of file itkCannyEdgeDetectionRecursiveGaussianImageFilter.h.

template<typename TInputImage , typename TOutputImage >
constexpr unsigned int itk::CannyEdgeDetectionRecursiveGaussianImageFilter< TInputImage, TOutputImage >::OutputImageDimension = TOutputImage::ImageDimension
static

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