ITK
5.0.0
Insight Segmentation and Registration 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 neighbohood 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 153 of file itkShapedNeighborhoodIterator.h.
Classes | |
struct | Iterator |
Public Types | |
using | BoundaryConditionType = typename Superclass::BoundaryConditionType |
using | ConstIterator = typename Superclass::ConstIterator |
using | ImageBoundaryConditionPointerType = typename Superclass::ImageBoundaryConditionPointerType |
using | ImageType = typename Superclass::ImageType |
using | IndexListType = typename Superclass::IndexListType |
using | IndexType = typename Superclass::IndexType |
using | IndexValueType = typename Superclass::IndexValueType |
using | InternalPixelType = typename TImage::InternalPixelType |
using | NeighborhoodType = typename Superclass::NeighborhoodType |
using | OffsetType = typename Superclass::OffsetType |
using | OffsetValueType = typename OffsetType::OffsetValueType |
using | PixelType = typename TImage::PixelType |
using | RadiusType = typename Superclass::RadiusType |
using | RegionType = typename Superclass::RegionType |
using | Self = ShapedNeighborhoodIterator |
using | SizeType = typename Superclass::SizeType |
using | SizeValueType = typename Superclass::SizeValueType |
using | Superclass = ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition > |
Public Types inherited from itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition > | |
using | BoundaryConditionType = TBoundaryCondition |
using | ImageBoundaryConditionPointerType = ImageBoundaryCondition< ImageType > * |
using | ImageType = TImage |
using | IndexListConstIterator = typename IndexListType::const_iterator |
using | IndexListIterator = typename IndexListType::iterator |
using | IndexListType = std::list< NeighborIndexType > |
using | IndexType = Index< Self::Dimension > |
using | IndexValueType = typename IndexType::IndexValueType |
using | InternalPixelType = typename TImage::InternalPixelType |
using | NeighborhoodType = Neighborhood< PixelType, Self::Dimension > |
using | NeighborIndexType = typename NeighborhoodType::NeighborIndexType |
using | OffsetType = typename Superclass::OffsetType |
using | OffsetValueType = typename OffsetType::OffsetValueType |
using | PixelType = typename TImage::PixelType |
using | RadiusType = typename Superclass::RadiusType |
using | RegionType = typename TImage::RegionType |
using | Self = ConstShapedNeighborhoodIterator |
using | SizeType = typename Superclass::SizeType |
using | SizeValueType = typename SizeType::SizeValueType |
using | Superclass = NeighborhoodIterator< TImage, TBoundaryCondition > |
Public Member Functions | |
void | PrintSelf (std::ostream &, Indent) const override |
ShapedNeighborhoodIterator ()=default | |
ShapedNeighborhoodIterator (const SizeType &radius, const ImageType *ptr, const RegionType ®ion) | |
~ShapedNeighborhoodIterator () override=default | |
Self & | operator= (const Self &orig) |
Iterator | Begin () |
Iterator | End () |
Public Member Functions inherited from itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition > | |
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 &) |
ConstIterator | Begin () const |
ConstIterator | End () const |
ConstShapedNeighborhoodIterator ()=default | |
~ConstShapedNeighborhoodIterator () override=default | |
ConstShapedNeighborhoodIterator (const SizeType &radius, const ImageType *ptr, const RegionType ®ion) | |
Self & | operator= (const Self &orig) |
ITK_ITERATOR_VIRTUAL void | ActivateOffset (const OffsetType &off) ITK_ITERATOR_FINAL |
ITK_ITERATOR_VIRTUAL void | DeactivateOffset (const OffsetType &off) ITK_ITERATOR_FINAL |
template<typename TOffsets > | |
void | ActivateOffsets (const TOffsets &offsets) |
ITK_ITERATOR_VIRTUAL void | ClearActiveList () ITK_ITERATOR_FINAL |
Static Public Attributes | |
static constexpr unsigned int | Dimension = TImage::ImageDimension |
Static Public Attributes inherited from itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition > | |
static constexpr unsigned int | Dimension = TImage::ImageDimension |
Protected Types | |
using | NeighborIndexType = typename Superclass::NeighborIndexType |
Protected Member Functions | |
ShapedNeighborhoodIterator (const ShapedNeighborhoodIterator &o)=delete | |
Protected Member Functions inherited from itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition > | |
ITK_ITERATOR_VIRTUAL void | ActivateIndex (NeighborIndexType) ITK_ITERATOR_FINAL |
ITK_ITERATOR_VIRTUAL void | DeactivateIndex (NeighborIndexType) ITK_ITERATOR_FINAL |
Protected Attributes | |
friend | Superclass |
Protected Attributes inherited from itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition > | |
IndexListType | m_ActiveIndexList |
bool | m_CenterIsActive { false } |
using itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >::BoundaryConditionType = typename Superclass::BoundaryConditionType |
Definition at line 178 of file itkShapedNeighborhoodIterator.h.
using itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >::ConstIterator = typename Superclass::ConstIterator |
Definition at line 176 of file itkShapedNeighborhoodIterator.h.
using itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >::ImageBoundaryConditionPointerType = typename Superclass::ImageBoundaryConditionPointerType |
Definition at line 179 of file itkShapedNeighborhoodIterator.h.
using itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >::ImageType = typename Superclass::ImageType |
Definition at line 182 of file itkShapedNeighborhoodIterator.h.
using itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >::IndexListType = typename Superclass::IndexListType |
Definition at line 177 of file itkShapedNeighborhoodIterator.h.
using itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >::IndexType = typename Superclass::IndexType |
Definition at line 181 of file itkShapedNeighborhoodIterator.h.
using itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >::IndexValueType = typename Superclass::IndexValueType |
Definition at line 184 of file itkShapedNeighborhoodIterator.h.
using itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >::InternalPixelType = typename TImage::InternalPixelType |
Extract image type information.
Definition at line 159 of file itkShapedNeighborhoodIterator.h.
using itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >::NeighborhoodType = typename Superclass::NeighborhoodType |
Definition at line 180 of file itkShapedNeighborhoodIterator.h.
|
protected |
Definition at line 260 of file itkShapedNeighborhoodIterator.h.
using itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >::OffsetType = typename Superclass::OffsetType |
Inherit type alias from superclass
Definition at line 171 of file itkShapedNeighborhoodIterator.h.
using itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >::OffsetValueType = typename OffsetType::OffsetValueType |
Definition at line 172 of file itkShapedNeighborhoodIterator.h.
using itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >::PixelType = typename TImage::PixelType |
Definition at line 160 of file itkShapedNeighborhoodIterator.h.
using itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >::RadiusType = typename Superclass::RadiusType |
Definition at line 173 of file itkShapedNeighborhoodIterator.h.
using itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >::RegionType = typename Superclass::RegionType |
Definition at line 183 of file itkShapedNeighborhoodIterator.h.
using itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >::Self = ShapedNeighborhoodIterator |
Standard class type aliases.
Definition at line 166 of file itkShapedNeighborhoodIterator.h.
using itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >::SizeType = typename Superclass::SizeType |
Definition at line 174 of file itkShapedNeighborhoodIterator.h.
using itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >::SizeValueType = typename Superclass::SizeValueType |
Definition at line 175 of file itkShapedNeighborhoodIterator.h.
using itk::ShapedNeighborhoodIterator< TImage, TBoundaryCondition >::Superclass = ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition> |
Definition at line 168 of file itkShapedNeighborhoodIterator.h.
|
default |
Default constructor
|
overridedefault |
Virtual destructor
|
inline |
Constructor which establishes the region size, neighborhood, and image over which to walk.
Definition at line 219 of file itkShapedNeighborhoodIterator.h.
|
protecteddelete |
Copy constructor
|
inline |
Returns a const iterator for the neighborhood which points to the first pixel in the neighborhood.
Definition at line 246 of file itkShapedNeighborhoodIterator.h.
|
inline |
Returns a const iterator for the neighborhood which points to the first pixel in the neighborhood.
Definition at line 247 of file itkShapedNeighborhoodIterator.h.
|
inline |
Assignment operator
Definition at line 234 of file itkShapedNeighborhoodIterator.h.
|
overridevirtual |
Standard itk print method
Reimplemented from itk::ConstShapedNeighborhoodIterator< TImage, TBoundaryCondition >.
|
static |
Save the image dimension.
Definition at line 163 of file itkShapedNeighborhoodIterator.h.
|
protected |
Definition at line 255 of file itkShapedNeighborhoodIterator.h.