ITK
6.0.0
Insight Toolkit
|
#include <itkShapedNeighborhoodIterator.h>
A neighborhood iterator which can take on an arbitrary shape.
where radius, image, and region are as described in NeighborhoodIterator.
Once a neighborhood location has been activated, iteration (operator++, operator--, operator+=, operator-=) will update the value at the active location. Note that values at inactive locations will NOT be valid if queried.
A second way to access active shaped neighborhood values is through a ShapedNeighborhoodIterator::Iterator or ConstShapedNeighborhoodIterator::ConstIterator. The following example demonstrates the use of these iterators.
You can also iterate backward through the neighborhood active list.
The Get() Set() syntax was chosen versus defining operator* for these iterators because lvalue vs. rvalue context information is needed to determine whether bounds checking must take place.
Definition at line 150 of file itkShapedNeighborhoodIterator.h.
Classes | |
struct | Iterator |
Static Public Attributes | |
static constexpr unsigned int | Dimension = TImage::ImageDimension |
Static Public Attributes inherited from itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition > | |
static constexpr unsigned int | Dimension = TImage::ImageDimension |
Protected Types | |
using | NeighborIndexType = SizeValueType |
Protected Attributes | |
friend | Superclass |
Protected Attributes inherited from itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition > | |
IndexListType | m_ActiveIndexList {} |
bool | m_CenterIsActive { false } |
Additional Inherited Members | |
Protected Member Functions inherited from itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition > | |
void | ActivateIndex (NeighborIndexType) |
void | DeactivateIndex (NeighborIndexType) |
using itk::Neighborhood< TPixel, VDimension, TAllocator >::ConstIterator = typename AllocatorType::const_iterator |
Definition at line 76 of file itkNeighborhood.h.
using itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >::InternalPixelType = typename TImage::InternalPixelType |
Extract image type information.
Definition at line 155 of file itkShapedNeighborhoodIterator.h.
|
protected |
Type used to refer to the elements of the pixel list that are part of the neighborhood.
Definition at line 96 of file itkNeighborhood.h.
using itk::Neighborhood< TPixel, VDimension, TAllocator >::OffsetType = Offset<VDimension> |
Offset type used to reference neighbor locations
Definition at line 86 of file itkNeighborhood.h.
using itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >::OffsetValueType = typename OffsetType::OffsetValueType |
Definition at line 167 of file itkShapedNeighborhoodIterator.h.
using itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >::PixelType = typename TImage::PixelType |
Definition at line 156 of file itkShapedNeighborhoodIterator.h.
using itk::Neighborhood< TPixel, VDimension, TAllocator >::RadiusType = itk::Size<VDimension> |
Radius type alias support
Definition at line 83 of file itkNeighborhood.h.
using itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >::Self = ShapedNeighborhoodIterator |
Standard class type aliases.
Definition at line 162 of file itkShapedNeighborhoodIterator.h.
using itk::Neighborhood< TPixel, VDimension, TAllocator >::SizeType = itk::Size<VDimension> |
Size and value type alias support
Definition at line 79 of file itkNeighborhood.h.
using itk::Neighborhood< TPixel, VDimension, TAllocator >::SizeValueType = typename SizeType::SizeValueType |
Definition at line 80 of file itkNeighborhood.h.
using itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >::Superclass = ConstShapedNeighborhoodIterator<TImage, TBoundaryCondition> |
Definition at line 163 of file itkShapedNeighborhoodIterator.h.
|
default |
Default constructor
|
overridedefault |
Virtual destructor
|
delete |
Copy constructor
|
inline |
Constructor which establishes the region size, neighborhood, and image over which to walk.
Definition at line 223 of file itkShapedNeighborhoodIterator.h.
|
inline |
Returns a const iterator for the neighborhood which points to the first pixel in the neighborhood.
Definition at line 245 of file itkShapedNeighborhoodIterator.h.
|
inline |
Definition at line 173 of file itkNeighborhood.h.
|
inline |
Definition at line 183 of file itkNeighborhood.h.
|
inline |
Returns a const iterator for the neighborhood which points to the first pixel in the neighborhood.
Definition at line 250 of file itkShapedNeighborhoodIterator.h.
|
inline |
STL-style iterator support.
Definition at line 168 of file itkNeighborhood.h.
|
inline |
Definition at line 178 of file itkNeighborhood.h.
|
inline |
Assignment operator
Definition at line 235 of file itkShapedNeighborhoodIterator.h.
|
staticconstexpr |
Save the image dimension.
Definition at line 159 of file itkShapedNeighborhoodIterator.h.
|
protected |
Definition at line 260 of file itkShapedNeighborhoodIterator.h.