#include <itkHigherOrderAccurateDerivativeOperator.h>
A NeighborhoodOperator for calculating an n-th order accurate derivative at a pixel.
Calculate the image derivative from a higher order accurate central-difference derivative kernel.
Based on the work here:
Khan, IR and Ohba, Ryoji. "Closed-form expressions for the finite difference approximations of first and higher derivatives based on Taylor series." Journal of Computational and Applied Mathematics. vol 107. p. 179-193. 1999.
Khan, IR and Ohba, Ryoji. "Taylor series based finite difference approximations of higher-degree derivatives." Journal of Computational and Applied Mathematics. vol 154. p. 115-124. 2003.
To specify the order of accuracy, use SetOrderOfAccuracy(). The approximation will be accurate to two times the OrderOfAccuracy in terms of Taylor series terms.
Definition at line 61 of file itkHigherOrderAccurateDerivativeOperator.h.
Inheritance diagram for itk::HigherOrderAccurateDerivativeOperator< TPixel, VDimension, TAllocator >:
Collaboration diagram for itk::HigherOrderAccurateDerivativeOperator< TPixel, VDimension, TAllocator >:Protected Types | |
| using | CoefficientVector = typename Superclass::CoefficientVector |
Protected Types inherited from itk::NeighborhoodOperator< TPixel, VDimension, TAllocator > | |
| 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, VDimension, TAllocator > | |
| 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 Member Functions | |
| CoefficientVector | GenerateFirstOrderCoefficients () |
Private Attributes | |
| unsigned int | m_Order { 1 } |
| unsigned int | m_OrderOfAccuracy { 2 } |
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 136 of file itkHigherOrderAccurateDerivativeOperator.h.
| using itk::HigherOrderAccurateDerivativeOperator< TPixel, VDimension, TAllocator >::PixelRealType = typename Superclass::PixelRealType |
Definition at line 69 of file itkHigherOrderAccurateDerivativeOperator.h.
| using itk::HigherOrderAccurateDerivativeOperator< TPixel, VDimension, TAllocator >::PixelType = typename Superclass::PixelType |
Definition at line 68 of file itkHigherOrderAccurateDerivativeOperator.h.
| using itk::HigherOrderAccurateDerivativeOperator< TPixel, VDimension, TAllocator >::Self = HigherOrderAccurateDerivativeOperator |
Standard class type alias.
Definition at line 65 of file itkHigherOrderAccurateDerivativeOperator.h.
| using itk::HigherOrderAccurateDerivativeOperator< TPixel, VDimension, TAllocator >::Superclass = NeighborhoodOperator<TPixel, VDimension, TAllocator> |
Definition at line 66 of file itkHigherOrderAccurateDerivativeOperator.h.
|
default |
Constructor.
Referenced by GetNameOfClass().
|
inline |
Copy constructor.
Definition at line 78 of file itkHigherOrderAccurateDerivativeOperator.h.
References m_Order.
|
inlineoverrideprotectedvirtual |
Arranges coefficients spatially in the memory buffer.
Implements itk::NeighborhoodOperator< TPixel, VDimension, TAllocator >.
Definition at line 144 of file itkHigherOrderAccurateDerivativeOperator.h.
References itk::NeighborhoodOperator< TPixel, VDimension, TAllocator >::FillCenteredDirectional().
|
overrideprotectedvirtual |
Calculates operator coefficients.
Implements itk::NeighborhoodOperator< TPixel, VDimension, TAllocator >.
|
private |
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::NeighborhoodOperator< TPixel, VDimension, TAllocator >.
References HigherOrderAccurateDerivativeOperator().
|
inline |
Returns the order of the derivative.
Definition at line 104 of file itkHigherOrderAccurateDerivativeOperator.h.
References m_Order.
|
inline |
Definition at line 119 of file itkHigherOrderAccurateDerivativeOperator.h.
References m_OrderOfAccuracy.
|
inline |
Assignment operator
Definition at line 86 of file itkHigherOrderAccurateDerivativeOperator.h.
References m_Order, and itk::Neighborhood< TPixel, VDimension, TAllocator >::operator=().
|
inlineoverridevirtual |
Prints some debugging information
Reimplemented from itk::Neighborhood< TPixel, VDimension, TAllocator >.
Definition at line 126 of file itkHigherOrderAccurateDerivativeOperator.h.
References itk::Indent::GetNextIndent(), m_Order, m_OrderOfAccuracy, and itk::NeighborhoodOperator< TPixel, VDimension, TAllocator >::PrintSelf().
|
inline |
Sets the order of the derivative. Only order == 1 is currently implemented; any other value triggers a runtime exception in GenerateCoefficients().
Definition at line 97 of file itkHigherOrderAccurateDerivativeOperator.h.
References m_Order.
|
inline |
Sets the order of accuracy of the derivative. The derivative estimate will be accurate out to two times the given order in terms of Taylor Series terms. The radius of the neighborhood operator is also equal to the given order.
Definition at line 113 of file itkHigherOrderAccurateDerivativeOperator.h.
References m_OrderOfAccuracy.
|
private |
Order of the derivative.
Definition at line 154 of file itkHigherOrderAccurateDerivativeOperator.h.
Referenced by GetOrder(), HigherOrderAccurateDerivativeOperator(), operator=(), PrintSelf(), and SetOrder().
|
private |
Order of accuracy.
Definition at line 157 of file itkHigherOrderAccurateDerivativeOperator.h.
Referenced by GetOrderOfAccuracy(), PrintSelf(), and SetOrderOfAccuracy().