ITK
6.0.0
Insight Toolkit
|
#include <itkImageKernelOperator.h>
A NeighborhoodOperator whose coefficients are from an image.
This code was contributed in the Insight Journal paper:
"Image Kernel Convolution" by Tustison N., Gee J. https://doi.org/10.54294/e292kx
Definition at line 49 of file itkImageKernelOperator.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 | |
ImageType::ConstPointer | m_ImageKernel {} |
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::ImageKernelOperator< TPixel, VDimension, TAllocator >::ImageType = Image<TPixel, VDimension> |
Definition at line 57 of file itkImageKernelOperator.h.
using itk::ImageKernelOperator< TPixel, VDimension, TAllocator >::Self = ImageKernelOperator |
Standard class type aliases.
Definition at line 54 of file itkImageKernelOperator.h.
using itk::ImageKernelOperator< TPixel, VDimension, TAllocator >::Superclass = NeighborhoodOperator<TPixel, VDimension, TAllocator> |
Definition at line 55 of file itkImageKernelOperator.h.
|
overrideprotectedvirtual |
Arranges coefficients spatially in the memory buffer.
Implements itk::NeighborhoodOperator< TPixel, 2, NeighborhoodAllocator< TPixel > >.
|
overrideprotectedvirtual |
Calculates operator coefficients.
Implements itk::NeighborhoodOperator< TPixel, 2, NeighborhoodAllocator< TPixel > >.
const ImageType * itk::ImageKernelOperator< TPixel, VDimension, TAllocator >::GetImageKernel | ( | ) | const |
Get the image kernel.
|
overridevirtual |
Reimplemented from itk::Neighborhood< TPixel, VDimension, NeighborhoodAllocator< TPixel > >.
|
inlineoverridevirtual |
Standard itk object method.
Reimplemented from itk::Neighborhood< TPixel, VDimension, NeighborhoodAllocator< TPixel > >.
Definition at line 73 of file itkImageKernelOperator.h.
void itk::ImageKernelOperator< TPixel, VDimension, TAllocator >::SetImageKernel | ( | const ImageType * | kernel | ) |
Set the image kernel. Only images with odd size in all dimensions are allowed. If an image with an even size is passed as an argument, an exception will be thrown.
|
private |
Definition at line 91 of file itkImageKernelOperator.h.