ITK  5.2.0
Insight Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage > Class Template Reference

#include <itkCannyEdgeDetectionImageFilter.h>

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

Public Types

using ArrayType = FixedArray< double, Self::ImageDimension >
 
using ConstPointer = SmartPointer< const Self >
 
using DefaultBoundaryConditionType = ZeroFluxNeumannBoundaryCondition< OutputImageType >
 
using IndexType = typename TInputImage::IndexType
 
using InputImagePixelType = typename TInputImage::PixelType
 
using InputImageRegionType = typename TInputImage::RegionType
 
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 Self = CannyEdgeDetectionImageFilter
 
using SizeValueType = typename TInputImage::SizeValueType
 
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
 
virtual const char * GetNameOfClass () 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 DataObjectIdentifierType &key, DataObject *input)
 
virtual void SetInput (const InputImageType *image)
 
virtual void SetInput (unsigned int, const TInputImage *image)
 
virtual void SetCoordinateTolerance (double _arg)
 
virtual double GetCoordinateTolerance () const
 
virtual void SetDirectionTolerance (double _arg)
 
virtual double GetDirectionTolerance () const
 
- Public Member Functions inherited from itk::ImageSource< TOutputImage >
OutputImageTypeGetOutput ()
 
const OutputImageTypeGetOutput () const
 
OutputImageTypeGetOutput (unsigned int idx)
 
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 ()
 
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 PropagateRequestedRegion (DataObject *output)
 
virtual void ResetPipeline ()
 
virtual void SetAbortGenerateData (bool _arg)
 
virtual void Update ()
 
virtual void UpdateLargestPossibleRegion ()
 
virtual void UpdateOutputData (DataObject *output)
 
virtual void UpdateOutputInformation ()
 
void UpdateProgress (float progress)
 
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
 
MultiThreaderTypeGetMultiThreader () const
 
void SetMultiThreader (MultiThreaderType *threader)
 
virtual void PrepareOutputs ()
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionaryGetMetaDataDictionary ()
 
const MetaDataDictionaryGetMetaDataDictionary () const
 
virtual ModifiedTimeType GetMTime () const
 
virtual const TimeStampGetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetReferenceCount (int) override
 
void UnRegister () const noexcept override
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
void SetMetaDataDictionary (MetaDataDictionary &&rrhs)
 
virtual void SetObjectName (std::string _arg)
 
virtual const std::string & GetObjectName () const
 
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
 itkCloneMacro (Self)
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
static void SetGlobalDefaultDirectionTolerance (double)
 
static double GetGlobalDefaultDirectionTolerance ()
 
static void SetGlobalDefaultCoordinateTolerance (double)
 
static double GetGlobalDefaultCoordinateTolerance ()
 
- 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
 
using GaussianImageFilterType = DiscreteGaussianImageFilter< InputImageType, OutputImageType >
 
using MultiplyImageFilterType = MultiplyImageFilter< OutputImageType, OutputImageType, OutputImageType >
 
ArrayType m_Variance
 
ArrayType m_MaximumError
 
OutputImagePixelType m_UpperThreshold
 
OutputImagePixelType m_LowerThreshold
 
OutputImageType::Pointer m_UpdateBuffer1
 
GaussianImageFilterType::Pointer m_GaussianFilter
 
MultiplyImageFilterType::Pointer m_MultiplyImageFilter
 
DerivativeOperator< OutputImagePixelType, Self::ImageDimensionm_ComputeCannyEdge1stDerivativeOper
 
DerivativeOperator< OutputImagePixelType, Self::ImageDimensionm_ComputeCannyEdge2ndDerivativeOper
 
std::slice m_ComputeCannyEdgeSlice [ImageDimension]
 
SizeValueType m_Stride [ImageDimension]
 
SizeValueType m_Center
 
ListNodeStorageType::Pointer m_NodeStore
 
ListPointerType m_NodeList
 
OutputImageTypem_OutputImage
 
virtual void SetVariance (ArrayType _arg)
 
virtual const ArrayType GetVariance () const
 
virtual void SetMaximumError (ArrayType _arg)
 
virtual const ArrayType GetMaximumError () const
 
void SetVariance (const typename ArrayType::ValueType v)
 
void SetMaximumError (const typename ArrayType::ValueType v)
 
virtual void SetUpperThreshold (OutputImagePixelType _arg)
 
virtual OutputImagePixelType GetUpperThreshold () const
 
virtual void SetLowerThreshold (OutputImagePixelType _arg)
 
virtual OutputImagePixelType GetLowerThreshold () const
 
OutputImageTypeGetNonMaximumSuppressionImage ()
 
 CannyEdgeDetectionImageFilter ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
void GenerateData () override
 
 ~CannyEdgeDetectionImageFilter () override=default
 
void AllocateUpdateBuffer ()
 
void HysteresisThresholding ()
 
void FollowEdge (IndexType index, const OutputImageType *multiplyImageFilterOutput)
 
void ThreadedCompute2ndDerivative (const OutputImageRegionType &outputRegionForThread)
 
OutputImagePixelType ComputeCannyEdge (const NeighborhoodType &it, void *globalData)
 
void ThreadedCompute2ndDerivativePos (const OutputImageRegionType &outputRegionForThread)
 

Additional Inherited Members

- 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 inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
 ImageToImageFilter ()
 
 ~ImageToImageFilter () override=default
 
void VerifyInputInformation () ITKv5_CONST override
 
void GenerateInputRequestedRegion () override
 
virtual void CallCopyOutputRegionToInputRegion (InputImageRegionType &destRegion, const OutputImageRegionType &srcRegion)
 
virtual void CallCopyInputRegionToOutputRegion (OutputImageRegionType &destRegion, const InputImageRegionType &srcRegion)
 
void PushBackInput (const DataObject *input) override
 
void PushFrontInput (const DataObject *input) override
 
- Protected Member Functions inherited from itk::ImageSource< TOutputImage >
 ImageSource ()
 
 ~ImageSource () override=default
 
void ClassicMultiThread (ThreadFunctionType callbackFunction)
 
virtual void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId)
 
virtual void DynamicThreadedGenerateData (const OutputImageRegionType &outputRegionForThread)
 
virtual void AllocateOutputs ()
 
virtual void BeforeThreadedGenerateData ()
 
virtual void AfterThreadedGenerateData ()
 
virtual const ImageRegionSplitterBaseGetImageRegionSplitter () const
 
virtual unsigned int SplitRequestedRegion (unsigned int i, unsigned int pieces, OutputImageRegionType &splitRegion)
 
virtual bool GetDynamicMultiThreading () const
 
virtual void SetDynamicMultiThreading (bool _arg)
 
virtual void DynamicMultiThreadingOn ()
 
virtual void DynamicMultiThreadingOff ()
 
- Protected Member Functions inherited from itk::ProcessObject
 ProcessObject ()
 
 ~ProcessObject () override
 
DataObjectGetInput (const DataObjectIdentifierType &key)
 
const DataObjectGetInput (const DataObjectIdentifierType &key) const
 
DataObjectGetInput (DataObjectPointerArraySizeType idx)
 
const DataObjectGetInput (DataObjectPointerArraySizeType idx) const
 
virtual void SetInput (const DataObjectIdentifierType &key, DataObject *input)
 
virtual void SetNthInput (DataObjectPointerArraySizeType num, DataObject *input)
 
virtual void AddInput (DataObject *input)
 
virtual void RemoveInput (const DataObjectIdentifierType &key)
 
virtual void RemoveInput (DataObjectPointerArraySizeType)
 
DataObjectGetPrimaryInput ()
 
const DataObjectGetPrimaryInput () const
 
virtual void SetPrimaryInputName (const DataObjectIdentifierType &key)
 
virtual const char * GetPrimaryInputName () const
 
virtual void SetPrimaryInput (DataObject *input)
 
void SetNumberOfIndexedInputs (DataObjectPointerArraySizeType num)
 
virtual void SetNumberOfRequiredInputs (DataObjectPointerArraySizeType)
 
virtual const DataObjectPointerArraySizeTypeGetNumberOfRequiredInputs () const
 
bool RemoveRequiredInputName (const DataObjectIdentifierType &)
 
bool IsRequiredInputName (const DataObjectIdentifierType &) const
 
void SetRequiredInputNames (const NameArray &)
 
bool AddRequiredInputName (const DataObjectIdentifierType &)
 
bool AddRequiredInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx)
 
void AddOptionalInputName (const DataObjectIdentifierType &)
 
void AddOptionalInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx)
 
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
 
virtual void SetOutput (const DataObjectIdentifierType &key, DataObject *output)
 
virtual void RemoveOutput (const DataObjectIdentifierType &key)
 
DataObjectGetPrimaryOutput ()
 
const DataObjectGetPrimaryOutput () const
 
virtual void SetPrimaryOutput (DataObject *output)
 
virtual void SetNthOutput (DataObjectPointerArraySizeType num, DataObject *output)
 
virtual void AddOutput (DataObject *output)
 
virtual void RemoveOutput (DataObjectPointerArraySizeType idx)
 
virtual void SetNumberOfRequiredOutputs (DataObjectPointerArraySizeType _arg)
 
virtual const DataObjectPointerArraySizeTypeGetNumberOfRequiredOutputs () const
 
void SetNumberOfIndexedOutputs (DataObjectPointerArraySizeType num)
 
DataObjectIdentifierType MakeNameFromInputIndex (DataObjectPointerArraySizeType idx) const
 
DataObjectIdentifierType MakeNameFromOutputIndex (DataObjectPointerArraySizeType idx) const
 
DataObjectPointerArraySizeType MakeIndexFromInputName (const DataObjectIdentifierType &name) const
 
DataObjectPointerArraySizeType MakeIndexFromOutputName (const DataObjectIdentifierType &name) const
 
bool IsIndexedInputName (const DataObjectIdentifierType &) const
 
bool IsIndexedOutputName (const DataObjectIdentifierType &) const
 
virtual void VerifyPreconditions () ITKv5_CONST
 
virtual void GenerateOutputRequestedRegion (DataObject *output)
 
virtual void GenerateOutputInformation ()
 
virtual void PropagateResetPipeline ()
 
virtual void ReleaseInputs ()
 
virtual void CacheInputReleaseDataFlags ()
 
virtual void RestoreInputReleaseDataFlags ()
 
virtual bool GetThreaderUpdateProgress () const
 
virtual void ThreaderUpdateProgressOn ()
 
virtual void ThreaderUpdateProgressOff ()
 
virtual void SetThreaderUpdateProgress (bool arg)
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
 ~Object () override
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &time)
 
- 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 Member Functions inherited from itk::ImageSource< TOutputImage >
static const ImageRegionSplitterBaseGetGlobalDefaultSplitter ()
 
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION ThreaderCallback (void *arg)
 
- Static Protected Member Functions inherited from itk::ProcessObject
static constexpr float progressFixedToFloat (uint32_t fixed)
 
static uint32_t progressFloatToFixed (float f)
 
- Protected Attributes inherited from itk::ImageSource< TOutputImage >
bool m_DynamicMultiThreading
 
- Protected Attributes inherited from itk::ProcessObject
bool m_Updating
 
TimeStamp m_OutputInformationMTime
 
- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount
 

Detailed Description

template<typename TInputImage, typename TOutputImage>
class itk::CannyEdgeDetectionImageFilter< 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.
Variance and Maximum error are used in the Gaussian smoothing of the input image. See itkDiscreteGaussianImageFilter 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
DiscreteGaussianImageFilter
ZeroCrossingImageFilter
ThresholdImageFilter
Examples
Examples/Filtering/CannyEdgeDetectionImageFilter.cxx, and SphinxExamples/src/Filtering/ImageFeature/DetectEdgesWithCannyFilter/Code.cxx.

Definition at line 88 of file itkCannyEdgeDetectionImageFilter.h.

Member Typedef Documentation

◆ ArrayType

template<typename TInputImage, typename TOutputImage>
using itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::ArrayType = FixedArray<double, Self::ImageDimension>

Typedef of double containers.

Definition at line 140 of file itkCannyEdgeDetectionImageFilter.h.

◆ ConstPointer

template<typename TInputImage, typename TOutputImage>
using itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::ConstPointer = SmartPointer<const Self>

Definition at line 103 of file itkCannyEdgeDetectionImageFilter.h.

◆ DefaultBoundaryConditionType

template<typename TInputImage, typename TOutputImage>
using itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::DefaultBoundaryConditionType = ZeroFluxNeumannBoundaryCondition<OutputImageType>

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

Definition at line 113 of file itkCannyEdgeDetectionImageFilter.h.

◆ GaussianImageFilterType

template<typename TInputImage, typename TOutputImage>
using itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::GaussianImageFilterType = DiscreteGaussianImageFilter<InputImageType, OutputImageType>
protected

Gaussian filter to smooth the input image.

Definition at line 226 of file itkCannyEdgeDetectionImageFilter.h.

◆ IndexType

template<typename TInputImage, typename TOutputImage>
using itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::IndexType = typename TInputImage::IndexType

Definition at line 108 of file itkCannyEdgeDetectionImageFilter.h.

◆ InputImagePixelType

template<typename TInputImage, typename TOutputImage>
using itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::InputImagePixelType = typename TInputImage::PixelType

Define pixel types.

Definition at line 106 of file itkCannyEdgeDetectionImageFilter.h.

◆ InputImageRegionType

template<typename TInputImage, typename TOutputImage>
using itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::InputImageRegionType = typename TInputImage::RegionType

Definition at line 130 of file itkCannyEdgeDetectionImageFilter.h.

◆ InputImageType

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

Image type alias support

Definition at line 98 of file itkCannyEdgeDetectionImageFilter.h.

◆ ListNodeStorageType

template<typename TInputImage, typename TOutputImage>
using itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::ListNodeStorageType = ObjectStore<ListNodeType>

Definition at line 121 of file itkCannyEdgeDetectionImageFilter.h.

◆ ListNodeType

template<typename TInputImage, typename TOutputImage>
using itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::ListNodeType = ListNode<IndexType>

Definition at line 120 of file itkCannyEdgeDetectionImageFilter.h.

◆ ListPointerType

template<typename TInputImage, typename TOutputImage>
using itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::ListPointerType = typename ListType::Pointer

Definition at line 123 of file itkCannyEdgeDetectionImageFilter.h.

◆ ListType

template<typename TInputImage, typename TOutputImage>
using itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::ListType = SparseFieldLayer<ListNodeType>

Definition at line 122 of file itkCannyEdgeDetectionImageFilter.h.

◆ MultiplyImageFilterType

template<typename TInputImage, typename TOutputImage>
using itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::MultiplyImageFilterType = MultiplyImageFilter<OutputImageType, OutputImageType, OutputImageType>
protected

Gaussian filter to smooth the input image.

Definition at line 227 of file itkCannyEdgeDetectionImageFilter.h.

◆ NeighborhoodType

template<typename TInputImage, typename TOutputImage>
using itk::CannyEdgeDetectionImageFilter< 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 118 of file itkCannyEdgeDetectionImageFilter.h.

◆ OutputImagePixelType

template<typename TInputImage, typename TOutputImage>
using itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::OutputImagePixelType = typename TOutputImage::PixelType

Definition at line 107 of file itkCannyEdgeDetectionImageFilter.h.

◆ OutputImageRegionType

template<typename TInputImage, typename TOutputImage>
using itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::OutputImageRegionType = typename TOutputImage::RegionType

Typedef to describe the output image region type.

Definition at line 129 of file itkCannyEdgeDetectionImageFilter.h.

◆ OutputImageType

template<typename TInputImage, typename TOutputImage>
using itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::OutputImageType = TOutputImage

Definition at line 99 of file itkCannyEdgeDetectionImageFilter.h.

◆ Pointer

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

SmartPointer type alias support

Definition at line 102 of file itkCannyEdgeDetectionImageFilter.h.

◆ Self

template<typename TInputImage, typename TOutputImage>
using itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::Self = CannyEdgeDetectionImageFilter

Standard "Self" & Superclass type alias.

Definition at line 94 of file itkCannyEdgeDetectionImageFilter.h.

◆ SizeValueType

template<typename TInputImage, typename TOutputImage>
using itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::SizeValueType = typename TInputImage::SizeValueType

Definition at line 109 of file itkCannyEdgeDetectionImageFilter.h.

◆ Superclass

template<typename TInputImage, typename TOutputImage>
using itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::Superclass = ImageToImageFilter<TInputImage, TOutputImage>

Definition at line 95 of file itkCannyEdgeDetectionImageFilter.h.

Constructor & Destructor Documentation

◆ CannyEdgeDetectionImageFilter()

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

Gaussian filter to smooth the input image.

◆ ~CannyEdgeDetectionImageFilter()

template<typename TInputImage, typename TOutputImage>
itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::~CannyEdgeDetectionImageFilter ( )
overrideprivatedefault

Gaussian filter to smooth the input image.

Member Function Documentation

◆ AllocateUpdateBuffer()

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

Allocate storage for update buffers used during calculation of multiple steps.

◆ ComputeCannyEdge()

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

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

◆ CreateAnother()

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

◆ FollowEdge()

template<typename TInputImage, typename TOutputImage>
void itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::FollowEdge ( IndexType  index,
const OutputImageType multiplyImageFilterOutput 
)
private

Edge linking function.

◆ GenerateData()

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

Gaussian filter to smooth the input image.

Reimplemented from itk::ImageSource< TOutputImage >.

◆ GetLowerThreshold()

template<typename TInputImage, typename TOutputImage>
virtual OutputImagePixelType itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::GetLowerThreshold ( ) const
virtual

Gaussian filter to smooth the input image.

◆ GetMaximumError()

template<typename TInputImage, typename TOutputImage>
virtual const ArrayType itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::GetMaximumError ( ) const
virtual

Gaussian filter to smooth the input image.

◆ GetNameOfClass()

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

Run-time type information (and related methods).

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

◆ GetNonMaximumSuppressionImage()

template<typename TInputImage, typename TOutputImage>
OutputImageType* itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::GetNonMaximumSuppressionImage ( )
inline

Gaussian filter to smooth the input image.

Definition at line 203 of file itkCannyEdgeDetectionImageFilter.h.

◆ GetUpperThreshold()

template<typename TInputImage, typename TOutputImage>
virtual OutputImagePixelType itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::GetUpperThreshold ( ) const
virtual

Gaussian filter to smooth the input image.

◆ GetVariance()

template<typename TInputImage, typename TOutputImage>
virtual const ArrayType itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::GetVariance ( ) const
virtual

Gaussian filter to smooth the input image.

◆ HysteresisThresholding()

template<typename TInputImage, typename TOutputImage>
void itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::HysteresisThresholding ( )
private

Implement hysteresis thresholding.

◆ New()

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

◆ PrintSelf()

template<typename TInputImage, typename TOutputImage>
void itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
overrideprotectedvirtual

Gaussian filter to smooth the input image.

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

◆ SetLowerThreshold()

template<typename TInputImage, typename TOutputImage>
virtual void itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::SetLowerThreshold ( OutputImagePixelType  _arg)
virtual

Gaussian filter to smooth the input image.

◆ SetMaximumError() [1/2]

template<typename TInputImage, typename TOutputImage>
virtual void itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::SetMaximumError ( ArrayType  _arg)
virtual

Set/Get the maximum error of the Gaussian smoothing kernel in each dimensional direction.

◆ SetMaximumError() [2/2]

template<typename TInputImage, typename TOutputImage>
void itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::SetMaximumError ( const typename ArrayType::ValueType  v)
inline

Set/Get the MaximumError parameter used by the Gaussian smoothing filter in this algorithm

Definition at line 172 of file itkCannyEdgeDetectionImageFilter.h.

◆ SetUpperThreshold()

template<typename TInputImage, typename TOutputImage>
virtual void itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::SetUpperThreshold ( OutputImagePixelType  _arg)
virtual

Set the Threshold value for detected edges.

TODO: Document in the ITKv4 migration guide that the SetThreshold member function was removed from the CannyEdgeDetectionImageFilter, and that both UpperThreshold and LowerThreshold need to be set. To get the same results as with the SetThreshold method change "myfilter->SetThrehsold" to "myfilter->SetUpperThreshold", and add "myfilter->SetLowerThreshold(GetUpperThreshold()/2.0)"

◆ SetVariance() [1/2]

template<typename TInputImage, typename TOutputImage>
virtual void itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::SetVariance ( ArrayType  _arg)
virtual

Set/Get the variance of the Gaussian smoothing filter.

◆ SetVariance() [2/2]

template<typename TInputImage, typename TOutputImage>
void itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::SetVariance ( const typename ArrayType::ValueType  v)
inline

Set/Get the variance of the Gaussian smoothing filter.

Definition at line 155 of file itkCannyEdgeDetectionImageFilter.h.

◆ ThreadedCompute2ndDerivative()

template<typename TInputImage, typename TOutputImage>
void itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::ThreadedCompute2ndDerivative ( const OutputImageRegionType outputRegionForThread)
private

Calculate the second derivative of the smoothed image, it writes the result to the update buffer

◆ ThreadedCompute2ndDerivativePos()

template<typename TInputImage, typename TOutputImage>
void itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::ThreadedCompute2ndDerivativePos ( const OutputImageRegionType outputRegionForThread)
private

Calculate the gradient of the second derivative of the smoothed image, it writes the result to m_UpdateBuffer1

Member Data Documentation

◆ ImageDimension

template<typename TInputImage, typename TOutputImage>
constexpr unsigned int itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::ImageDimension = TInputImage::ImageDimension
staticconstexpr

ImageDimension constant.

Definition at line 136 of file itkCannyEdgeDetectionImageFilter.h.

◆ m_Center

template<typename TInputImage, typename TOutputImage>
SizeValueType itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::m_Center
private

Gaussian filter to smooth the input image.

Definition at line 284 of file itkCannyEdgeDetectionImageFilter.h.

◆ m_ComputeCannyEdge1stDerivativeOper

template<typename TInputImage, typename TOutputImage>
DerivativeOperator<OutputImagePixelType, Self::ImageDimension> itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::m_ComputeCannyEdge1stDerivativeOper
private

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

Definition at line 278 of file itkCannyEdgeDetectionImageFilter.h.

◆ m_ComputeCannyEdge2ndDerivativeOper

template<typename TInputImage, typename TOutputImage>
DerivativeOperator<OutputImagePixelType, Self::ImageDimension> itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::m_ComputeCannyEdge2ndDerivativeOper
private

Gaussian filter to smooth the input image.

Definition at line 279 of file itkCannyEdgeDetectionImageFilter.h.

◆ m_ComputeCannyEdgeSlice

template<typename TInputImage, typename TOutputImage>
std::slice itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::m_ComputeCannyEdgeSlice[ImageDimension]
private

Gaussian filter to smooth the input image.

Definition at line 281 of file itkCannyEdgeDetectionImageFilter.h.

◆ m_GaussianFilter

template<typename TInputImage, typename TOutputImage>
GaussianImageFilterType::Pointer itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::m_GaussianFilter
private

Gaussian filter to smooth the input image.

Definition at line 270 of file itkCannyEdgeDetectionImageFilter.h.

◆ m_LowerThreshold

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

Gaussian filter to smooth the input image.

Definition at line 265 of file itkCannyEdgeDetectionImageFilter.h.

◆ m_MaximumError

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

Gaussian filter to smooth the input image.

Definition at line 262 of file itkCannyEdgeDetectionImageFilter.h.

◆ m_MultiplyImageFilter

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

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

Definition at line 274 of file itkCannyEdgeDetectionImageFilter.h.

◆ m_NodeList

template<typename TInputImage, typename TOutputImage>
ListPointerType itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::m_NodeList
private

Gaussian filter to smooth the input image.

Definition at line 287 of file itkCannyEdgeDetectionImageFilter.h.

◆ m_NodeStore

template<typename TInputImage, typename TOutputImage>
ListNodeStorageType::Pointer itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::m_NodeStore
private

Gaussian filter to smooth the input image.

Definition at line 286 of file itkCannyEdgeDetectionImageFilter.h.

◆ m_OutputImage

template<typename TInputImage, typename TOutputImage>
OutputImageType* itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::m_OutputImage
private

Gaussian filter to smooth the input image.

Definition at line 289 of file itkCannyEdgeDetectionImageFilter.h.

◆ m_Stride

template<typename TInputImage, typename TOutputImage>
SizeValueType itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::m_Stride[ImageDimension]
private

Gaussian filter to smooth the input image.

Definition at line 283 of file itkCannyEdgeDetectionImageFilter.h.

◆ m_UpdateBuffer1

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

Gaussian filter to smooth the input image.

Definition at line 267 of file itkCannyEdgeDetectionImageFilter.h.

◆ m_UpperThreshold

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

Gaussian filter to smooth the input image.

Definition at line 264 of file itkCannyEdgeDetectionImageFilter.h.

◆ m_Variance

template<typename TInputImage, typename TOutputImage>
ArrayType itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::m_Variance
private

Gaussian filter to smooth the input image.

Definition at line 261 of file itkCannyEdgeDetectionImageFilter.h.

◆ OutputImageDimension

template<typename TInputImage, typename TOutputImage>
constexpr unsigned int itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::OutputImageDimension = TOutputImage::ImageDimension
staticconstexpr

Definition at line 137 of file itkCannyEdgeDetectionImageFilter.h.


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