19 #ifndef itkRectangularImageNeighborhoodShape_h
20 #define itkRectangularImageNeighborhoodShape_h
30 namespace Experimental
54 template <
unsigned int VImageDimension>
82 assert(offsets !=
nullptr);
87 return -static_cast<OffsetValueType>(radiusValue);
94 for (
unsigned dimensionIndex = 0; dimensionIndex <
ImageDimension; ++dimensionIndex)
100 if (offsetValue <= static_cast<OffsetValueType>(
m_Radius[dimensionIndex]))
104 offsetValue = -static_cast<OffsetValueType>(
m_Radius[dimensionIndex]);
120 constexpr std::size_t
123 return (dimension == 0)