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 148 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, ZeroFluxNeumannBoundaryCondition< TImage > > | |
static constexpr unsigned int | Dimension |
Protected Types | |
using | NeighborIndexType = typename NeighborhoodType::NeighborIndexType |
Protected Attributes | |
friend | Superclass |
Protected Attributes inherited from itk::ConstShapedNeighborhoodIterator< TImage, ZeroFluxNeumannBoundaryCondition< TImage > > | |
IndexListType | m_ActiveIndexList |
bool | m_CenterIsActive |
Friends | |
struct | ConstIterator |
Additional Inherited Members | |
Protected Member Functions inherited from itk::ConstShapedNeighborhoodIterator< TImage, ZeroFluxNeumannBoundaryCondition< TImage > > | |
void | ActivateIndex (NeighborIndexType) |
void | DeactivateIndex (NeighborIndexType) |
void | SetCenterPixel (const PixelType &p) |
void | SetPixel (const OffsetType o, const PixelType &v) |
void | SetPixel (const unsigned int i, const PixelType &v) |
void | SetPixel (const unsigned int i, const PixelType &v, bool &status) |
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 >::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::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >::InternalPixelType = typename TImage::InternalPixelType |
Extract image type information.
Definition at line 153 of file itkShapedNeighborhoodIterator.h.
using itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::NeighborhoodType = Neighborhood<PixelType, Self::Dimension> |
Definition at line 98 of file itkConstShapedNeighborhoodIterator.h.
|
protected |
Definition at line 100 of file itkConstShapedNeighborhoodIterator.h.
using itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >::OffsetValueType = typename OffsetType::OffsetValueType |
Definition at line 165 of file itkShapedNeighborhoodIterator.h.
using itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >::PixelType = typename TImage::PixelType |
Definition at line 154 of file itkShapedNeighborhoodIterator.h.
using itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::RegionType = typename TImage::RegionType |
Definition at line 95 of file itkConstShapedNeighborhoodIterator.h.
using itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >::Self = ShapedNeighborhoodIterator |
Standard class type aliases.
Definition at line 160 of file itkShapedNeighborhoodIterator.h.
using itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::SizeValueType = typename SizeType::SizeValueType |
Definition at line 91 of file itkConstShapedNeighborhoodIterator.h.
using itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >::Superclass = ConstShapedNeighborhoodIterator<TImage, TBoundaryCondition> |
Definition at line 161 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 221 of file itkShapedNeighborhoodIterator.h.
|
inline |
Returns a const iterator for the neighborhood which points to the first pixel in the neighborhood.
Definition at line 243 of file itkShapedNeighborhoodIterator.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 |
Returns a const iterator for the neighborhood which points to the first pixel in the neighborhood.
Definition at line 248 of file itkShapedNeighborhoodIterator.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 |
Assignment operator
Definition at line 233 of file itkShapedNeighborhoodIterator.h.
|
inline |
Returns the central pixel of the neighborhood.
Definition at line 417 of file itkNeighborhoodIterator.h.
|
inline |
Set the pixel at offset o from the neighborhood center
Definition at line 416 of file itkNeighborhoodIterator.h.
void itk::NeighborhoodIterator< TImage, TBoundaryCondition >::SetPixel | ( | const unsigned int | i, |
const PixelType & | v | ||
) |
Set the pixel at the ith location.
void itk::NeighborhoodIterator< TImage, TBoundaryCondition >::SetPixel | ( | const unsigned int | i, |
const PixelType & | v, | ||
bool & | status | ||
) |
Special SetPixel method which quietly ignores out-of-bounds attempts. Sets status TRUE if pixel has been set, FALSE otherwise.
|
friend |
Definition at line 419 of file itkConstShapedNeighborhoodIterator.h.
|
staticconstexpr |
Save the image dimension.
Definition at line 157 of file itkShapedNeighborhoodIterator.h.
|
protected |
Definition at line 258 of file itkShapedNeighborhoodIterator.h.