|
ITK
5.2.0
Insight Toolkit
|
Go to the documentation of this file.
19 #ifndef itkRectangularImageNeighborhoodShape_h
20 #define itkRectangularImageNeighborhoodShape_h
52 template <
unsigned int VImageDimension>
80 assert(offsets !=
nullptr);
85 return -static_cast<OffsetValueType>(radiusValue);
92 for (
unsigned dimensionIndex = 0; dimensionIndex <
ImageDimension; ++dimensionIndex)
98 if (offsetValue <= static_cast<OffsetValueType>(
m_Radius[dimensionIndex]))
102 offsetValue = -static_cast<OffsetValueType>(
m_Radius[dimensionIndex]);
118 constexpr std::size_t
121 return (dimension == 0)
Size< ImageDimension > m_Radius
static constexpr unsigned int ImageDimension
constexpr std::vcl_size_t CalculateNumberOfOffsets(const unsigned dimension) const noexcept
SizeValueType m_InternalArray[VDimension]
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
constexpr RectangularImageNeighborhoodShape(const Size< ImageDimension > &radius) noexcept
signed long OffsetValueType
std::vcl_size_t m_NumberOfOffsets
constexpr std::vcl_size_t GetNumberOfOffsets() const noexcept
void FillOffsets(Offset< ImageDimension > *const offsets) const noexcept
unsigned long SizeValueType