ITK
6.0.0
Insight Toolkit
|
#include <itkRectangularImageNeighborhoodShape.h>
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.
Public Member Functions | |
constexpr vcl_size_t | GetNumberOfOffsets () const noexcept |
constexpr | RectangularImageNeighborhoodShape (const Size< ImageDimension > &radius) noexcept |
void | FillOffsets (Offset< ImageDimension > *const offsets) const noexcept |
Static Public Attributes | |
static constexpr unsigned int | ImageDimension = VImageDimension |
Private Member Functions | |
constexpr vcl_size_t | CalculateNumberOfOffsets (const unsigned int dimension) const noexcept |
Private Attributes | |
vcl_size_t | m_NumberOfOffsets |
Size< ImageDimension > | m_Radius |
|
inlineexplicitconstexprnoexcept |
Constructs a hyperrectangular shape whose size is specified by the radius
Definition at line 60 of file itkRectangularImageNeighborhoodShape.h.
|
inlineconstexprprivatenoexcept |
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 |
Definition at line 113 of file itkRectangularImageNeighborhoodShape.h.
Referenced by itk::RectangularImageNeighborhoodShape< VImageDimension >::FillOffsets(), and itk::RectangularImageNeighborhoodShape< VImageDimension >::GetNumberOfOffsets().
|
private |
Definition at line 110 of file itkRectangularImageNeighborhoodShape.h.
Referenced by itk::RectangularImageNeighborhoodShape< VImageDimension >::CalculateNumberOfOffsets(), and itk::RectangularImageNeighborhoodShape< VImageDimension >::FillOffsets().