ITK
5.0.0
Insight Segmentation and Registration 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 67 of file itkDerivativeOperator.h.
Protected Types | |
using | CoefficientVector = typename Superclass::CoefficientVector |
Protected Types inherited from itk::NeighborhoodOperator< TPixel, VDimension, TAllocator > | |
using | CoefficientVector = std::vector< PixelRealType > |
Protected Member Functions | |
void | Fill (const CoefficientVector &coeff) override |
CoefficientVector | GenerateCoefficients () override |
Protected Member Functions inherited from itk::NeighborhoodOperator< TPixel, VDimension, TAllocator > | |
virtual void | Fill (const CoefficientVector &)=0 |
virtual void | FillCenteredDirectional (const CoefficientVector &) |
void | InitializeToZero () |
Protected Member Functions inherited from itk::Neighborhood< TPixel, VDimension, TAllocator > | |
virtual void | Allocate (NeighborIndexType i) |
virtual void | ComputeNeighborhoodOffsetTable () |
virtual void | ComputeNeighborhoodStrideTable () |
void | SetSize () |
Private Attributes | |
unsigned int | m_Order {1} |
Additional Inherited Members | |
Static Public Attributes inherited from itk::Neighborhood< TPixel, VDimension, TAllocator > | |
static constexpr unsigned int | NeighborhoodDimension = VDimension |
|
protected |
Typedef support for coefficient vector type. Necessary to work around compiler bug on VC++.
Definition at line 121 of file itkDerivativeOperator.h.
using itk::DerivativeOperator< TPixel, VDimension, TAllocator >::PixelRealType = typename Superclass::PixelRealType |
Definition at line 78 of file itkDerivativeOperator.h.
using itk::DerivativeOperator< TPixel, VDimension, TAllocator >::PixelType = typename Superclass::PixelType |
Definition at line 77 of file itkDerivativeOperator.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 75 of file itkDerivativeOperator.h.
|
inline |
Constructor.
Definition at line 81 of file itkDerivativeOperator.h.
|
inline |
Copy constructor.
Definition at line 84 of file itkDerivativeOperator.h.
|
inlineoverrideprotected |
Arranges coefficients spatially in the memory buffer.
Definition at line 127 of file itkDerivativeOperator.h.
|
overrideprotectedvirtual |
Calculates operator coefficients.
Implements itk::NeighborhoodOperator< TPixel, VDimension, TAllocator >.
|
inline |
Returns the order of the derivative.
Definition at line 107 of file itkDerivativeOperator.h.
|
inline |
Assignment operator
Definition at line 89 of file itkDerivativeOperator.h.
|
inlineoverridevirtual |
Prints some debugging information
Reimplemented from itk::Neighborhood< TPixel, VDimension, TAllocator >.
Definition at line 110 of file itkDerivativeOperator.h.
|
inline |
Sets the order of the derivative.
Definition at line 101 of file itkDerivativeOperator.h.
|
private |
Order of the derivative.
Definition at line 132 of file itkDerivativeOperator.h.
Referenced by itk::DerivativeOperator< OutputImagePixelType, itkGetStaticConstMacro(ImageDimension)>::DerivativeOperator(), and itk::DerivativeOperator< OutputImagePixelType, itkGetStaticConstMacro(ImageDimension)>::operator=().