ITK
5.0.0
Insight Segmentation and Registration Toolkit
|
#include <itkLaplacianOperator.h>
A NeighborhoodOperator for use in calculating the Laplacian at a pixel.
A NeighborhoodOperator for use in calculating the Laplacian at a pixel. The LaplacianOperator's coefficients are a tightest-fitting convolution kernel.
For example, the simplest Laplacian Operator for 2D has the form:
Definition at line 64 of file itkLaplacianOperator.h.
Public Types | |
using | PixelType = typename Superclass::PixelType |
using | Self = LaplacianOperator |
using | SizeType = typename Superclass::SizeType |
using | Superclass = NeighborhoodOperator< TPixel, VDimension, TAllocator > |
Public Types inherited from itk::NeighborhoodOperator< TPixel, VDimension, TAllocator > | |
using | PixelRealType = typename NumericTraits< TPixel >::RealType |
using | PixelType = TPixel |
using | Self = NeighborhoodOperator |
using | SizeType = typename Superclass::SizeType |
using | SliceIteratorType = SliceIterator< TPixel, Self > |
using | Superclass = Neighborhood< TPixel, VDimension, TAllocator > |
Public Types inherited from itk::Neighborhood< TPixel, VDimension, TAllocator > | |
using | AllocatorType = TAllocator |
using | ConstIterator = typename AllocatorType::const_iterator |
using | DimensionValueType = unsigned int |
using | Iterator = typename AllocatorType::iterator |
using | NeighborIndexType = SizeValueType |
using | OffsetType = Offset< VDimension > |
using | PixelType = TPixel |
using | RadiusType = ::itk::Size< VDimension > |
using | Self = Neighborhood |
using | SizeType = ::itk::Size< VDimension > |
using | SizeValueType = typename SizeType::SizeValueType |
using | SliceIteratorType = SliceIterator< TPixel, Self > |
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 &) 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 | |
double | m_DerivativeScalings [VDimension] |
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 127 of file itkLaplacianOperator.h.
using itk::LaplacianOperator< TPixel, VDimension, TAllocator >::PixelType = typename Superclass::PixelType |
Definition at line 75 of file itkLaplacianOperator.h.
using itk::LaplacianOperator< TPixel, VDimension, TAllocator >::Self = LaplacianOperator |
Standard "Self" type alias support
Definition at line 70 of file itkLaplacianOperator.h.
using itk::LaplacianOperator< TPixel, VDimension, TAllocator >::SizeType = typename Superclass::SizeType |
Definition at line 76 of file itkLaplacianOperator.h.
using itk::LaplacianOperator< TPixel, VDimension, TAllocator >::Superclass = NeighborhoodOperator< TPixel, VDimension, TAllocator > |
Standard "Superclass" type alias.
Definition at line 73 of file itkLaplacianOperator.h.
|
inline |
Default constructor
Definition at line 79 of file itkLaplacianOperator.h.
|
inline |
Copy constructor
Definition at line 89 of file itkLaplacianOperator.h.
References itk::LaplacianOperator< TPixel, VDimension, TAllocator >::m_DerivativeScalings.
void itk::LaplacianOperator< TPixel, VDimension, TAllocator >::CreateOperator | ( | ) |
This function is called to create the operator
|
overrideprotected |
Arranges coefficients spatially in the memory buffer, default function was NOT used.
|
overrideprotectedvirtual |
Calculates operator coefficients.
Implements itk::NeighborhoodOperator< TPixel, VDimension, TAllocator >.
|
inline |
Assignment operator
Definition at line 103 of file itkLaplacianOperator.h.
|
inlineoverridevirtual |
Prints some debugging information
Reimplemented from itk::Neighborhood< TPixel, VDimension, TAllocator >.
Definition at line 111 of file itkLaplacianOperator.h.
References itk::Indent::GetNextIndent().
void itk::LaplacianOperator< TPixel, VDimension, TAllocator >::SetDerivativeScalings | ( | const double * | s | ) |
Sets the weights that are applied to the derivative in each axial direction when the kernel is computed. These weights are all 1.0 by default. This method must be called BEFORE CreateOperator
|
private |
Weights applied to derivatives in each axial direction
Definition at line 138 of file itkLaplacianOperator.h.
Referenced by itk::LaplacianOperator< TPixel, VDimension, TAllocator >::LaplacianOperator().