19#ifndef itkConstantBoundaryImageNeighborhoodPixelAccessPolicy_h
20#define itkConstantBoundaryImageNeighborhoodPixelAccessPolicy_h
41template <
typename TImage>
80 result = result && (indexValue >= 0) && (
static_cast<ImageSizeValueType>(indexValue) < imageSize[i]);
95 result += pixelIndex[i] * offsetTable[i];
typename TImage::ImageDimensionType ImageDimensionType
PixelType PixelAccessParameterType
ConstantBoundaryImageNeighborhoodPixelAccessPolicy(const ConstantBoundaryImageNeighborhoodPixelAccessPolicy &)=default
~ConstantBoundaryImageNeighborhoodPixelAccessPolicy()=default
ConstantBoundaryImageNeighborhoodPixelAccessPolicy & operator=(const ConstantBoundaryImageNeighborhoodPixelAccessPolicy &)=delete
const IndexValueType m_PixelIndexValue
typename TImage::NeighborhoodAccessorFunctorType NeighborhoodAccessorFunctorType
static constexpr ImageDimensionType ImageDimension
SizeValueType ImageSizeValueType
void SetPixelValue(InternalPixelType *const imageBufferPointer, const PixelType &pixelValue) const noexcept
const PixelType m_Constant
static bool IsInside(const IndexType &pixelIndex, const ImageSizeType &imageSize) noexcept
typename TImage::InternalPixelType InternalPixelType
typename TImage::PixelType PixelType
PixelType GetPixelValue(const InternalPixelType *const imageBufferPointer) const noexcept
ConstantBoundaryImageNeighborhoodPixelAccessPolicy(const ImageSizeType &imageSize, const OffsetType &offsetTable, const NeighborhoodAccessorFunctorType &neighborhoodAccessor, const IndexType &pixelIndex, const PixelType constant={}) noexcept
static IndexValueType CalculatePixelIndexValue(const OffsetType &offsetTable, const IndexType &pixelIndex) noexcept
ConstantBoundaryImageNeighborhoodPixelAccessPolicy()=delete
const NeighborhoodAccessorFunctorType & m_NeighborhoodAccessor
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType
Represent a n-dimensional index in a n-dimensional image.