ITK
5.0.0
Insight Segmentation and Registration Toolkit
|
#include <itkConstantBoundaryImageNeighborhoodPixelAccessPolicy.h>
ImageNeighborhoodPixelAccessPolicy class for ShapedImageNeighborhoodRange. Allows getting and setting the value of a pixel, located in a specified neighborhood location, at a specified offset. Uses a constant as value for pixels outside the image border.
Definition at line 44 of file itkConstantBoundaryImageNeighborhoodPixelAccessPolicy.h.
Public Types | |
using | PixelAccessParameterType = PixelType |
Public Member Functions | |
ConstantBoundaryImageNeighborhoodPixelAccessPolicy ()=delete | |
ConstantBoundaryImageNeighborhoodPixelAccessPolicy (const ConstantBoundaryImageNeighborhoodPixelAccessPolicy &)=default | |
PixelType | GetPixelValue (const InternalPixelType *const imageBufferPointer) const noexcept |
ConstantBoundaryImageNeighborhoodPixelAccessPolicy & | operator= (const ConstantBoundaryImageNeighborhoodPixelAccessPolicy &)=delete |
~ConstantBoundaryImageNeighborhoodPixelAccessPolicy ()=default | |
ConstantBoundaryImageNeighborhoodPixelAccessPolicy (const ImageSizeType &imageSize, const OffsetType &offsetTable, const NeighborhoodAccessorFunctorType &neighborhoodAccessor, const IndexType &pixelIndex, const PixelType constant={}) noexcept | |
void | SetPixelValue (InternalPixelType *const imageBufferPointer, const PixelType &pixelValue) const noexcept |
Private Types | |
using | ImageDimensionType = typename TImage::ImageDimensionType |
using | ImageSizeType = Size< ImageDimension > |
using | ImageSizeValueType = SizeValueType |
using | IndexType = Index< ImageDimension > |
using | InternalPixelType = typename TImage::InternalPixelType |
using | NeighborhoodAccessorFunctorType = typename TImage::NeighborhoodAccessorFunctorType |
using | OffsetType = Offset< ImageDimension > |
using | PixelType = typename TImage::PixelType |
Static Private Member Functions | |
static IndexValueType | CalculatePixelIndexValue (const OffsetType &offsetTable, const IndexType &pixelIndex) noexcept |
static bool | IsInside (const IndexType &pixelIndex, const ImageSizeType &imageSize) noexcept |
Private Attributes | |
const PixelType | m_Constant |
const NeighborhoodAccessorFunctorType & | m_NeighborhoodAccessor |
const IndexValueType | m_PixelIndexValue |
Static Private Attributes | |
static constexpr ImageDimensionType | ImageDimension = TImage::ImageDimension |
|
private |
Definition at line 51 of file itkConstantBoundaryImageNeighborhoodPixelAccessPolicy.h.
|
private |
Definition at line 56 of file itkConstantBoundaryImageNeighborhoodPixelAccessPolicy.h.
|
private |
Definition at line 57 of file itkConstantBoundaryImageNeighborhoodPixelAccessPolicy.h.
|
private |
Definition at line 54 of file itkConstantBoundaryImageNeighborhoodPixelAccessPolicy.h.
|
private |
Definition at line 49 of file itkConstantBoundaryImageNeighborhoodPixelAccessPolicy.h.
|
private |
Definition at line 47 of file itkConstantBoundaryImageNeighborhoodPixelAccessPolicy.h.
|
private |
Definition at line 55 of file itkConstantBoundaryImageNeighborhoodPixelAccessPolicy.h.
using itk::Experimental::ConstantBoundaryImageNeighborhoodPixelAccessPolicy< TImage >::PixelAccessParameterType = PixelType |
This type is necessary to tell the ShapedImageNeighborhoodRange that the constructor accepts a pixel value as (optional) extra parameter.
Definition at line 109 of file itkConstantBoundaryImageNeighborhoodPixelAccessPolicy.h.
|
private |
Definition at line 48 of file itkConstantBoundaryImageNeighborhoodPixelAccessPolicy.h.
|
delete |
|
default |
default |
|
inlinenoexcept |
Constructor called directly by the pixel proxy of ShapedImageNeighborhoodRange.
Definition at line 122 of file itkConstantBoundaryImageNeighborhoodPixelAccessPolicy.h.
|
inlinestaticprivatenoexcept |
Definition at line 93 of file itkConstantBoundaryImageNeighborhoodPixelAccessPolicy.h.
References itk::Experimental::ConstantBoundaryImageNeighborhoodPixelAccessPolicy< TImage >::ImageDimension.
|
inlinenoexcept |
Retrieves the pixel value from the image buffer, at the current index. When the index is out of bounds, it returns the constant value specified during construction.
Definition at line 143 of file itkConstantBoundaryImageNeighborhoodPixelAccessPolicy.h.
References itk::Experimental::ConstantBoundaryImageNeighborhoodPixelAccessPolicy< TImage >::m_Constant, itk::Experimental::ConstantBoundaryImageNeighborhoodPixelAccessPolicy< TImage >::m_NeighborhoodAccessor, and itk::Experimental::ConstantBoundaryImageNeighborhoodPixelAccessPolicy< TImage >::m_PixelIndexValue.
|
inlinestaticprivatenoexcept |
Definition at line 70 of file itkConstantBoundaryImageNeighborhoodPixelAccessPolicy.h.
References itk::Experimental::ConstantBoundaryImageNeighborhoodPixelAccessPolicy< TImage >::ImageDimension.
|
delete |
|
inlinenoexcept |
Sets the value of the image buffer at the current index value to the specified value.
Definition at line 152 of file itkConstantBoundaryImageNeighborhoodPixelAccessPolicy.h.
References itk::Experimental::ConstantBoundaryImageNeighborhoodPixelAccessPolicy< TImage >::m_NeighborhoodAccessor, and itk::Experimental::ConstantBoundaryImageNeighborhoodPixelAccessPolicy< TImage >::m_PixelIndexValue.
|
staticprivate |
Definition at line 52 of file itkConstantBoundaryImageNeighborhoodPixelAccessPolicy.h.
Referenced by itk::Experimental::ConstantBoundaryImageNeighborhoodPixelAccessPolicy< TImage >::CalculatePixelIndexValue(), and itk::Experimental::ConstantBoundaryImageNeighborhoodPixelAccessPolicy< TImage >::IsInside().
|
private |
Definition at line 66 of file itkConstantBoundaryImageNeighborhoodPixelAccessPolicy.h.
Referenced by itk::Experimental::ConstantBoundaryImageNeighborhoodPixelAccessPolicy< TImage >::GetPixelValue().
|
private |
Definition at line 63 of file itkConstantBoundaryImageNeighborhoodPixelAccessPolicy.h.
Referenced by itk::Experimental::ConstantBoundaryImageNeighborhoodPixelAccessPolicy< TImage >::GetPixelValue(), and itk::Experimental::ConstantBoundaryImageNeighborhoodPixelAccessPolicy< TImage >::SetPixelValue().
|
private |
Definition at line 60 of file itkConstantBoundaryImageNeighborhoodPixelAccessPolicy.h.
Referenced by itk::Experimental::ConstantBoundaryImageNeighborhoodPixelAccessPolicy< TImage >::GetPixelValue(), and itk::Experimental::ConstantBoundaryImageNeighborhoodPixelAccessPolicy< TImage >::SetPixelValue().