ITK  4.2.0
Insight Segmentation and Registration Toolkit
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage > Class Template Reference

#include <itkCannyEdgeDetectionImageFilter.h>

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

List of all members.

Classes

struct  CannyThreadStruct

Public Types

typedef FixedArray< double,
itkGetStaticConstMacro(ImageDimension) > 
ArrayType
typedef SmartPointer< const SelfConstPointer
typedef
ZeroFluxNeumannBoundaryCondition
< OutputImageType
DefaultBoundaryConditionType
typedef TInputImage::IndexType IndexType
typedef TInputImage::PixelType InputImagePixelType
typedef TInputImage::RegionType InputImageRegionType
typedef TInputImage InputImageType
typedef ObjectStore< ListNodeTypeListNodeStorageType
typedef ListNode< IndexTypeListNodeType
typedef ListType::Pointer ListPointerType
typedef SparseFieldLayer
< ListNodeType
ListType
typedef
ConstNeighborhoodIterator
< OutputImageType,
DefaultBoundaryConditionType
NeighborhoodType
typedef TOutputImage::PixelType OutputImagePixelType
typedef TOutputImage::RegionType OutputImageRegionType
typedef TOutputImage OutputImageType
typedef SmartPointer< SelfPointer
typedef
CannyEdgeDetectionImageFilter 
Self
typedef TInputImage::SizeValueType SizeValueType
typedef ImageToImageFilter
< TInputImage, TOutputImage > 
Superclass
- Public Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
typedef
InputImageType::ConstPointer 
InputImageConstPointer
typedef InputImageType::Pointer InputImagePointer
- Public Types inherited from itk::ImageSource< TOutputImage >
typedef
Superclass::DataObjectIdentifierType 
DataObjectIdentifierType
typedef DataObject::Pointer DataObjectPointer
typedef
Superclass::DataObjectPointerArraySizeType 
DataObjectPointerArraySizeType
typedef OutputImageType::Pointer OutputImagePointer
- Public Types inherited from itk::ProcessObject
typedef std::vector
< DataObjectPointer
DataObjectPointerArray
typedef std::vector
< DataObjectIdentifierType
NameArray
- Public Types inherited from itk::Object
- Public Types inherited from itk::LightObject

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
virtual void GenerateInputRequestedRegion () throw ( InvalidRequestedRegionError )
virtual OutputImagePixelType GetLowerThreshold () const
virtual const char * GetNameOfClass () const
OutputImageTypeGetNonMaximumSuppressionImage ()
virtual OutputImagePixelType GetUpperThreshold () const
virtual void SetLowerThreshold (OutputImagePixelType _arg)
virtual void SetUpperThreshold (OutputImagePixelType _arg)
 typedef (Concept::HasNumericTraits< InputImagePixelType >) InputHasNumericTraitsCheck
 typedef (Concept::HasNumericTraits< OutputImagePixelType >) OutputHasNumericTraitsCheck
 typedef (Concept::SameDimension< ImageDimension, OutputImageDimension >) SameDimensionCheck
 typedef (Concept::IsFloatingPoint< InputImagePixelType >) InputIsFloatingPointCheck
 typedef (Concept::IsFloatingPoint< OutputImagePixelType >) OutputIsFloatingPointCheck
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)
- Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
const InputImageTypeGetInput (void) const
const InputImageTypeGetInput (unsigned int idx) const
virtual void PopBackInput ()
virtual void PopFrontInput ()
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)
- Public Member Functions inherited from itk::ImageSource< TOutputImage >
OutputImageTypeGetOutput (unsigned int idx)
virtual void GraftNthOutput (unsigned int idx, DataObject *output)
virtual void GraftOutput (DataObject *output)
virtual void GraftOutput (const DataObjectIdentifierType &key, DataObject *output)
OutputImageTypeGetOutput (void)
const OutputImageTypeGetOutput (void) const
virtual
ProcessObject::DataObjectPointer 
MakeOutput (ProcessObject::DataObjectPointerArraySizeType idx)
- Public Member Functions inherited from itk::ProcessObject
virtual void AbortGenerateDataOff ()
virtual void AbortGenerateDataOn ()
virtual void EnlargeOutputRequestedRegion (DataObject *)
virtual const bool & GetAbortGenerateData ()
NameArray GetInputNames () const
MultiThreader * GetMultiThreader () const
DataObjectPointerArraySizeType GetNumberOfIndexedInputs () const
DataObjectPointerArraySizeType GetNumberOfInputs () const
DataObjectPointerArraySizeType GetNumberOfOutputs () const
virtual
DataObjectPointerArraySizeType 
GetNumberOfValidRequiredInputs () const
NameArray GetOutputNames () const
virtual const float & GetProgress ()
NameArray GetRequiredInputNames () const
bool HasInput (const DataObjectIdentifierType &key) const
bool HasOutput (const DataObjectIdentifierType &key) const
virtual DataObjectPointer MakeOutput (const DataObjectIdentifierType &)
virtual void PrepareOutputs ()
virtual void PropagateRequestedRegion (DataObject *output)
virtual void ResetPipeline ()
virtual void SetAbortGenerateData (bool _arg)
virtual void SetProgress (float _arg)
virtual void Update ()
virtual void UpdateLargestPossibleRegion ()
virtual void UpdateOutputData (DataObject *output)
virtual void UpdateOutputInformation ()
void UpdateProgress (float amount)
DataObjectPointerArray GetInputs ()
DataObjectPointerArray GetOutputs ()
DataObjectPointerArray GetIndexedInputs ()
DataObjectPointerArray GetIndexedOutputs ()
DataObjectPointerArraySizeType GetNumberOfIndexedOutputs () const
virtual void SetReleaseDataFlag (bool flag)
virtual bool GetReleaseDataFlag () const
void ReleaseDataFlagOn ()
void ReleaseDataFlagOff ()
virtual void SetReleaseDataBeforeUpdateFlag (bool _arg)
virtual const bool & GetReleaseDataBeforeUpdateFlag ()
virtual void ReleaseDataBeforeUpdateFlagOn ()
virtual void ReleaseDataBeforeUpdateFlagOff ()
virtual void SetNumberOfThreads (ThreadIdType _arg)
virtual const ThreadIdTypeGetNumberOfThreads ()
- 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 (void)
const MetaDataDictionaryGetMetaDataDictionary (void) const
virtual unsigned long 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
virtual void Register () const
void RemoveAllObservers ()
void RemoveObserver (unsigned long tag)
void SetDebug (bool debugFlag) const
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
virtual void SetReferenceCount (int)
virtual void UnRegister () 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 Attributes

static const unsigned int ImageDimension = TInputImage::ImageDimension
static const unsigned int OutputImageDimension = TOutputImage::ImageDimension
- Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
static const unsigned int InputImageDimension = TInputImage::ImageDimension
- Static Public Attributes inherited from itk::ImageSource< TOutputImage >

Protected Types

typedef
DiscreteGaussianImageFilter
< InputImageType,
OutputImageType
GaussianImageFilterType
typedef MultiplyImageFilter
< OutputImageType,
OutputImageType,
OutputImageType
MultiplyImageFilterType
- Protected Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
typedef
ImageToImageFilterDetail::ImageRegionCopier
< itkGetStaticConstMacro(OutputImageDimension),
itkGetStaticConstMacro(InputImageDimension) > 
InputToOutputRegionCopierType
typedef
ImageToImageFilterDetail::ImageRegionCopier
< itkGetStaticConstMacro(InputImageDimension),
itkGetStaticConstMacro(OutputImageDimension) > 
OutputToInputRegionCopierType

Protected Member Functions

void GenerateData ()
 CannyEdgeDetectionImageFilter ()
void PrintSelf (std::ostream &os, Indent indent) const
- 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 ()
virtual void VerifyInputInformation ()
 ~ImageToImageFilter ()
void PushBackInput (const DataObject *input)
void PushFrontInput (const DataObject *input)
- Protected Member Functions inherited from itk::ImageSource< TOutputImage >
virtual void AfterThreadedGenerateData ()
virtual void AllocateOutputs ()
virtual void BeforeThreadedGenerateData ()
 ImageSource ()
virtual unsigned int SplitRequestedRegion (unsigned int i, unsigned int num, OutputImageRegionType &splitRegion)
virtual void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId)
virtual ~ImageSource ()
- Protected Member Functions inherited from itk::ProcessObject
virtual void AddInput (DataObject *input)
virtual void AddOutput (DataObject *output)
bool AddRequiredInputName (const DataObjectIdentifierType &)
virtual void CacheInputReleaseDataFlags ()
virtual void GenerateOutputInformation ()
virtual void GenerateOutputRequestedRegion (DataObject *output)
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredInputs ()
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredOutputs ()
bool IsIndexedName (const DataObjectIdentifierType &) const
bool IsRequiredInputName (const DataObjectIdentifierType &) const
 itkLegacyMacro (virtual void RemoveInput(DataObject *input))
 itkLegacyMacro (virtual void RemoveOutput(DataObject *output))
 itkLegacyMacro (void SetNumberOfInputs(DataObjectPointerArraySizeType num))
 itkLegacyMacro (void SetNumberOfOutputs(DataObjectPointerArraySizeType num))
DataObjectPointerArraySizeType MakeIndexFromName (const DataObjectIdentifierType &) const
DataObjectIdentifierType MakeNameFromIndex (DataObjectPointerArraySizeType) 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 ()
 ~ProcessObject ()
DataObjectGetInput (const DataObjectIdentifierType &key)
const DataObjectGetInput (const DataObjectIdentifierType &key) const
DataObjectGetInput (DataObjectPointerArraySizeType)
const DataObjectGetInput (DataObjectPointerArraySizeType idx) const
DataObjectGetPrimaryInput ()
const DataObjectGetPrimaryInput () const
DataObjectGetOutput (const DataObjectIdentifierType &key)
const DataObjectGetOutput (const DataObjectIdentifierType &key) 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)
virtual ~Object ()
- 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 ()
 CannyEdgeDetectionImageFilter (const Self &)
void Compute2ndDerivative ()
void Compute2ndDerivativePos ()
OutputImagePixelType ComputeCannyEdge (const NeighborhoodType &it, void *globalData)
void FollowEdge (IndexType index)
void HysteresisThresholding ()
void operator= (const Self &)
void ThreadedCompute2ndDerivative (const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId)
void ThreadedCompute2ndDerivativePos (const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId)
virtual ~CannyEdgeDetectionImageFilter ()

Static Private Member Functions

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

Private Attributes

SizeValueType 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
SizeValueType m_Stride [ImageDimension]
OutputImageType::Pointer m_UpdateBuffer1
OutputImagePixelType m_UpperThreshold
ArrayType m_Variance
DerivativeOperator
< OutputImagePixelType,
itkGetStaticConstMacro(ImageDimension) > 
m_ComputeCannyEdge1stDerivativeOper
DerivativeOperator
< OutputImagePixelType,
itkGetStaticConstMacro(ImageDimension) > 
m_ComputeCannyEdge2ndDerivativeOper

Detailed Description

template<class TInputImage, class 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

Definition at line 84 of file itkCannyEdgeDetectionImageFilter.h.


Member Typedef Documentation

template<class TInputImage, class TOutputImage>
typedef FixedArray< double, itkGetStaticConstMacro(ImageDimension) > itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::ArrayType

Typedef of double containers

Definition at line 140 of file itkCannyEdgeDetectionImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef SmartPointer< const Self > itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::ConstPointer
template<class TInputImage, class TOutputImage>
typedef ZeroFluxNeumannBoundaryCondition< OutputImageType > itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::DefaultBoundaryConditionType

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

Definition at line 109 of file itkCannyEdgeDetectionImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef DiscreteGaussianImageFilter< InputImageType, OutputImageType > itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::GaussianImageFilterType
protected

Definition at line 235 of file itkCannyEdgeDetectionImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef TInputImage::IndexType itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::IndexType

Definition at line 103 of file itkCannyEdgeDetectionImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef TInputImage::PixelType itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::InputImagePixelType

Define pixel types.

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

Definition at line 101 of file itkCannyEdgeDetectionImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef TInputImage::RegionType itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::InputImageRegionType
template<class TInputImage, class TOutputImage>
typedef TInputImage itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::InputImageType

Image typedef support

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

Definition at line 93 of file itkCannyEdgeDetectionImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef ObjectStore< ListNodeType > itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::ListNodeStorageType

Definition at line 118 of file itkCannyEdgeDetectionImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef ListNode< IndexType > itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::ListNodeType

Definition at line 117 of file itkCannyEdgeDetectionImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef ListType::Pointer itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::ListPointerType

Definition at line 120 of file itkCannyEdgeDetectionImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef SparseFieldLayer< ListNodeType > itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::ListType

Definition at line 119 of file itkCannyEdgeDetectionImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef MultiplyImageFilter< OutputImageType, OutputImageType, OutputImageType > itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::MultiplyImageFilterType
protected

Definition at line 237 of file itkCannyEdgeDetectionImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef ConstNeighborhoodIterator< OutputImageType, DefaultBoundaryConditionType > itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::NeighborhoodType

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 115 of file itkCannyEdgeDetectionImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef TOutputImage::PixelType itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::OutputImagePixelType
template<class TInputImage, class TOutputImage>
typedef TOutputImage::RegionType itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::OutputImageRegionType

Typedef to describe the output image region type.

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

Definition at line 123 of file itkCannyEdgeDetectionImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef TOutputImage itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::OutputImageType

Some convenient typedefs.

Reimplemented from itk::ImageSource< TOutputImage >.

Definition at line 94 of file itkCannyEdgeDetectionImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef SmartPointer< Self > itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::Pointer

SmartPointer typedef support

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

Definition at line 97 of file itkCannyEdgeDetectionImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef CannyEdgeDetectionImageFilter itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::Self

Standard "Self" & Superclass typedef.

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

Definition at line 89 of file itkCannyEdgeDetectionImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef TInputImage::SizeValueType itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::SizeValueType

Definition at line 104 of file itkCannyEdgeDetectionImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef ImageToImageFilter< TInputImage, TOutputImage > itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::Superclass

Constructor & Destructor Documentation

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

End concept checking

template<class TInputImage, class TOutputImage>
itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::CannyEdgeDetectionImageFilter ( const Self )
private
template<class TInputImage, class TOutputImage>
virtual itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::~CannyEdgeDetectionImageFilter ( )
inlineprivatevirtual

Definition at line 242 of file itkCannyEdgeDetectionImageFilter.h.


Member Function Documentation

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

This allocate storage for m_UpdateBuffer, m_UpdateBuffer1

template<class TInputImage, class TOutputImage>
void itk::CannyEdgeDetectionImageFilter< 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<class TInputImage, class TOutputImage>
void itk::CannyEdgeDetectionImageFilter< 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<class TInputImage, class TOutputImage>
static ITK_THREAD_RETURN_TYPE itk::CannyEdgeDetectionImageFilter< 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<class TInputImage, class TOutputImage>
static ITK_THREAD_RETURN_TYPE itk::CannyEdgeDetectionImageFilter< 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<class TInputImage, class TOutputImage>
OutputImagePixelType itk::CannyEdgeDetectionImageFilter< 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<class TInputImage, class TOutputImage>
virtual::itk::LightObject::Pointer itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::CreateAnother ( void  ) 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<class TInputImage, class TOutputImage>
void itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::FollowEdge ( IndexType  index)
private

Edge linking funciton

template<class TInputImage, class TOutputImage>
void itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::GenerateData ( )
protectedvirtual

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 ThreadedGenerateData(). 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 an be threaded, it should NOT provide a GenerateData() method but should provide a ThreadedGenerateData() instead.

See also:
ThreadedGenerateData()

Reimplemented from itk::ImageSource< TOutputImage >.

template<class TInputImage, class TOutputImage>
virtual void itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::GenerateInputRequestedRegion ( ) throw ( InvalidRequestedRegionError )
virtual

CannyEdgeDetectionImageFilter needs a larger input requested region than the output requested region ( derivative operators, etc). As such, CannyEdgeDetectionImageFilter 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<class TInputImage, class TOutputImage>
virtual OutputImagePixelType itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::GetLowerThreshold ( ) const
virtual
template<class TInputImage, class TOutputImage>
virtual const ArrayType itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::GetMaximumError ( ) const
virtual

Standard get/set macros for filter parameters.

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

Run-time type information (and related methods).

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

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

Definition at line 197 of file itkCannyEdgeDetectionImageFilter.h.

template<class TInputImage, class TOutputImage>
virtual OutputImagePixelType itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::GetUpperThreshold ( ) const
virtual
template<class TInputImage, class TOutputImage>
virtual const ArrayType itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::GetVariance ( ) const
virtual

Standard get/set macros for filter parameters.

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

Implement hysteresis thresholding

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

Method for creation through the object factory.

Reimplemented from itk::Object.

template<class TInputImage, class TOutputImage>
void itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::operator= ( const Self )
private

PushBackInput(), PushFronInput() in the public section force the input to be the type expected by an ImageToImageFilter. However, these methods end of "hiding" the versions from the superclass (ProcessObject) whose arguments are DataObjects. Here, we re-expose the versions from ProcessObject to avoid warnings about hiding methods from the superclass.

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

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

End concept checking

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

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

Standard get/set macros for filter parameters.

template<class TInputImage, class 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 167 of file itkCannyEdgeDetectionImageFilter.h.

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

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)"* Set the Threshold value for detected edges. */

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

Standard get/set macros for filter parameters.

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

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

Definition at line 151 of file itkCannyEdgeDetectionImageFilter.h.

template<class TInputImage, class TOutputImage>
void itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::ThreadedCompute2ndDerivative ( const OutputImageRegionType outputRegionForThread,
ThreadIdType  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:
ImageSource Does the actual work of calculating of the 2nd derivative over a region supplied by the multithreading mechanism.
Compute2ndDerivative
Compute2ndDerivativeThreaderCallBack
template<class TInputImage, class TOutputImage>
void itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::ThreadedCompute2ndDerivativePos ( const OutputImageRegionType outputRegionForThread,
ThreadIdType  threadId 
)
private

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

See also:
Compute2ndDerivativePos
Compute3ndDerivativePosThreaderCallBack
template<class TInputImage, class TOutputImage>
itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::typedef ( Concept::HasNumericTraits< InputImagePixelType )

Begin concept checking This class requires InputHasNumericTraitsCheck in the form of ( Concept::HasNumericTraits< InputImagePixelType > )

template<class TInputImage, class TOutputImage>
itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::typedef ( Concept::HasNumericTraits< OutputImagePixelType )

This class requires OutputHasNumericTraitsCheck in the form of ( Concept::HasNumericTraits< OutputImagePixelType > )

template<class TInputImage, class TOutputImage>
itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::typedef ( Concept::SameDimension< ImageDimension, OutputImageDimension )

This class requires SameDimensionCheck in the form of ( Concept::SameDimension< ImageDimension, OutputImageDimension > )

template<class TInputImage, class TOutputImage>
itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::typedef ( Concept::IsFloatingPoint< InputImagePixelType )

This class requires InputIsFloatingPointCheck in the form of ( Concept::IsFloatingPoint< InputImagePixelType > )

template<class TInputImage, class TOutputImage>
itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::typedef ( Concept::IsFloatingPoint< OutputImagePixelType )

This class requires OutputIsFloatingPointCheck in the form of ( Concept::IsFloatingPoint< OutputImagePixelType > )


Member Data Documentation

template<class TInputImage, class TOutputImage>
const unsigned int itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::ImageDimension = TInputImage::ImageDimension
static

ImageDimension constant

Definition at line 134 of file itkCannyEdgeDetectionImageFilter.h.

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

Definition at line 349 of file itkCannyEdgeDetectionImageFilter.h.

template<class TInputImage, class TOutputImage>
DerivativeOperator< OutputImagePixelType, itkGetStaticConstMacro(ImageDimension) > itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::m_ComputeCannyEdge1stDerivativeOper
private

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

Definition at line 341 of file itkCannyEdgeDetectionImageFilter.h.

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

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

Definition at line 343 of file itkCannyEdgeDetectionImageFilter.h.

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

Definition at line 346 of file itkCannyEdgeDetectionImageFilter.h.

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

Gaussian filter to smooth the input image

Definition at line 332 of file itkCannyEdgeDetectionImageFilter.h.

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

Lower threshold value for identifying edges.

Definition at line 326 of file itkCannyEdgeDetectionImageFilter.h.

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

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

Definition at line 320 of file itkCannyEdgeDetectionImageFilter.h.

template<class TInputImage, class 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 336 of file itkCannyEdgeDetectionImageFilter.h.

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

Definition at line 352 of file itkCannyEdgeDetectionImageFilter.h.

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

Definition at line 351 of file itkCannyEdgeDetectionImageFilter.h.

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

Definition at line 348 of file itkCannyEdgeDetectionImageFilter.h.

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

Update buffers used during calculation of multiple steps

Definition at line 329 of file itkCannyEdgeDetectionImageFilter.h.

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

Upper threshold value for identifying edges.

Definition at line 323 of file itkCannyEdgeDetectionImageFilter.h.

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

The variance of the Gaussian Filter used in this filter

Definition at line 316 of file itkCannyEdgeDetectionImageFilter.h.

template<class TInputImage, class TOutputImage>
const unsigned int itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::OutputImageDimension = TOutputImage::ImageDimension
static

ImageDimension constant

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

Definition at line 136 of file itkCannyEdgeDetectionImageFilter.h.


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