ITK
6.0.0
Insight Toolkit
|
#include <itkDerivativeOperator.h>
A NeighborhoodOperator for taking an n-th order derivative at a pixel.
DerivativeOperator's coefficients are a tightest-fitting convolution kernel for calculating the n-th order directional derivative at a pixel. DerivativeOperator is a directional NeighborhoodOperator that should be applied to a Neighborhood or NeighborhoodPointer using the inner product method.
An example operator to compute X derivatives of a 2D image can be created with:
and creates a kernel that looks like:
Definition at line 68 of file itkDerivativeOperator.h.
Protected Types | |
using | CoefficientVector = typename std::vector< PixelRealType > |
Protected Types inherited from itk::NeighborhoodOperator< TPixel, 2, NeighborhoodAllocator< TPixel > > | |
using | CoefficientVector = typename std::vector< PixelRealType > |
Protected Member Functions | |
void | Fill (const CoefficientVector &coeff) override |
CoefficientVector | GenerateCoefficients () override |
Protected Member Functions inherited from itk::NeighborhoodOperator< TPixel, 2, NeighborhoodAllocator< TPixel > > | |
virtual void | Fill (const CoefficientVector &)=0 |
virtual void | FillCenteredDirectional (const CoefficientVector &) |
virtual CoefficientVector | GenerateCoefficients ()=0 |
void | InitializeToZero () |
Protected Member Functions inherited from itk::Neighborhood< TPixel, VDimension, NeighborhoodAllocator< TPixel > > | |
virtual void | Allocate (NeighborIndexType i) |
virtual void | ComputeNeighborhoodOffsetTable () |
virtual void | ComputeNeighborhoodStrideTable () |
virtual void | PrintSelf (std::ostream &, Indent) const |
void | SetSize () |
Private Attributes | |
unsigned int | m_Order { 1 } |
Additional Inherited Members | |
Static Public Attributes inherited from itk::Neighborhood< TPixel, VDimension, NeighborhoodAllocator< TPixel > > | |
static constexpr unsigned int | NeighborhoodDimension |
|
protected |
Type alias support for coefficient vector type. Necessary to fix bug in the microsoft VC++ compiler.
Definition at line 153 of file itkNeighborhoodOperator.h.
using itk::NeighborhoodOperator< TPixel, VDimension, TAllocator >::PixelRealType = typename NumericTraits<TPixel>::RealType |
Definition at line 90 of file itkNeighborhoodOperator.h.
using itk::DerivativeOperator< TPixel, VDimension, TAllocator >::Self = DerivativeOperator |
Standard class type aliases.
Definition at line 73 of file itkDerivativeOperator.h.
using itk::DerivativeOperator< TPixel, VDimension, TAllocator >::Superclass = NeighborhoodOperator<TPixel, VDimension, TAllocator> |
Definition at line 74 of file itkDerivativeOperator.h.
|
inlineoverrideprotectedvirtual |
Arranges coefficients spatially in the memory buffer.
Implements itk::NeighborhoodOperator< TPixel, 2, NeighborhoodAllocator< TPixel > >.
Definition at line 114 of file itkDerivativeOperator.h.
|
overrideprotectedvirtual |
Calculates operator coefficients.
Implements itk::NeighborhoodOperator< TPixel, 2, NeighborhoodAllocator< TPixel > >.
|
overridevirtual |
Reimplemented from itk::Neighborhood< TPixel, VDimension, NeighborhoodAllocator< TPixel > >.
|
inline |
Returns the order of the derivative.
Definition at line 91 of file itkDerivativeOperator.h.
|
inlineoverridevirtual |
Standard itk object method.
Reimplemented from itk::Neighborhood< TPixel, VDimension, NeighborhoodAllocator< TPixel > >.
Definition at line 97 of file itkDerivativeOperator.h.
|
inline |
Sets the order of the derivative.
Definition at line 84 of file itkDerivativeOperator.h.
|
private |
Order of the derivative.
Definition at line 121 of file itkDerivativeOperator.h.