ITK
4.9.0
Insight Segmentation and Registration 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 |
Public Member Functions | |
ConstShapedNeighborhoodIterator (const SizeType &radius, const ImageType *ptr, const RegionType ®ion) | |
void | CreateActiveListFromNeighborhood (const NeighborhoodType &) |
const IndexListType & | GetActiveIndexList () const |
IndexListType::size_type | GetActiveIndexListSize () const |
Self & | operator++ () |
Self & | operator+= (const OffsetType &) |
Self & | operator-- () |
Self & | operator-= (const OffsetType &) |
virtual | ~ConstShapedNeighborhoodIterator () |
const ConstIterator & | Begin () const |
const ConstIterator & | End () const |
ConstShapedNeighborhoodIterator () | |
void | InitializeConstShapedNeighborhoodIterator () |
Self & | operator= (const Self &orig) |
virtual void | PrintSelf (std::ostream &, Indent) const |
virtual void | ActivateOffset (const OffsetType &off) |
virtual void | DeactivateOffset (const OffsetType &off) |
virtual void | ClearActiveList () |
Static Public Attributes | |
static const unsigned int | Dimension = TImage::ImageDimension |
Protected Member Functions | |
virtual void | ActivateIndex (NeighborIndexType) |
ConstShapedNeighborhoodIterator (const ConstShapedNeighborhoodIterator &) ITK_DELETE_FUNCTION | |
virtual void | DeactivateIndex (NeighborIndexType) |
Protected Attributes | |
IndexListType | m_ActiveIndexList |
bool | m_CenterIsActive |
ConstIterator | m_ConstBeginIterator |
ConstIterator | m_ConstEndIterator |
Friends | |
struct | ConstIterator |
typedef TBoundaryCondition itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::BoundaryConditionType |
Typedef for boundary condition type.
Definition at line 114 of file itkConstShapedNeighborhoodIterator.h.
typedef ImageBoundaryCondition< ImageType >* itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::ImageBoundaryConditionPointerType |
Typedef for generic boundary condition pointer
Definition at line 117 of file itkConstShapedNeighborhoodIterator.h.
typedef TImage itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::ImageType |
Typedef support for common objects
Definition at line 96 of file itkConstShapedNeighborhoodIterator.h.
typedef IndexListType::const_iterator itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::IndexListConstIterator |
Definition at line 111 of file itkConstShapedNeighborhoodIterator.h.
typedef IndexListType::iterator itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::IndexListIterator |
Definition at line 110 of file itkConstShapedNeighborhoodIterator.h.
typedef std::list< NeighborIndexType > itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::IndexListType |
An stl storage container type that can be sorted. The type used for the list of active offsets in the neighborhood.
Definition at line 108 of file itkConstShapedNeighborhoodIterator.h.
typedef Index< itkGetStaticConstMacro(Dimension) > itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::IndexType |
Typedef support for common objects
Definition at line 98 of file itkConstShapedNeighborhoodIterator.h.
typedef IndexType::IndexValueType itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::IndexValueType |
Typedef support for common objects
Definition at line 99 of file itkConstShapedNeighborhoodIterator.h.
typedef TImage::InternalPixelType itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::InternalPixelType |
Extract image type information.
Definition at line 78 of file itkConstShapedNeighborhoodIterator.h.
typedef Neighborhood< PixelType, itkGetStaticConstMacro(Dimension) > itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::NeighborhoodType |
Typedef support for common objects
Definition at line 101 of file itkConstShapedNeighborhoodIterator.h.
typedef NeighborhoodType::NeighborIndexType itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::NeighborIndexType |
Definition at line 104 of file itkConstShapedNeighborhoodIterator.h.
typedef Superclass::OffsetType itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::OffsetType |
Inherit typedefs from superclass
Definition at line 89 of file itkConstShapedNeighborhoodIterator.h.
typedef OffsetType::OffsetValueType itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::OffsetValueType |
Definition at line 90 of file itkConstShapedNeighborhoodIterator.h.
typedef TImage::PixelType itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::PixelType |
Definition at line 79 of file itkConstShapedNeighborhoodIterator.h.
typedef Superclass::RadiusType itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::RadiusType |
Definition at line 91 of file itkConstShapedNeighborhoodIterator.h.
typedef TImage::RegionType itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::RegionType |
Typedef support for common objects
Definition at line 97 of file itkConstShapedNeighborhoodIterator.h.
typedef ConstShapedNeighborhoodIterator itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::Self |
Standard class typedefs.
Definition at line 85 of file itkConstShapedNeighborhoodIterator.h.
typedef Superclass::SizeType itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::SizeType |
Definition at line 92 of file itkConstShapedNeighborhoodIterator.h.
typedef SizeType::SizeValueType itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::SizeValueType |
Definition at line 93 of file itkConstShapedNeighborhoodIterator.h.
typedef NeighborhoodIterator< TImage, TBoundaryCondition > itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::Superclass |
Definition at line 86 of file itkConstShapedNeighborhoodIterator.h.
|
inline |
Default constructor
Definition at line 219 of file itkConstShapedNeighborhoodIterator.h.
|
inlinevirtual |
Virtual destructor
Definition at line 235 of file itkConstShapedNeighborhoodIterator.h.
|
inline |
Constructor which establishes the region size, neighborhood, and image over which to walk.
Definition at line 239 of file itkConstShapedNeighborhoodIterator.h.
|
protected |
Copy constructor
|
protectedvirtual |
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.
Reimplemented in itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >, and itk::ShapedNeighborhoodIterator< ImageType >.
Referenced by itk::ShapedNeighborhoodIterator< ImageType >::ActivateIndex(), and itk::ConstShapedNeighborhoodIterator< ImageType, ZeroFluxNeumannBoundaryCondition< ImageType > >::ActivateOffset().
|
inlinevirtual |
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 308 of file itkConstShapedNeighborhoodIterator.h.
|
inline |
Returns a const iterator for the neighborhood which points to the first pixel in the neighborhood.
Definition at line 210 of file itkConstShapedNeighborhoodIterator.h.
|
inlinevirtual |
Removes all active pixels from this neighborhood.
Reimplemented in itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >, and itk::ShapedNeighborhoodIterator< ImageType >.
Definition at line 315 of file itkConstShapedNeighborhoodIterator.h.
Referenced by itk::ShapedNeighborhoodIterator< ImageType >::ClearActiveList().
void itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >::CreateActiveListFromNeighborhood | ( | const NeighborhoodType & | ) |
Add non-zero neighborhood offsets to the active list. The radius of the neighborhood must match the radius of the shaped iterator
|
protectedvirtual |
Reimplemented in itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >, and itk::ShapedNeighborhoodIterator< ImageType >.
Referenced by itk::ShapedNeighborhoodIterator< ImageType >::DeactivateIndex(), and itk::ConstShapedNeighborhoodIterator< ImageType, ZeroFluxNeumannBoundaryCondition< ImageType > >::DeactivateOffset().
|
inlinevirtual |
Assignment operator
Definition at line 310 of file itkConstShapedNeighborhoodIterator.h.
|
inline |
Returns a const iterator for the neighborhood which points to the last pixel in the neighborhood.
Definition at line 215 of file itkConstShapedNeighborhoodIterator.h.
|
inline |
Returns the list of active indices in the neighborhood
Definition at line 325 of file itkConstShapedNeighborhoodIterator.h.
|
inline |
Returns the size of the list of active neighborhood indices.
Definition at line 329 of file itkConstShapedNeighborhoodIterator.h.
|
inline |
Initialize the iterator.
Definition at line 225 of file itkConstShapedNeighborhoodIterator.h.
Referenced by itk::ConstShapedNeighborhoodIterator< ImageType, ZeroFluxNeumannBoundaryCondition< ImageType > >::ConstShapedNeighborhoodIterator().
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 286 of file itkConstShapedNeighborhoodIterator.h.
Referenced by itk::ShapedNeighborhoodIterator< ImageType >::operator=().
|
virtual |
Standard itk print method
Reimplemented from itk::NeighborhoodIterator< TImage, TBoundaryCondition >.
Reimplemented in itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >, and itk::ShapedNeighborhoodIterator< ImageType >.
|
friend |
Definition at line 361 of file itkConstShapedNeighborhoodIterator.h.
|
static |
Save the image dimension.
Definition at line 82 of file itkConstShapedNeighborhoodIterator.h.
|
protected |
Definition at line 378 of file itkConstShapedNeighborhoodIterator.h.
Referenced by itk::ConstShapedNeighborhoodIterator< ImageType, ZeroFluxNeumannBoundaryCondition< ImageType > >::ClearActiveList(), itk::ConstShapedNeighborhoodIterator< ImageType, ZeroFluxNeumannBoundaryCondition< ImageType > >::GetActiveIndexList(), itk::ConstShapedNeighborhoodIterator< ImageType, ZeroFluxNeumannBoundaryCondition< ImageType > >::GetActiveIndexListSize(), and itk::ConstShapedNeighborhoodIterator< ImageType, ZeroFluxNeumannBoundaryCondition< ImageType > >::operator=().
|
protected |
Definition at line 377 of file itkConstShapedNeighborhoodIterator.h.
Referenced by itk::ConstShapedNeighborhoodIterator< ImageType, ZeroFluxNeumannBoundaryCondition< ImageType > >::ClearActiveList(), itk::ConstShapedNeighborhoodIterator< ImageType, ZeroFluxNeumannBoundaryCondition< ImageType > >::InitializeConstShapedNeighborhoodIterator(), and itk::ConstShapedNeighborhoodIterator< ImageType, ZeroFluxNeumannBoundaryCondition< ImageType > >::operator=().
|
protected |
Definition at line 380 of file itkConstShapedNeighborhoodIterator.h.
Referenced by itk::ConstShapedNeighborhoodIterator< ImageType, ZeroFluxNeumannBoundaryCondition< ImageType > >::Begin(), itk::ConstShapedNeighborhoodIterator< ImageType, ZeroFluxNeumannBoundaryCondition< ImageType > >::ClearActiveList(), itk::ConstShapedNeighborhoodIterator< ImageType, ZeroFluxNeumannBoundaryCondition< ImageType > >::InitializeConstShapedNeighborhoodIterator(), and itk::ConstShapedNeighborhoodIterator< ImageType, ZeroFluxNeumannBoundaryCondition< ImageType > >::operator=().
|
protected |
Definition at line 379 of file itkConstShapedNeighborhoodIterator.h.
Referenced by itk::ConstShapedNeighborhoodIterator< ImageType, ZeroFluxNeumannBoundaryCondition< ImageType > >::ClearActiveList(), itk::ConstShapedNeighborhoodIterator< ImageType, ZeroFluxNeumannBoundaryCondition< ImageType > >::End(), itk::ShapedNeighborhoodIterator< ImageType >::End(), itk::ConstShapedNeighborhoodIterator< ImageType, ZeroFluxNeumannBoundaryCondition< ImageType > >::InitializeConstShapedNeighborhoodIterator(), and itk::ConstShapedNeighborhoodIterator< ImageType, ZeroFluxNeumannBoundaryCondition< ImageType > >::operator=().