ITK
5.2.0
Insight Toolkit
|
#include <itkRectangularImageNeighborhoodShape.h>
Public Member Functions | |
constexpr std::vcl_size_t | GetNumberOfOffsets () const noexcept |
constexpr | RectangularImageNeighborhoodShape (const Size< ImageDimension > &radius) noexcept |
Static Public Attributes | |
static constexpr unsigned int | ImageDimension = VImageDimension |
Size< ImageDimension > | m_Radius |
std::vcl_size_t | m_NumberOfOffsets |
void | FillOffsets (Offset< ImageDimension > *const offsets) const noexcept |
constexpr std::vcl_size_t | CalculateNumberOfOffsets (const unsigned dimension) const noexcept |
Rectangular (or hyperrectangular) image-neighborhood shape. Eases creating a sequence of offsets for ShapedImageNeighborhoodRange. Can also be used for ShapedNeighborhoodIterator.
The following example creates a 3 x 5 rectangular neighborhood around pixel location [10, 20], and generates the offsets for a neighborhood range:
Definition at line 53 of file itkRectangularImageNeighborhoodShape.h.
|
inlineexplicitconstexprnoexcept |
Constructs a hyperrectangular shape whose size is specified by the radius
Definition at line 60 of file itkRectangularImageNeighborhoodShape.h.
|
inlineconstexprprivatenoexcept |
Fills the specified buffer with the offsets for a neighborhood of this shape.
Definition at line 119 of file itkRectangularImageNeighborhoodShape.h.
References itk::Size< VDimension >::m_InternalArray, and itk::RectangularImageNeighborhoodShape< VImageDimension >::m_Radius.
|
inlinenoexcept |
Fills the specified buffer with the offsets for a neighborhood of this shape.
Definition at line 76 of file itkRectangularImageNeighborhoodShape.h.
References itk::Size< VDimension >::begin(), itk::Offset< VDimension >::begin(), itk::Size< VDimension >::end(), itk::RectangularImageNeighborhoodShape< VImageDimension >::ImageDimension, itk::RectangularImageNeighborhoodShape< VImageDimension >::m_NumberOfOffsets, and itk::RectangularImageNeighborhoodShape< VImageDimension >::m_Radius.
|
inlineconstexprnoexcept |
Returns the number of offsets needed to represent this shape.
Definition at line 68 of file itkRectangularImageNeighborhoodShape.h.
References itk::RectangularImageNeighborhoodShape< VImageDimension >::m_NumberOfOffsets.
|
staticconstexpr |
Definition at line 56 of file itkRectangularImageNeighborhoodShape.h.
Referenced by itk::RectangularImageNeighborhoodShape< VImageDimension >::FillOffsets().
|
private |
Fills the specified buffer with the offsets for a neighborhood of this shape.
Definition at line 113 of file itkRectangularImageNeighborhoodShape.h.
Referenced by itk::RectangularImageNeighborhoodShape< VImageDimension >::FillOffsets(), and itk::RectangularImageNeighborhoodShape< VImageDimension >::GetNumberOfOffsets().
|
private |
Fills the specified buffer with the offsets for a neighborhood of this shape.
Definition at line 110 of file itkRectangularImageNeighborhoodShape.h.
Referenced by itk::RectangularImageNeighborhoodShape< VImageDimension >::CalculateNumberOfOffsets(), and itk::RectangularImageNeighborhoodShape< VImageDimension >::FillOffsets().