Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::SobelOperator< TPixel, VDimension, TAllocator > Class Template Reference
[Operators]

A NeighborhoodOperator for doing Sobel operation at a pixel. More...

#include <itkSobelOperator.h>

Inheritance diagram for itk::SobelOperator:

Inheritance graph
[legend]
Collaboration diagram for itk::SobelOperator< TPixel, VDimension, TAllocator >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef SobelOperator Self
typedef NeighborhoodOperator<
TPixel, VDimension, TAllocator > 
Superclass

Public Methods

 SobelOperator ()
 SobelOperator (const Self &other)
void CreateOperator ()
Selfoperator= (const Self &other)
virtual void PrintSelf (std::ostream &os, Indent i) const

Protected Types

typedef Superclass::CoefficientVector CoefficientVector
typedef Superclass::PixelType PixelType

Protected Methods

CoefficientVector GenerateCoefficients ()
void Fill (const CoefficientVector &)

Detailed Description

template<class TPixel, unsigned int VDimension = 2, class TAllocator = NeighborhoodAllocator<TPixel>>
class itk::SobelOperator< TPixel, VDimension, TAllocator >

A NeighborhoodOperator for doing Sobel operation at a pixel.

SobelOperator's coefficients are a tightest-fitting convolution kernel for calculating the laplacian value at a pixel. SobelOperator is a directional NeighborhoodOperator that should be applied to a Neighborhood or NeighborhoodPointer using the inner product method. To create the operator, you need:

1) Set the direction 2) call CreateOperator() For example, the Sobel Operator in vertical direction is -1 -2 -1 0 0 0 1 2 1 while the Sobel Operator in horizonal direction is -1 0 1 -2 0 2 -1 0 1

The Sobel Operator in the Nth dimension can be calculated accordingly.

See also:
NeighborhoodOperator , Neighborhood , ForwardDifferenceOperator , BackwardDifferenceOperator

Definition at line 58 of file itkSobelOperator.h.


Member Typedef Documentation

template<class TPixel, unsigned int VDimension = 2, class TAllocator = NeighborhoodAllocator<TPixel>>
typedef Superclass::CoefficientVector itk::SobelOperator< TPixel, VDimension, TAllocator >::CoefficientVector [protected]
 

Typedef support for coefficient vector type. Necessary to work around compiler bug on VC++.

Reimplemented from itk::NeighborhoodOperator< TPixel, VDimension, TAllocator >.

Definition at line 119 of file itkSobelOperator.h.

template<class TPixel, unsigned int VDimension = 2, class TAllocator = NeighborhoodAllocator<TPixel>>
typedef Superclass::PixelType itk::SobelOperator< TPixel, VDimension, TAllocator >::PixelType [protected]
 

External support for pixel type

Reimplemented from itk::NeighborhoodOperator< TPixel, VDimension, TAllocator >.

Definition at line 120 of file itkSobelOperator.h.

template<class TPixel, unsigned int VDimension = 2, class TAllocator = NeighborhoodAllocator<TPixel>>
typedef SobelOperator itk::SobelOperator< TPixel, VDimension, TAllocator >::Self
 

Standard "Self" typedef support.

Reimplemented from itk::NeighborhoodOperator< TPixel, VDimension, TAllocator >.

Definition at line 66 of file itkSobelOperator.h.

template<class TPixel, unsigned int VDimension = 2, class TAllocator = NeighborhoodAllocator<TPixel>>
typedef NeighborhoodOperator<TPixel, VDimension, TAllocator> itk::SobelOperator< TPixel, VDimension, TAllocator >::Superclass
 

Standard "Superclass" typedef.

Reimplemented from itk::NeighborhoodOperator< TPixel, VDimension, TAllocator >.

Definition at line 71 of file itkSobelOperator.h.


Constructor & Destructor Documentation

template<class TPixel, unsigned int VDimension = 2, class TAllocator = NeighborhoodAllocator<TPixel>>
itk::SobelOperator< TPixel, VDimension, TAllocator >::SobelOperator   [inline]
 

Default constructor

Definition at line 78 of file itkSobelOperator.h.

template<class TPixel, unsigned int VDimension = 2, class TAllocator = NeighborhoodAllocator<TPixel>>
itk::SobelOperator< TPixel, VDimension, TAllocator >::SobelOperator const Self   other [inline]
 

Copy constructor

Definition at line 84 of file itkSobelOperator.h.


Member Function Documentation

template<class TPixel, unsigned int VDimension = 2, class TAllocator = NeighborhoodAllocator<TPixel>>
void itk::SobelOperator< TPixel, VDimension, TAllocator >::CreateOperator  
 

This function is called to create the operator

template<class TPixel, unsigned int VDimension = 2, class TAllocator = NeighborhoodAllocator<TPixel>>
void itk::SobelOperator< TPixel, VDimension, TAllocator >::Fill const CoefficientVector   [protected, virtual]
 

Arranges coefficients spatially in the memory buffer.

Implements itk::NeighborhoodOperator< TPixel, VDimension, TAllocator >.

template<class TPixel, unsigned int VDimension = 2, class TAllocator = NeighborhoodAllocator<TPixel>>
CoefficientVector itk::SobelOperator< TPixel, VDimension, TAllocator >::GenerateCoefficients   [protected, virtual]
 

Calculates operator coefficients.

Implements itk::NeighborhoodOperator< TPixel, VDimension, TAllocator >.

template<class TPixel, unsigned int VDimension = 2, class TAllocator = NeighborhoodAllocator<TPixel>>
Self& itk::SobelOperator< TPixel, VDimension, TAllocator >::operator= const Self   other [inline]
 

Assignment operator

Reimplemented from itk::NeighborhoodOperator< TPixel, VDimension, TAllocator >.

Definition at line 97 of file itkSobelOperator.h.

template<class TPixel, unsigned int VDimension = 2, class TAllocator = NeighborhoodAllocator<TPixel>>
virtual void itk::SobelOperator< TPixel, VDimension, TAllocator >::PrintSelf std::ostream &    os,
Indent    i
const [inline, virtual]
 

Prints some debugging information

Reimplemented from itk::NeighborhoodOperator< TPixel, VDimension, TAllocator >.

Definition at line 106 of file itkSobelOperator.h.


The documentation for this class was generated from the following file:
Generated at Fri May 21 01:40:19 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000