19#ifndef itkRectangularImageNeighborhoodShape_h
20#define itkRectangularImageNeighborhoodShape_h
52template <
unsigned int VImageDimension>
80 assert(offsets !=
nullptr);
85 return -static_cast<OffsetValueType>(radiusValue);
92 for (
unsigned int dimensionIndex = 0; dimensionIndex <
ImageDimension; ++dimensionIndex)
121 return (dimension == 0)
constexpr RectangularImageNeighborhoodShape(const Size< ImageDimension > &radius) noexcept
constexpr vcl_size_t GetNumberOfOffsets() const noexcept
constexpr vcl_size_t CalculateNumberOfOffsets(const unsigned int dimension) const noexcept
Size< ImageDimension > m_Radius
void FillOffsets(Offset< ImageDimension > *const offsets) const noexcept
vcl_size_t m_NumberOfOffsets
static constexpr unsigned int ImageDimension
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType
Represent a n-dimensional offset between two n-dimensional indexes of n-dimensional image.
constexpr iterator begin()
Represent a n-dimensional size (bounds) of a n-dimensional image.