19#ifndef itkBufferedImageNeighborhoodPixelAccessPolicy_h
20#define itkBufferedImageNeighborhoodPixelAccessPolicy_h
49template <
typename TImage>
87 const auto pixelIndexValue = pixelIndex[i];
88 assert((pixelIndexValue >= 0) && (
static_cast<SizeValueType>(pixelIndexValue) < imageSize[i]));
89 result += pixelIndexValue * offsetTable[i];
void SetPixelValue(InternalPixelType *const imageBufferPointer, const PixelType &pixelValue) const noexcept
BufferedImageNeighborhoodPixelAccessPolicy(const ImageSizeType &imageSize, const OffsetType &offsetTable, const NeighborhoodAccessorFunctorType &neighborhoodAccessor, const IndexType &pixelIndex) noexcept
BufferedImageNeighborhoodPixelAccessPolicy(const BufferedImageNeighborhoodPixelAccessPolicy &) noexcept=default
typename TImage::InternalPixelType InternalPixelType
typename TImage::PixelType PixelType
static IndexValueType CalculatePixelIndexValue(const ImageSizeType &imageSize, const OffsetType &offsetTable, const IndexType &pixelIndex) noexcept
typename TImage::NeighborhoodAccessorFunctorType NeighborhoodAccessorFunctorType
BufferedImageNeighborhoodPixelAccessPolicy()=delete
PixelType GetPixelValue(const InternalPixelType *const imageBufferPointer) const noexcept
typename TImage::ImageDimensionType ImageDimensionType
~BufferedImageNeighborhoodPixelAccessPolicy()=default
const IndexValueType m_PixelIndexValue
BufferedImageNeighborhoodPixelAccessPolicy & operator=(const BufferedImageNeighborhoodPixelAccessPolicy &)=delete
static constexpr ImageDimensionType ImageDimension
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.