19 #ifndef itkRectangularImageNeighborhoodShape_h
20 #define itkRectangularImageNeighborhoodShape_h
30 namespace Experimental
54 template <
unsigned int VImageDimension>
83 assert(offsets !=
nullptr);
96 for (
unsigned dimensionIndex = 0; dimensionIndex <
ImageDimension; ++dimensionIndex)
102 if (offsetValue <= static_cast<OffsetValueType>(
m_Radius[dimensionIndex]))
124 return (dimension == 0) ? 1 :
static constexpr unsigned int ImageDimension
constexpr std::vcl_size_t CalculateNumberOfOffsets(const unsigned dimension) const noexcept
constexpr std::vcl_size_t GetNumberOfOffsets() const noexcept
unsigned long SizeValueType
SizeValueType m_InternalArray[VDimension]
Size< ImageDimension > m_Radius
std::vcl_size_t m_NumberOfOffsets
constexpr RectangularImageNeighborhoodShape(const Size< ImageDimension > &radius) noexcept
signed long OffsetValueType
void FillOffsets(Offset< ImageDimension > *const offsets) const noexcept