ITK
6.0.0
Insight Toolkit
|
#include <itkConstShapedNeighborhoodIterator.h>
Const version of ShapedNeighborhoodIterator, defining iteration of a local N-dimensional neighborhood of pixels across an itk::Image.
ConstShapedNeighborhoodIterator implements the read-only methods of ShapedNeighborhoodIterator. A "shaped" neighborhood iterator is one that allows you to specify which neighbor elements are active and which are inactive. See ShapedNeighborhoodIterator for more information.
Definition at line 72 of file itkConstShapedNeighborhoodIterator.h.
Classes | |
struct | ConstIterator |
Static Public Attributes | |
static constexpr unsigned int | Dimension = TImage::ImageDimension |
Protected Member Functions | |
void | ActivateIndex (NeighborIndexType) |
void | DeactivateIndex (NeighborIndexType) |
Protected Attributes | |
IndexListType | m_ActiveIndexList {} |
bool | m_CenterIsActive { false } |
Friends | |
struct | ConstIterator |
using itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::BoundaryConditionType = TBoundaryCondition |
Typedef for boundary condition type.
Definition at line 110 of file itkConstShapedNeighborhoodIterator.h.
using itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::ImageBoundaryConditionPointerType = ImageBoundaryCondition<ImageType> * |
Typedef for generic boundary condition pointer
Definition at line 113 of file itkConstShapedNeighborhoodIterator.h.
using itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::ImageType = TImage |
Typedef support for common objects
Definition at line 94 of file itkConstShapedNeighborhoodIterator.h.
using itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::IndexListConstIterator = typename IndexListType::const_iterator |
Definition at line 107 of file itkConstShapedNeighborhoodIterator.h.
using itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::IndexListIterator = typename IndexListType::iterator |
Definition at line 106 of file itkConstShapedNeighborhoodIterator.h.
using itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::IndexListType = std::list<NeighborIndexType> |
An stl storage container type that can be sorted. The type used for the list of active offsets in the neighborhood.
Definition at line 104 of file itkConstShapedNeighborhoodIterator.h.
using itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::IndexType = Index<Self::Dimension> |
Definition at line 96 of file itkConstShapedNeighborhoodIterator.h.
using itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::IndexValueType = typename IndexType::IndexValueType |
Definition at line 97 of file itkConstShapedNeighborhoodIterator.h.
using itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::InternalPixelType = typename TImage::InternalPixelType |
Extract image type information.
Definition at line 76 of file itkConstShapedNeighborhoodIterator.h.
using itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::NeighborhoodType = Neighborhood<PixelType, Self::Dimension> |
Definition at line 98 of file itkConstShapedNeighborhoodIterator.h.
using itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::NeighborIndexType = typename NeighborhoodType::NeighborIndexType |
Definition at line 100 of file itkConstShapedNeighborhoodIterator.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::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::OffsetValueType = typename OffsetType::OffsetValueType |
Definition at line 88 of file itkConstShapedNeighborhoodIterator.h.
using itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::PixelType = typename TImage::PixelType |
Definition at line 77 of file itkConstShapedNeighborhoodIterator.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::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::RegionType = typename TImage::RegionType |
Definition at line 95 of file itkConstShapedNeighborhoodIterator.h.
using itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::Self = ConstShapedNeighborhoodIterator |
Standard class type aliases.
Definition at line 83 of file itkConstShapedNeighborhoodIterator.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::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::SizeValueType = typename SizeType::SizeValueType |
Definition at line 91 of file itkConstShapedNeighborhoodIterator.h.
using itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::Superclass = NeighborhoodIterator<TImage, TBoundaryCondition> |
Definition at line 84 of file itkConstShapedNeighborhoodIterator.h.
|
default |
Default constructor
|
overridedefault |
Virtual destructor
|
inline |
Constructor which establishes the region size, neighborhood, and image over which to walk.
Definition at line 262 of file itkConstShapedNeighborhoodIterator.h.
|
delete |
Copy constructor
|
protected |
Class is protected here so that it is not publicly accessible, but can be accessed by subclasses.. Add/Remove a neighborhood index to/from the active. Locations in the active list are the only accessible elements in the neighborhood. The argument is an index location calculated as an offset into a linear array which represents the image region defined by the radius of this iterator, with the smallest dimension as the fastest increasing index.
|
inline |
Add/Remove a neighborhood offset (from the center of the neighborhood) to/from the active list. Active list offsets are the only locations updated and accessible through the iterator.
Definition at line 332 of file itkConstShapedNeighborhoodIterator.h.
|
inline |
Activates a whole range of offsets, for example, an std::vector<OffsetType>, which could be from GenerateImageNeighborhoodOffsets(shape).
Definition at line 347 of file itkConstShapedNeighborhoodIterator.h.
|
inline |
Returns a const iterator for the neighborhood which points to the first pixel in the neighborhood.
Definition at line 241 of file itkConstShapedNeighborhoodIterator.h.
|
inline |
Removes all active pixels from this neighborhood.
Definition at line 358 of file itkConstShapedNeighborhoodIterator.h.
void itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::CreateActiveListFromNeighborhood | ( | const Neighborhood< TNeighborPixel, Self::Dimension > & | ) |
Add non-zero neighborhood offsets to the active list. The radius of the neighborhood must match the radius of the shaped iterator
|
inline |
Add non-zero neighborhood offsets to the active list. The radius of the neighborhood must match the radius of the shaped iterator
Definition at line 386 of file itkConstShapedNeighborhoodIterator.h.
|
protected |
|
inline |
Add/Remove a neighborhood offset (from the center of the neighborhood) to/from the active list. Active list offsets are the only locations updated and accessible through the iterator.
Definition at line 337 of file itkConstShapedNeighborhoodIterator.h.
|
inline |
Returns a const iterator for the neighborhood which points to the last pixel in the neighborhood.
Definition at line 249 of file itkConstShapedNeighborhoodIterator.h.
|
inline |
Returns the list of active indices in the neighborhood
Definition at line 367 of file itkConstShapedNeighborhoodIterator.h.
|
inline |
Returns the size of the list of active neighborhood indices.
Definition at line 374 of file itkConstShapedNeighborhoodIterator.h.
|
inline |
Returns a const iterator for the neighborhood which points to the first pixel in the neighborhood.
Definition at line 288 of file itkNeighborhood.h.
|
inline |
Returns a const iterator for the neighborhood which points to the first pixel in the neighborhood.
Definition at line 208 of file itkNeighborhood.h.
virtual NeighborIndexType itk::Neighborhood< TPixel, VDimension, TAllocator >::GetNeighborhoodIndex |
Returns a const iterator for the neighborhood which points to the first pixel in the neighborhood.
|
inline |
Returns the itk::Offset from the center of the Neighborhood to the requested neighbor index.
Definition at line 279 of file itkNeighborhood.h.
|
inline |
Returns the radius of the neighborhood.
Definition at line 129 of file itkNeighborhood.h.
|
inline |
Returns the radius of the neighborhood along a specified dimension.
Definition at line 137 of file itkNeighborhood.h.
Self& itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::operator++ | ( | ) |
Reimplements the operator++ method so that only active pixel locations are updated.
Self& itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::operator+= | ( | const OffsetType & | ) |
Addition of an itk::Offset. Note that this method does not do any bounds checking. Adding an offset that moves the iterator out of its assigned region will produce undefined results.
Self& itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::operator-- | ( | ) |
Reimplements the operator-- method so that only active pixel locations are updated.
Self& itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::operator-= | ( | const OffsetType & | ) |
Subtraction of an itk::Offset. Note that this method does not do any bounds checking. Subtracting an offset that moves the iterator out of its assigned region will produce undefined results.
|
inline |
Assignment operator
Definition at line 312 of file itkConstShapedNeighborhoodIterator.h.
|
inline |
Comparison operator.
Definition at line 120 of file itkNeighborhood.h.
|
inline |
Standard itk object method.
Definition at line 245 of file itkNeighborhood.h.
|
overridevirtual |
Standard itk print method
Reimplemented from itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >.
|
friend |
Definition at line 419 of file itkConstShapedNeighborhoodIterator.h.
|
staticconstexpr |
Save the image dimension.
Definition at line 80 of file itkConstShapedNeighborhoodIterator.h.
|
protected |
Definition at line 437 of file itkConstShapedNeighborhoodIterator.h.
|
protected |
Definition at line 436 of file itkConstShapedNeighborhoodIterator.h.