ITK
5.0.0
Insight Segmentation and Registration Toolkit
|
#include <itkConstNeighborhoodIterator.h>
Const version of NeighborhoodIterator, defining iteration of a local N-dimensional neighborhood of pixels across an itk::Image.
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 51 of file itkConstNeighborhoodIterator.h.
Public Member Functions | |
OffsetType | ComputeInternalIndex (const NeighborIndexType n) const |
ConstNeighborhoodIterator () | |
ConstNeighborhoodIterator (const ConstNeighborhoodIterator &) | |
IndexType | GetBeginIndex () const |
IndexType | GetBound () const |
IndexValueType | GetBound (NeighborIndexType n) const |
ImageBoundaryConditionPointerType | GetBoundaryCondition () const |
RegionType | GetBoundingBoxAsImageRegion () const |
PixelType | GetCenterPixel () const |
const InternalPixelType * | GetCenterPointer () const |
IndexType | GetFastIndexPlusOffset (const OffsetType &o) const |
const ImageType * | GetImagePointer () const |
ITK_ITERATOR_VIRTUAL IndexType | GetIndex () const ITK_ITERATOR_FINAL |
ITK_ITERATOR_VIRTUAL IndexType | GetIndex (const OffsetType &o) const ITK_ITERATOR_FINAL |
ITK_ITERATOR_VIRTUAL IndexType | GetIndex (NeighborIndexType i) const ITK_ITERATOR_FINAL |
bool | GetNeedToUseBoundaryCondition () const |
ITK_ITERATOR_VIRTUAL NeighborhoodType | GetNeighborhood () const ITK_ITERATOR_FINAL |
ITK_ITERATOR_VIRTUAL PixelType | GetNext (const unsigned axis, NeighborIndexType i) const ITK_ITERATOR_FINAL |
ITK_ITERATOR_VIRTUAL PixelType | GetNext (const unsigned axis) const ITK_ITERATOR_FINAL |
ITK_ITERATOR_VIRTUAL PixelType | GetPixel (const NeighborIndexType i) const ITK_ITERATOR_FINAL |
ITK_ITERATOR_VIRTUAL PixelType | GetPixel (NeighborIndexType i, bool &IsInBounds) const ITK_ITERATOR_FINAL |
ITK_ITERATOR_VIRTUAL PixelType | GetPixel (const OffsetType &o) const ITK_ITERATOR_FINAL |
ITK_ITERATOR_VIRTUAL PixelType | GetPixel (const OffsetType &o, bool &IsInBounds) const ITK_ITERATOR_FINAL |
ITK_ITERATOR_VIRTUAL PixelType | GetPrevious (const unsigned axis, NeighborIndexType i) const ITK_ITERATOR_FINAL |
ITK_ITERATOR_VIRTUAL PixelType | GetPrevious (const unsigned axis) const ITK_ITERATOR_FINAL |
RegionType | GetRegion () const |
OffsetType | GetWrapOffset () const |
OffsetValueType | GetWrapOffset (NeighborIndexType n) const |
ITK_ITERATOR_VIRTUAL void | GoToBegin () ITK_ITERATOR_FINAL |
ITK_ITERATOR_VIRTUAL void | GoToEnd () ITK_ITERATOR_FINAL |
bool | InBounds () const |
bool | IndexInBounds (const NeighborIndexType n, OffsetType &internalIndex, OffsetType &offset) const |
bool | IndexInBounds (const NeighborIndexType n) const |
ITK_ITERATOR_VIRTUAL void | Initialize (const SizeType &radius, const ImageType *ptr, const RegionType ®ion) ITK_ITERATOR_FINAL |
ITK_ITERATOR_VIRTUAL bool | IsAtBegin () const ITK_ITERATOR_FINAL |
void | NeedToUseBoundaryConditionOff () |
void | NeedToUseBoundaryConditionOn () |
bool | operator!= (const Self &it) const |
Self & | operator++ () |
Self & | operator+= (const OffsetType &) |
OffsetType | operator- (const Self &b) |
Self & | operator-- () |
Self & | operator-= (const OffsetType &) |
bool | operator< (const Self &it) const |
bool | operator<= (const Self &it) const |
Self & | operator= (const Self &orig) |
bool | operator== (const Self &it) const |
bool | operator> (const Self &it) const |
bool | operator>= (const Self &it) const |
ITK_ITERATOR_VIRTUAL void | OverrideBoundaryCondition (const ImageBoundaryConditionPointerType i) ITK_ITERATOR_FINAL |
void | PrintSelf (std::ostream &, Indent) const override |
ITK_ITERATOR_VIRTUAL void | ResetBoundaryCondition () ITK_ITERATOR_FINAL |
void | SetBoundaryCondition (const TBoundaryCondition &c) |
void | SetNeedToUseBoundaryCondition (bool b) |
ITK_ITERATOR_VIRTUAL void | SetRegion (const RegionType ®ion) ITK_ITERATOR_FINAL |
~ConstNeighborhoodIterator () override=default | |
ConstNeighborhoodIterator (const SizeType &radius, const ImageType *ptr, const RegionType ®ion) | |
ITK_ITERATOR_VIRTUAL bool | IsAtEnd () const ITK_ITERATOR_FINAL |
void | SetLocation (const IndexType &position) |
Public Member Functions inherited from itk::Neighborhood< TImage::InternalPixelType *, TImage::ImageDimension > | |
NeighborIndexType | GetCenterNeighborhoodIndex () const |
TImage::InternalPixelType * | GetCenterValue () const |
virtual NeighborIndexType | GetNeighborhoodIndex (const OffsetType &) const |
OffsetType | GetOffset (NeighborIndexType i) const |
const SizeType | GetRadius () const |
SizeValueType | GetRadius (DimensionValueType n) const |
SizeValueType | GetSize (DimensionValueType n) const |
SizeType | GetSize () const |
std::slice | GetSlice (unsigned int) const |
OffsetValueType | GetStride (DimensionValueType axis) const |
itkTypeMacroNoParent (Neighborhood) | |
Neighborhood (const Self &other) | |
Neighborhood (Self &&)=default | |
bool | operator!= (const Self &other) const |
Self & | operator= (const Self &other) |
Self & | operator= (Self &&)=default |
bool | operator== (const Self &other) const |
void | Print (std::ostream &os) const |
void | SetRadius (const SizeType &) |
void | SetRadius (const SizeValueType) |
NeighborIndexType | Size () const |
virtual | ~Neighborhood ()=default |
Neighborhood () | |
Iterator | End () |
ConstIterator | End () const |
Iterator | Begin () |
ConstIterator | Begin () const |
TImage::InternalPixelType *& | operator[] (NeighborIndexType i) |
const TImage::InternalPixelType *& | operator[] (NeighborIndexType i) const |
TImage::InternalPixelType *& | GetElement (NeighborIndexType i) |
TImage::InternalPixelType *& | operator[] (const OffsetType &o) |
const TImage::InternalPixelType *& | operator[] (const OffsetType &o) const |
void | SetRadius (const SizeValueType *rad) |
AllocatorType & | GetBufferReference () |
const AllocatorType & | GetBufferReference () const |
Static Public Attributes | |
static constexpr DimensionValueType | Dimension = TImage::ImageDimension |
Static Public Attributes inherited from itk::Neighborhood< TImage::InternalPixelType *, TImage::ImageDimension > | |
static constexpr unsigned int | NeighborhoodDimension |
Protected Member Functions | |
ITK_ITERATOR_VIRTUAL void | SetBeginIndex (const IndexType &start) ITK_ITERATOR_FINAL |
ITK_ITERATOR_VIRTUAL void | SetBound (const SizeType &) ITK_ITERATOR_FINAL |
ITK_ITERATOR_VIRTUAL void | SetEndIndex () ITK_ITERATOR_FINAL |
ITK_ITERATOR_VIRTUAL void | SetLoop (const IndexType &p) ITK_ITERATOR_FINAL |
ITK_ITERATOR_VIRTUAL void | SetPixelPointers (const IndexType &) ITK_ITERATOR_FINAL |
Protected Member Functions inherited from itk::Neighborhood< TImage::InternalPixelType *, TImage::ImageDimension > | |
virtual void | Allocate (NeighborIndexType i) |
virtual void | ComputeNeighborhoodOffsetTable () |
virtual void | ComputeNeighborhoodStrideTable () |
void | SetSize () |
Protected Attributes | |
const InternalPixelType * | m_Begin |
IndexType | m_BeginIndex |
IndexType | m_Bound |
ImageBoundaryConditionPointerType | m_BoundaryCondition |
ImageType::ConstWeakPointer | m_ConstImage |
const InternalPixelType * | m_End |
IndexType | m_EndIndex |
bool | m_InBounds [Dimension] |
IndexType | m_InnerBoundsHigh |
IndexType | m_InnerBoundsLow |
TBoundaryCondition | m_InternalBoundaryCondition |
bool | m_IsInBounds {false} |
bool | m_IsInBoundsValid {false} |
IndexType | m_Loop |
bool | m_NeedToUseBoundaryCondition {false} |
NeighborhoodAccessorFunctorType | m_NeighborhoodAccessorFunctor |
RegionType | m_Region |
OffsetType | m_WrapOffset |
using itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::BoundaryConditionType = TBoundaryCondition |
Typedef for boundary condition type.
Definition at line 86 of file itkConstNeighborhoodIterator.h.
using itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::ConstIterator = typename Superclass::ConstIterator |
Definition at line 76 of file itkConstNeighborhoodIterator.h.
using itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::DimensionValueType = unsigned int |
Type used to refer to space dimensions
Definition at line 61 of file itkConstNeighborhoodIterator.h.
using itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::ImageBoundaryConditionConstPointerType = const ImageBoundaryCondition<ImageType, OutputImageType> * |
Definition at line 100 of file itkConstNeighborhoodIterator.h.
using itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::ImageBoundaryConditionPointerType = ImageBoundaryCondition<ImageType, OutputImageType> * |
Typedef for generic boundary condition pointer
Definition at line 99 of file itkConstNeighborhoodIterator.h.
using itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::ImageType = TImage |
Typedef support for common objects
Definition at line 79 of file itkConstNeighborhoodIterator.h.
using itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::IndexType = Index< Self::Dimension > |
Definition at line 81 of file itkConstNeighborhoodIterator.h.
using itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::InternalPixelType = typename TImage::InternalPixelType |
Extract image type information.
Definition at line 57 of file itkConstNeighborhoodIterator.h.
using itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::Iterator = typename Superclass::Iterator |
Definition at line 75 of file itkConstNeighborhoodIterator.h.
using itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::NeighborhoodAccessorFunctorType = typename ImageType::NeighborhoodAccessorFunctorType |
Typedef for the functor used to access neighborhoods of pixel pointers. This is obtained as a trait from the image and is different for Image and VectorImage.
Definition at line 96 of file itkConstNeighborhoodIterator.h.
using itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::NeighborhoodType = Neighborhood< PixelType, Self::Dimension > |
Definition at line 82 of file itkConstNeighborhoodIterator.h.
using itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::NeighborIndexType = typename NeighborhoodType::NeighborIndexType |
Type used to refer to the elements in the list of neighbor pixels.
Definition at line 91 of file itkConstNeighborhoodIterator.h.
using itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::OffsetType = typename Superclass::OffsetType |
Inherit type alias from superclass
Definition at line 72 of file itkConstNeighborhoodIterator.h.
using itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::OutputImageType = typename BoundaryConditionType::OutputImageType |
Definition at line 88 of file itkConstNeighborhoodIterator.h.
using itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::PixelType = typename TImage::PixelType |
Definition at line 58 of file itkConstNeighborhoodIterator.h.
using itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::RadiusType = typename Superclass::RadiusType |
Definition at line 73 of file itkConstNeighborhoodIterator.h.
using itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::RegionType = typename TImage::RegionType |
Definition at line 80 of file itkConstNeighborhoodIterator.h.
using itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::Self = ConstNeighborhoodIterator |
Standard class type aliases.
Definition at line 67 of file itkConstNeighborhoodIterator.h.
using itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::SizeType = typename Superclass::SizeType |
Definition at line 74 of file itkConstNeighborhoodIterator.h.
using itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::Superclass = Neighborhood< InternalPixelType *, Self::Dimension > |
Definition at line 69 of file itkConstNeighborhoodIterator.h.
itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::ConstNeighborhoodIterator | ( | ) |
Default constructor
|
overridedefault |
Virtual destructor
itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::ConstNeighborhoodIterator | ( | const ConstNeighborhoodIterator< TImage, TBoundaryCondition > & | ) |
Copy constructor
|
inline |
Constructor which establishes the region size, neighborhood, and image over which to walk.
Definition at line 113 of file itkConstNeighborhoodIterator.h.
OffsetType itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::ComputeInternalIndex | ( | const NeighborIndexType | n | ) | const |
Computes the internal, N-d offset of a pixel array position n from (0,0, ..., 0) in the "upper-left" corner of the neighborhood.
|
inline |
Returns the N-dimensional starting index of the iterator's position on the image.
Definition at line 263 of file itkConstNeighborhoodIterator.h.
|
inline |
Returns the array of upper loop bounds used during iteration.
Definition at line 137 of file itkConstNeighborhoodIterator.h.
|
inline |
Returns the loop bound used to define the edge of a single dimension in the itk::Image region.
Definition at line 142 of file itkConstNeighborhoodIterator.h.
|
inline |
Definition at line 432 of file itkConstNeighborhoodIterator.h.
RegionType itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::GetBoundingBoxAsImageRegion | ( | ) | const |
Returns a bounding box for the region spanned by this neighborhood represented by an itk::ImageRegion
|
inline |
Returns the pixel referenced at the center of the ConstNeighborhoodIterator.
Definition at line 151 of file itkConstNeighborhoodIterator.h.
|
inline |
Returns the pointer to the center pixel of the neighborhood.
Definition at line 146 of file itkConstNeighborhoodIterator.h.
Referenced by itk::ConstNeighborhoodIterator< TSparseImageType >::operator!=(), itk::ConstNeighborhoodIterator< TSparseImageType >::operator<(), itk::ConstNeighborhoodIterator< TSparseImageType >::operator<=(), itk::ConstNeighborhoodIterator< TSparseImageType >::operator==(), itk::ConstNeighborhoodIterator< TSparseImageType >::operator>(), and itk::ConstNeighborhoodIterator< TSparseImageType >::operator>=().
|
inline |
Definition at line 163 of file itkConstNeighborhoodIterator.h.
|
inline |
Returns a smartpointer to the image on which this iterator operates.
Definition at line 155 of file itkConstNeighborhoodIterator.h.
|
inline |
Returns the N-dimensional index of the iterator's position in the image.
Definition at line 160 of file itkConstNeighborhoodIterator.h.
|
inline |
Returns the image index for neighbor pixel at offset o from the center of the neighborhood.
Definition at line 249 of file itkConstNeighborhoodIterator.h.
|
inline |
Returns the image index for neighbor pixel at index i in the neighborhood.
Definition at line 254 of file itkConstNeighborhoodIterator.h.
|
inline |
Definition at line 451 of file itkConstNeighborhoodIterator.h.
ITK_ITERATOR_VIRTUAL NeighborhoodType itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::GetNeighborhood | ( | ) | const |
Function that "dereferences" a ConstNeighborhoodIterator, returning a Neighborhood of pixel values.
|
inline |
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 214 of file itkConstNeighborhoodIterator.h.
Referenced by itk::VectorGradientMagnitudeImageFilter< TInputImage, TRealType, TOutputImage >::EvaluateAtNeighborhood(), itk::VectorGradientMagnitudeImageFilter< TInputImage, TRealType, TOutputImage >::EvaluateAtNeighborhood3D(), and itk::VectorGradientMagnitudeImageFilter< TInputImage, TRealType, TOutputImage >::NonPCEvaluateAtNeighborhood().
|
inline |
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 223 of file itkConstNeighborhoodIterator.h.
|
inline |
Returns the pixel value located at a linear array location i.
Definition at line 171 of file itkConstNeighborhoodIterator.h.
ITK_ITERATOR_VIRTUAL PixelType itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::GetPixel | ( | NeighborIndexType | i, |
bool & | IsInBounds | ||
) | const |
Return the pixel value located at a linear array location i. Sets "IsInBounds" to true if the location is inside the image and the pixel value returned is an actual pixel in the image. Sets "IsInBounds" to false if the location is outside the image and the pixel value returned is a boundary condition.
|
inline |
Returns the pixel value located at the itk::Offset o from the center of the neighborhood.
Definition at line 195 of file itkConstNeighborhoodIterator.h.
|
inline |
Returns the pixel value located at the itk::Offset o from the center of the neighborhood. Sets "IsInBounds" to true if the offset is inside the image and the pixel value returned is an actual pixel in the image. Sets "IsInBounds" to false if the offset is outside the image and the pixel value returned is a boundary condition.
Definition at line 207 of file itkConstNeighborhoodIterator.h.
|
inline |
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 232 of file itkConstNeighborhoodIterator.h.
Referenced by itk::VectorGradientMagnitudeImageFilter< TInputImage, TRealType, TOutputImage >::EvaluateAtNeighborhood(), itk::VectorGradientMagnitudeImageFilter< TInputImage, TRealType, TOutputImage >::EvaluateAtNeighborhood3D(), and itk::VectorGradientMagnitudeImageFilter< TInputImage, TRealType, TOutputImage >::NonPCEvaluateAtNeighborhood().
|
inline |
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 241 of file itkConstNeighborhoodIterator.h.
|
inline |
Returns the region of iteration.
Definition at line 258 of file itkConstNeighborhoodIterator.h.
|
inline |
Returns the offsets used to wrap across dimensional boundaries.
Definition at line 271 of file itkConstNeighborhoodIterator.h.
|
inline |
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 279 of file itkConstNeighborhoodIterator.h.
ITK_ITERATOR_VIRTUAL void itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::GoToBegin | ( | ) |
Method for rewinding the iterator to its beginning pixel.
Referenced by itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::Begin().
ITK_ITERATOR_VIRTUAL void itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::GoToEnd | ( | ) |
Method for sending the iterator to one past the last pixel in its region.
Referenced by itk::Statistics::ImageToNeighborhoodSampleAdaptor< TImage, TBoundaryCondition >::End().
bool itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::InBounds | ( | ) | const |
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.
bool itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::IndexInBounds | ( | const NeighborIndexType | n, |
OffsetType & | internalIndex, | ||
OffsetType & | offset | ||
) | const |
Returns true if the neighborhood index is within region boundaries, false otherwise. If false, then internalIndex and offset are calculated. Otherwise their values are left unchanged. Also updates an internal boolean array indicating which of the iterator's faces are out of bounds.
n | - linear neighborhood index. |
internalIndex | - calculated for index n only when the neighborhood is not completely within region boundaries. |
offset | - per-dimension offsets for index n to nearest boundary index, calculate only when the neighborhood is not completely within region boundaries. |
bool itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::IndexInBounds | ( | const NeighborIndexType | n | ) | const |
Returns true if the neighborhood index is within region boundaries, false otherwise.
ITK_ITERATOR_VIRTUAL void itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::Initialize | ( | const SizeType & | radius, |
const ImageType * | ptr, | ||
const RegionType & | region | ||
) |
Initializes the iterator to walk a particular image and a particular region of that image.
|
inline |
Method for determining whether the iterator is at the beginning of its iteration region.
Definition at line 296 of file itkConstNeighborhoodIterator.h.
|
inline |
Method for determining whether the iterator has reached the end of its iteration region.
Definition at line 301 of file itkConstNeighborhoodIterator.h.
|
inline |
Definition at line 441 of file itkConstNeighborhoodIterator.h.
|
inline |
Definition at line 436 of file itkConstNeighborhoodIterator.h.
|
inline |
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 339 of file itkConstNeighborhoodIterator.h.
Self& itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::operator++ | ( | ) |
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.
Self& itk::ConstNeighborhoodIterator< 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.
|
inline |
Distance between two iterators
Definition at line 388 of file itkConstNeighborhoodIterator.h.
Self& itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::operator-- | ( | ) |
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.
Self& itk::ConstNeighborhoodIterator< 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 |
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 345 of file itkConstNeighborhoodIterator.h.
|
inline |
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 351 of file itkConstNeighborhoodIterator.h.
Self& itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::operator= | ( | const Self & | orig | ) |
Assignment operator
|
inline |
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 333 of file itkConstNeighborhoodIterator.h.
|
inline |
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 357 of file itkConstNeighborhoodIterator.h.
|
inline |
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 363 of file itkConstNeighborhoodIterator.h.
|
inline |
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 418 of file itkConstNeighborhoodIterator.h.
|
overridevirtual |
Standard itk print method
Reimplemented from itk::Neighborhood< TImage::InternalPixelType *, TImage::ImageDimension >.
Reimplemented in itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >, itk::ConstShapedNeighborhoodIterator< ImageType, ZeroFluxNeumannBoundaryCondition< ImageType > >, itk::NeighborhoodIterator< TImage, TBoundaryCondition >, itk::NeighborhoodIterator< ImageType, ZeroFluxNeumannBoundaryCondition< ImageType > >, itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >, and itk::ShapedNeighborhoodIterator< ImageType >.
|
inline |
Resets the boundary condition to the internal, default conditions specified by the template parameter.
Definition at line 424 of file itkConstNeighborhoodIterator.h.
|
inlineprotected |
Default method for setting the index of the first pixel in the iteration region.
Definition at line 479 of file itkConstNeighborhoodIterator.h.
|
protected |
Method for setting internal loop boundaries. This method must be defined in each subclass because each subclass may handle loop boundaries differently.
|
inline |
Sets the internal, default boundary condition.
Definition at line 428 of file itkConstNeighborhoodIterator.h.
|
protected |
Default method for setting the index of the first pixel in the iteration region.
|
inline |
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 370 of file itkConstNeighborhoodIterator.h.
|
inlineprotected |
Default method for setting the coordinate location of the iterator. Loop indices correspond to the actual Image region index.
Definition at line 463 of file itkConstNeighborhoodIterator.h.
|
inline |
Definition at line 446 of file itkConstNeighborhoodIterator.h.
|
protected |
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.
ITK_ITERATOR_VIRTUAL void itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::SetRegion | ( | const RegionType & | region | ) |
Set the region to iterate over.
|
static |
Save the image dimension.
Definition at line 64 of file itkConstNeighborhoodIterator.h.
|
protected |
A pointer to the first pixel in the iteration region.
Definition at line 494 of file itkConstNeighborhoodIterator.h.
|
protected |
The starting index for iteration within the itk::Image region on which this ConstNeighborhoodIterator is defined.
Definition at line 488 of file itkConstNeighborhoodIterator.h.
|
protected |
An array of upper looping boundaries used during iteration.
Definition at line 491 of file itkConstNeighborhoodIterator.h.
|
protected |
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 523 of file itkConstNeighborhoodIterator.h.
|
protected |
The image on which iteration is defined.
Definition at line 497 of file itkConstNeighborhoodIterator.h.
|
protected |
A pointer to one past the last pixel in the iteration region.
Definition at line 500 of file itkConstNeighborhoodIterator.h.
|
protected |
The end index for iteration within the itk::Image region on which this ConstNeighborhoodIterator is defined.
Definition at line 504 of file itkConstNeighborhoodIterator.h.
|
mutableprotected |
Denotes which of the iterators dimensional sides spill outside region of interest boundaries.
Definition at line 527 of file itkConstNeighborhoodIterator.h.
|
protected |
Upper threshold of in-bounds loop counter values.
Definition at line 541 of file itkConstNeighborhoodIterator.h.
|
protected |
Lower threshold of in-bounds loop counter values.
Definition at line 538 of file itkConstNeighborhoodIterator.h.
|
protected |
Default boundary condition.
Definition at line 544 of file itkConstNeighborhoodIterator.h.
|
mutableprotected |
Denotes if iterator is entirely within bounds
Definition at line 530 of file itkConstNeighborhoodIterator.h.
|
mutableprotected |
Is the m_InBounds and m_IsInBounds variables up to date? Set to false whenever the iterator is repositioned. Set to true within InBounds().
Definition at line 535 of file itkConstNeighborhoodIterator.h.
|
protected |
Array of loop counters used during iteration.
Definition at line 507 of file itkConstNeighborhoodIterator.h.
Referenced by itk::ConstNeighborhoodIterator< TSparseImageType >::operator-().
|
protected |
Does the specified region need to worry about boundary conditions?
Definition at line 547 of file itkConstNeighborhoodIterator.h.
|
protected |
Functor type used to access neighborhoods of pixel pointers
Definition at line 550 of file itkConstNeighborhoodIterator.h.
|
protected |
The region over which iteration is defined.
Definition at line 510 of file itkConstNeighborhoodIterator.h.
|
protected |
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 517 of file itkConstNeighborhoodIterator.h.