ITK  5.2.0
Insight Toolkit
Public Types | Public Member Functions | Private Types | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
itk::Experimental::ConstantBoundaryImageNeighborhoodPixelAccessPolicy< TImage > Class Template Referencefinal

#include <itkConstantBoundaryImageNeighborhoodPixelAccessPolicy.h>

Public Types

using PixelAccessParameterType = PixelType
 

Public Member Functions

 ConstantBoundaryImageNeighborhoodPixelAccessPolicy ()=delete
 
 ConstantBoundaryImageNeighborhoodPixelAccessPolicy (const ConstantBoundaryImageNeighborhoodPixelAccessPolicy &)=default
 
ConstantBoundaryImageNeighborhoodPixelAccessPolicyoperator= (const ConstantBoundaryImageNeighborhoodPixelAccessPolicy &)=delete
 
 ~ConstantBoundaryImageNeighborhoodPixelAccessPolicy ()=default
 
 ConstantBoundaryImageNeighborhoodPixelAccessPolicy (const ImageSizeType &imageSize, const OffsetType &offsetTable, const NeighborhoodAccessorFunctorType &neighborhoodAccessor, const IndexType &pixelIndex, const PixelType constant={}) noexcept
 
PixelType GetPixelValue (const InternalPixelType *const imageBufferPointer) const 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 NeighborhoodAccessorFunctorTypem_NeighborhoodAccessor
 
const IndexValueType m_PixelIndexValue
 

Static Private Attributes

static constexpr ImageDimensionType ImageDimension = TImage::ImageDimension
 

Detailed Description

template<typename TImage>
class itk::Experimental::ConstantBoundaryImageNeighborhoodPixelAccessPolicy< TImage >

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.

See also
ShapedNeighborhoodIterator
ConstantBoundaryCondition

Definition at line 44 of file itkConstantBoundaryImageNeighborhoodPixelAccessPolicy.h.

Member Typedef Documentation

◆ ImageDimensionType

template<typename TImage >
using itk::Experimental::ConstantBoundaryImageNeighborhoodPixelAccessPolicy< TImage >::ImageDimensionType = typename TImage::ImageDimensionType
private

◆ ImageSizeType

◆ ImageSizeValueType

◆ IndexType

◆ InternalPixelType

template<typename TImage >
using itk::Experimental::ConstantBoundaryImageNeighborhoodPixelAccessPolicy< TImage >::InternalPixelType = typename TImage::InternalPixelType
private

◆ NeighborhoodAccessorFunctorType

template<typename TImage >
using itk::Experimental::ConstantBoundaryImageNeighborhoodPixelAccessPolicy< TImage >::NeighborhoodAccessorFunctorType = typename TImage::NeighborhoodAccessorFunctorType
private

◆ OffsetType

◆ PixelAccessParameterType

This type is necessary to tell the ShapedImageNeighborhoodRange that the constructor accepts a pixel value as (optional) extra parameter.

Definition at line 105 of file itkConstantBoundaryImageNeighborhoodPixelAccessPolicy.h.

◆ PixelType

template<typename TImage >
using itk::Experimental::ConstantBoundaryImageNeighborhoodPixelAccessPolicy< TImage >::PixelType = typename TImage::PixelType
private

Constructor & Destructor Documentation

◆ ConstantBoundaryImageNeighborhoodPixelAccessPolicy() [1/3]

◆ ~ConstantBoundaryImageNeighborhoodPixelAccessPolicy()

◆ ConstantBoundaryImageNeighborhoodPixelAccessPolicy() [2/3]

◆ ConstantBoundaryImageNeighborhoodPixelAccessPolicy() [3/3]

template<typename TImage >
itk::Experimental::ConstantBoundaryImageNeighborhoodPixelAccessPolicy< TImage >::ConstantBoundaryImageNeighborhoodPixelAccessPolicy ( const ImageSizeType imageSize,
const OffsetType offsetTable,
const NeighborhoodAccessorFunctorType neighborhoodAccessor,
const IndexType pixelIndex,
const PixelType  constant = {} 
)
inlinenoexcept

Constructor called directly by the pixel proxy of ShapedImageNeighborhoodRange.

Definition at line 119 of file itkConstantBoundaryImageNeighborhoodPixelAccessPolicy.h.

Member Function Documentation

◆ CalculatePixelIndexValue()

template<typename TImage >
static IndexValueType itk::Experimental::ConstantBoundaryImageNeighborhoodPixelAccessPolicy< TImage >::CalculatePixelIndexValue ( const OffsetType offsetTable,
const IndexType pixelIndex 
)
inlinestaticprivatenoexcept

◆ GetPixelValue()

template<typename TImage >
PixelType itk::Experimental::ConstantBoundaryImageNeighborhoodPixelAccessPolicy< TImage >::GetPixelValue ( const InternalPixelType *const  imageBufferPointer) const
inlinenoexcept

◆ IsInside()

template<typename TImage >
static bool itk::Experimental::ConstantBoundaryImageNeighborhoodPixelAccessPolicy< TImage >::IsInside ( const IndexType pixelIndex,
const ImageSizeType imageSize 
)
inlinestaticprivatenoexcept

◆ operator=()

◆ SetPixelValue()

template<typename TImage >
void itk::Experimental::ConstantBoundaryImageNeighborhoodPixelAccessPolicy< TImage >::SetPixelValue ( InternalPixelType *const  imageBufferPointer,
const PixelType pixelValue 
) const
inlinenoexcept

Member Data Documentation

◆ ImageDimension

template<typename TImage >
constexpr ImageDimensionType itk::Experimental::ConstantBoundaryImageNeighborhoodPixelAccessPolicy< TImage >::ImageDimension = TImage::ImageDimension
staticconstexprprivate

◆ m_Constant

template<typename TImage >
const PixelType itk::Experimental::ConstantBoundaryImageNeighborhoodPixelAccessPolicy< TImage >::m_Constant
private

◆ m_NeighborhoodAccessor

template<typename TImage >
const NeighborhoodAccessorFunctorType& itk::Experimental::ConstantBoundaryImageNeighborhoodPixelAccessPolicy< TImage >::m_NeighborhoodAccessor
private

◆ m_PixelIndexValue

template<typename TImage >
const IndexValueType itk::Experimental::ConstantBoundaryImageNeighborhoodPixelAccessPolicy< TImage >::m_PixelIndexValue
private

The documentation for this class was generated from the following file: