ITK
5.0.0
Insight Segmentation and Registration 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 55 of file 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 |
|
inlineexplicitnoexcept |
Constructs a hyperrectangular shape whose size is specified by the radius
Definition at line 62 of file itkRectangularImageNeighborhoodShape.h.
|
inlineprivatenoexcept |
Fills the specified buffer with the offsets for a neighborhood of this shape.
Definition at line 122 of file itkRectangularImageNeighborhoodShape.h.
References itk::Size< VDimension >::m_InternalArray, and itk::Experimental::RectangularImageNeighborhoodShape< VImageDimension >::m_Radius.
|
inlinenoexcept |
Fills the specified buffer with the offsets for a neighborhood of this shape.
Definition at line 79 of file itkRectangularImageNeighborhoodShape.h.
References itk::Size< VDimension >::begin(), itk::Offset< VDimension >::begin(), itk::Size< VDimension >::end(), itk::Experimental::RectangularImageNeighborhoodShape< VImageDimension >::ImageDimension, itk::Experimental::RectangularImageNeighborhoodShape< VImageDimension >::m_NumberOfOffsets, and itk::Experimental::RectangularImageNeighborhoodShape< VImageDimension >::m_Radius.
|
inlinenoexcept |
Returns the number of offsets needed to represent this shape.
Definition at line 72 of file itkRectangularImageNeighborhoodShape.h.
References itk::Experimental::RectangularImageNeighborhoodShape< VImageDimension >::m_NumberOfOffsets.
|
static |
Definition at line 58 of file itkRectangularImageNeighborhoodShape.h.
Referenced by itk::Experimental::RectangularImageNeighborhoodShape< VImageDimension >::FillOffsets().
|
private |
Fills the specified buffer with the offsets for a neighborhood of this shape.
Definition at line 117 of file itkRectangularImageNeighborhoodShape.h.
Referenced by itk::Experimental::RectangularImageNeighborhoodShape< VImageDimension >::FillOffsets(), and itk::Experimental::RectangularImageNeighborhoodShape< VImageDimension >::GetNumberOfOffsets().
|
private |
Fills the specified buffer with the offsets for a neighborhood of this shape.
Definition at line 114 of file itkRectangularImageNeighborhoodShape.h.
Referenced by itk::Experimental::RectangularImageNeighborhoodShape< VImageDimension >::CalculateNumberOfOffsets(), and itk::Experimental::RectangularImageNeighborhoodShape< VImageDimension >::FillOffsets().