#include <itkConstNeighborhoodIterator.h>
Inheritance diagram for itk::ConstNeighborhoodIterator:
Public Types | |
typedef TImage::InternalPixelType | InternalPixelType |
typedef TImage::PixelType | PixelType |
typedef ConstNeighborhoodIterator | Self |
typedef Neighborhood< InternalPixelType *, itkGetStaticConstMacro(Dimension) | Superclass ) |
typedef Superclass::OffsetType | OffsetType |
typedef OffsetType::OffsetValueType | OffsetValueType |
typedef Superclass::RadiusType | RadiusType |
typedef Superclass::SizeType | SizeType |
typedef Superclass::SizeValueType | SizeValueType |
typedef Superclass::Iterator | Iterator |
typedef Superclass::ConstIterator | ConstIterator |
typedef TBoundaryCondition | BoundaryConditionType |
typedef ImageBoundaryCondition< ImageType > * | ImageBoundaryConditionPointerType |
typedef TImage | ImageType |
typedef TImage::RegionType | RegionType |
typedef Index< itkGetStaticConstMacro(Dimension) | IndexType ) |
typedef IndexType::IndexValueType | IndexValueType |
typedef Neighborhood< PixelType, itkGetStaticConstMacro(Dimension) | NeighborhoodType ) |
Public Methods | |
itkStaticConstMacro (Dimension, unsigned int, TImage::ImageDimension) | |
ConstNeighborhoodIterator () | |
virtual | ~ConstNeighborhoodIterator () |
ConstNeighborhoodIterator (const ConstNeighborhoodIterator &) | |
Self & | operator= (const Self &orig) |
virtual void | PrintSelf (std::ostream &, Indent) const |
OffsetType | ComputeInternalIndex (unsigned int n) const |
IndexType | GetBound () const |
long | GetBound (unsigned int n) const |
const InternalPixelType * | GetCenterPointer () const |
PixelType | GetCenterPixel () const |
const ImageType * | GetImagePointer (void) const |
virtual IndexType | GetIndex (void) const |
virtual NeighborhoodType | GetNeighborhood () const |
virtual PixelType | GetNext (const unsigned axis, const unsigned i) const |
virtual PixelType | GetNext (const unsigned axis) const |
virtual PixelType | GetPrevious (const unsigned axis, const unsigned i) const |
virtual PixelType | GetPrevious (const unsigned axis) const |
virtual IndexType | GetIndex (const OffsetType &o) const |
virtual IndexType | GetIndex (const unsigned i) const |
RegionType | GetRegion () const |
IndexType | GetBeginIndex () const |
RegionType | GetBoundingBoxAsImageRegion () const |
OffsetType | GetWrapOffset () const |
OffsetValueType | GetWrapOffset (unsigned int n) const |
virtual void | GoToBegin () |
virtual void | GoToEnd () |
virtual void | Initialize (const SizeType &radius, const ImageType *ptr, const RegionType ®ion) |
virtual bool | IsAtBegin () const |
Self & | operator++ () |
Self & | operator-- () |
bool | operator== (const Self &it) const |
bool | operator!= (const Self &it) const |
bool | operator< (const Self &it) const |
bool | operator<= (const Self &it) const |
bool | operator> (const Self &it) const |
bool | operator>= (const Self &it) const |
Self & | operator+= (const OffsetType &) |
Self & | operator-= (const OffsetType &) |
OffsetType | operator- (const Self &b) |
bool | InBounds () const |
virtual void | OverrideBoundaryCondition (const ImageBoundaryConditionPointerType i) |
virtual void | ResetBoundaryCondition () |
void | SetBoundaryCondition (const TBoundaryCondition &c) |
const BoundaryConditionType * | GetBoundaryCondition () const |
ConstNeighborhoodIterator (const SizeType &radius, const ImageType *ptr, const RegionType ®ion) | |
virtual PixelType | GetPixel (const unsigned i) const |
virtual PixelType | GetPixel (const OffsetType &o) const |
virtual bool | IsAtEnd () const |
void | SetLocation (const IndexType &position) |
Protected Methods | |
virtual void | SetLoop (const IndexType &p) |
virtual void | SetBound (const SizeType &) |
virtual void | SetPixelPointers (const IndexType &) |
virtual void | SetBeginIndex (const IndexType &start) |
virtual void | SetEndIndex () |
Protected Attributes | |
IndexType | m_BeginIndex |
IndexType | m_Bound |
const InternalPixelType * | m_Begin |
ImageType::ConstPointer | m_ConstImage |
const InternalPixelType * | m_End |
IndexType | m_EndIndex |
IndexType | m_Loop |
RegionType | m_Region |
OffsetType | m_WrapOffset |
ImageBoundaryConditionPointerType | m_BoundaryCondition |
bool | m_InBounds [Dimension] |
IndexType | m_InnerBoundsLow |
IndexType | m_InnerBoundsHigh |
TBoundaryCondition | m_InternalBoundaryCondition |
bool | m_NeedToUseBoundaryCondition |
ConstNeighborhoodIterator implements the read-only methods of NeighborhoodIterator. It serves as a base class from which other iterators are derived. See NeighborhoodIterator for more complete information.
Definition at line 53 of file itkConstNeighborhoodIterator.h.
|
Typedef for boundary condition type. Reimplemented in itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >, itk::ConstSmartNeighborhoodIterator< TImage, TBoundaryCondition >, itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >, and itk::SmartNeighborhoodIterator< TImage, TBoundaryCondition >. Definition at line 87 of file itkConstNeighborhoodIterator.h. |
|
|
|
|
|
Typedef support for common objects Reimplemented in itk::ConstRandomAccessNeighborhoodIterator< TImage >, itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >, itk::ConstSmartNeighborhoodIterator< TImage, TBoundaryCondition >, and itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >. Definition at line 82 of file itkConstNeighborhoodIterator.h. |
|
|
|
|
|
|
|
|
|
|
|
|
|
Default constructor |
|
Virtual destructor Definition at line 96 of file itkConstNeighborhoodIterator.h. |
|
Copy constructor |
|
Constructor which establishes the region size, neighborhood, and image over which to walk. Definition at line 103 of file itkConstNeighborhoodIterator.h. |
|
Computes the internal, N-d offset of a pixel array position n from (0,0, ..., 0) in the "upper-left" corner of the neighborhood. |
|
Returns the N-dimensional starting index of the iterator's position on the image. Definition at line 211 of file itkConstNeighborhoodIterator.h. |
|
Returns the loop bound used to define the edge of a single dimension in the itk::Image region. Definition at line 131 of file itkConstNeighborhoodIterator.h. |
|
Returns the array of upper loop bounds used during iteration. Definition at line 126 of file itkConstNeighborhoodIterator.h. |
|
Definition at line 365 of file itkConstNeighborhoodIterator.h. |
|
Returns a bounding box for the region spanned by this neighborhood represented by an itk::ImageRegion |
|
Returns the pixel referenced at the center of the ConstNeighborhoodIterator. Definition at line 139 of file itkConstNeighborhoodIterator.h. |
|
Returns the pointer to the center pixel of the neighborhood. Definition at line 135 of file itkConstNeighborhoodIterator.h. |
|
Returns a smartpointer to the image on which this iterator operates. Definition at line 143 of file itkConstNeighborhoodIterator.h. |
|
Returns the image index for neighbor pixel at index i in the neighborhood. Definition at line 202 of file itkConstNeighborhoodIterator.h. |
|
Returns the image index for neighbor pixel at offset o from the center of the neighborhood. Definition at line 197 of file itkConstNeighborhoodIterator.h. |
|
Returns the N-dimensional index of the iterator's position in the image. Definition at line 148 of file itkConstNeighborhoodIterator.h. |
|
Virtual function that "dereferences" a ConstNeighborhoodIterator, returning a Neighborhood of pixel values. |
|
Returns the pixel value located one pixel distant from the neighborhood center in the specifed positive axis direction. No bounds checking is done on the size of the neighborhood. Definition at line 177 of file itkConstNeighborhoodIterator.h. |
|
Returns the pixel value located i pixels distant from the neighborhood center in the positive specified ``axis'' direction. No bounds checking is done on the size of the neighborhood. Definition at line 170 of file itkConstNeighborhoodIterator.h. |
|
Returns the pixel value located at the itk::Offset o from the center of the neighborhood. Definition at line 162 of file itkConstNeighborhoodIterator.h. |
|
Returns the pixel value located at a linear array location i. |
|
Returns the pixel value located one pixel distant from the neighborhood center in the specifed negative axis direction. No bounds checking is done on the size of the neighborhood. Definition at line 191 of file itkConstNeighborhoodIterator.h. |
|
Returns the pixel value located i pixels distant from the neighborhood center in the negative specified ``axis'' direction. No bounds checking is done on the size of the neighborhood. Definition at line 184 of file itkConstNeighborhoodIterator.h. |
|
Returns the region of iteration. Definition at line 206 of file itkConstNeighborhoodIterator.h. |
|
Returns the internal offset associated with wrapping around a single dimension's region boundary in the itk::Image. An offset for each dimension is necessary to shift pointers when wrapping around region edges because region memory is not necessarily contiguous within the buffer. Definition at line 227 of file itkConstNeighborhoodIterator.h. |
|
Returns the offsets used to wrap across dimensional boundaries. Definition at line 219 of file itkConstNeighborhoodIterator.h. |
|
Virtual method for rewinding the iterator to its beginning pixel. This is useful for writing functions which take neighborhood iterators of arbitrary type and must use virtual functions. |
|
Virtual method for sending the iterator to one past the last pixel in its region. |
|
Returns false if the iterator overlaps region boundaries, true otherwise. Also updates an internal boolean array indicating which of the iterator's faces are out of bounds. |
|
Initializes the iterator to walk a particular image and a particular region of that image. |
|
Virtual method for determining whether the the iterator is at the beginning of its iteration region. Definition at line 246 of file itkConstNeighborhoodIterator.h. |
|
Virtual method for determining whether the the iterator has reached the end of its iteration region. Definition at line 251 of file itkConstNeighborhoodIterator.h. |
|
Save the image dimension. Reimplemented in itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >, and itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >. |
|
Returns a boolean != comparison of the memory addresses of the center elements of two ConstNeighborhoodIterators of like pixel type and dimensionality. The radii of the iterators are ignored. Reimplemented from itk::Neighborhood< TImage::InternalPixelType *,::itk::GetImageDimension< TImage >::ImageDimension >. Definition at line 289 of file itkConstNeighborhoodIterator.h. |
|
Increments the pointers in the ConstNeighborhoodIterator, wraps across boundaries automatically, accounting for the disparity in the buffer size and the region size of the image. Reimplemented in itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >. |
|
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. Reimplemented in itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >. |
|
Distance between two iterators Definition at line 339 of file itkConstNeighborhoodIterator.h. |
|
Decrements the pointers in the ConstNeighborhoodIterator, wraps across boundaries automatically, accounting for the disparity in the buffer size and the region size of the image. Reimplemented in itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >. |
|
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. Reimplemented in itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >. |
|
Returns a boolean < comparison of the memory addresses of the center elements of two ConstNeighborhoodIterators of like pixel type and dimensionality. The radii of the iterators are ignored. Definition at line 295 of file itkConstNeighborhoodIterator.h. |
|
Returns a boolean < comparison of the memory addresses of the center elements of two ConstNeighborhoodIterators of like pixel type and dimensionality. The radii of the iterators are ignored. Definition at line 301 of file itkConstNeighborhoodIterator.h. |
|
|
Returns a boolean == comparison of the memory addresses of the center elements of two ConstNeighborhoodIterators of like pixel type and dimensionality. The radii of the iterators are ignored. Reimplemented from itk::Neighborhood< TImage::InternalPixelType *,::itk::GetImageDimension< TImage >::ImageDimension >. Definition at line 283 of file itkConstNeighborhoodIterator.h. |
|
Returns a boolean > comparison of the memory addresses of the center elements of two ConstNeighborhoodIterators of like pixel type and dimensionality. The radii of the iterators are ignored. Definition at line 307 of file itkConstNeighborhoodIterator.h. |
|
Returns a boolean >= comparison of the memory addresses of the center elements of two ConstNeighborhoodIterators of like pixel type and dimensionality. The radii of the iterators are ignored. Definition at line 313 of file itkConstNeighborhoodIterator.h. |
|
Allows a user to override the internal boundary condition. Care should be taken to ensure that the overriding boundary condition is a persistent object during the time it is referenced. The overriding condition can be of a different type than the default type as long as it is a subclass of ImageBoundaryCondition. Definition at line 352 of file itkConstNeighborhoodIterator.h. |
|
|
Resets the boundary condition to the internal, default conditions specified by the template parameter. Definition at line 357 of file itkConstNeighborhoodIterator.h. |
|
Default method for setting the index of the first pixel in the iteration region. Definition at line 388 of file itkConstNeighborhoodIterator.h. |
|
Virtual method for setting internal loop boundaries. This method must be defined in each subclass because each subclass may handle loop boundaries differently. |
|
Sets the internal, default boundary condition. Definition at line 361 of file itkConstNeighborhoodIterator.h. |
|
Default method for setting the index of the first pixel in the iteration region. |
|
This method positions the iterator at an indexed location in the image. SetLocation should _NOT_ be used to update the position of the iterator during iteration, only for initializing it to a position prior to iteration. This method is not optimized for speed. Definition at line 320 of file itkConstNeighborhoodIterator.h. |
|
Default method for setting the coordinate location of the iterator. Loop indicies correspond to the actual Image region index. Definition at line 372 of file itkConstNeighborhoodIterator.h. |
|
Default method for setting the values of the internal pointers to itk::Image memory buffer locations. This method should generally only be called when the iterator is initialized.
|
|
A pointer to the first pixel in the iteration region. Definition at line 403 of file itkConstNeighborhoodIterator.h. |
|
The starting index for iteration within the itk::Image region on which this ConstNeighborhoodIterator is defined. Definition at line 397 of file itkConstNeighborhoodIterator.h. |
|
An array of upper looping boundaries used during iteration. Definition at line 400 of file itkConstNeighborhoodIterator.h. |
|
Pointer to the actual boundary condition that will be used. By default this points to m_BoundaryCondition, but OverrideBoundaryCondition allows a user to point this variable an external boundary condition. Definition at line 433 of file itkConstNeighborhoodIterator.h. |
|
The image on which iteration is defined. Definition at line 406 of file itkConstNeighborhoodIterator.h. |
|
Definition at line 411 of file itkConstNeighborhoodIterator.h. |
|
The end index for iteration within the itk::Image region on which this ConstNeighborhoodIterator is defined. Definition at line 415 of file itkConstNeighborhoodIterator.h. |
|
Denotes which of the iterators dimensional sides spill outside region of interest boundaries. Definition at line 437 of file itkConstNeighborhoodIterator.h. |
|
Upper threshold of in-bounds loop counter values. Definition at line 443 of file itkConstNeighborhoodIterator.h. |
|
Lower threshold of in-bounds loop counter values. Definition at line 440 of file itkConstNeighborhoodIterator.h. |
|
Default boundary condition. Definition at line 446 of file itkConstNeighborhoodIterator.h. |
|
Array of loop counters used during iteration. Definition at line 418 of file itkConstNeighborhoodIterator.h. |
|
Does the specified region need to worry about boundary conditions? * Definition at line 449 of file itkConstNeighborhoodIterator.h. |
|
The region over which iteration is defined. Definition at line 421 of file itkConstNeighborhoodIterator.h. |
|
The internal array of offsets that provide support for regions of interest. An offset for each dimension is necessary to shift pointers when wrapping around region edges because region memory is not necessarily contiguous within the buffer. Definition at line 427 of file itkConstNeighborhoodIterator.h. |