MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Iterator used to traverse image pixels by lines. More...
#include <mdsImageIterator.h>
Public Types | |
enum | { TEMPLATE_PARAMETER_IS_NOT_IMAGE = I::CLASS_IMAGE } |
Check that I is an image. More... | |
typedef CImageIterator< I, T > | tDerived |
Iterator type. | |
typedef I | tImage |
Image type. | |
typedef CIteratorTraits < CImageIterator< I, T > >::tItem | tItem |
Value (or item) type. | |
typedef T | tPixel |
Pixel type. | |
Public Member Functions | |
void | advance () |
Moves iterator to the next pixel. | |
bool | atEnd () const |
Returns true if the iterator points at the end. | |
CImageIterator (tImage &Image) | |
Constructor. | |
tDerived & | getImpl () |
Returns reference to the iterator implementation. | |
const tDerived & | getImpl () const |
tSize | getSize () const |
Returns size of the image in pixels. | |
operator bool () const | |
Returns true if the iterator is valid, i.e. not pointing after the end. | |
tItem & | operator* () const |
Returns reference to the current item. | |
CIteratorBase & | operator++ () |
CIteratorBase | operator++ (int) |
tItem * | operator-> () const |
Returns pointer to the current item. | |
const tPixel & | value () const |
Returns the current pixel value. | |
tPixel * | valuePtr () const |
Returns pointer to the current pixel. | |
tPixel & | valueRef () const |
Returns reference to the current pixel. | |
tSize | x () const |
Returns current iterator position. | |
tSize | y () const |
~CImageIterator () | |
Destructor. | |
Protected Attributes | |
tImage & | m_Image |
Reference to the image. | |
tSize | m_x |
Current iterator position. | |
tSize | m_y |
Iterator used to traverse image pixels by lines.
typedef CImageIterator< I, T > mds::base::CIteratorBase< CImageIterator< I, T > >::tDerived [inherited] |
Iterator type.
typedef I mds::img::CImageIterator< I, T >::tImage |
Image type.
typedef CIteratorTraits<CImageIterator< I, T > >::tItem mds::base::CIteratorBase< CImageIterator< I, T > >::tItem [inherited] |
Value (or item) type.
typedef T mds::img::CImageIterator< I, T >::tPixel |
Pixel type.
anonymous enum |
mds::img::CImageIterator< I, T >::CImageIterator | ( | tImage & | Image | ) |
Constructor.
mds::img::CImageIterator< I, T >::~CImageIterator | ( | ) |
Destructor.
void mds::img::CImageIterator< I, T >::advance | ( | ) |
Moves iterator to the next pixel.
bool mds::img::CImageIterator< I, T >::atEnd | ( | ) | const |
Returns true if the iterator points at the end.
tDerived& mds::base::CIteratorBase< CImageIterator< I, T > >::getImpl | ( | ) | [inherited] |
Returns reference to the iterator implementation.
const tDerived& mds::base::CIteratorBase< CImageIterator< I, T > >::getImpl | ( | ) | const [inherited] |
tSize mds::img::CImageIterator< I, T >::getSize | ( | ) | const |
Returns size of the image in pixels.
Reimplemented from mds::base::CIteratorBase< CImageIterator< I, T > >.
mds::base::CIteratorBase< CImageIterator< I, T > >::operator bool | ( | ) | const [inherited] |
Returns true if the iterator is valid, i.e. not pointing after the end.
tItem& mds::base::CIteratorBase< CImageIterator< I, T > >::operator* | ( | ) | const [inherited] |
Returns reference to the current item.
CIteratorBase& mds::base::CIteratorBase< CImageIterator< I, T > >::operator++ | ( | ) | [inherited] |
CIteratorBase mds::base::CIteratorBase< CImageIterator< I, T > >::operator++ | ( | int | ) | [inherited] |
tItem* mds::base::CIteratorBase< CImageIterator< I, T > >::operator-> | ( | ) | const [inherited] |
Returns pointer to the current item.
const tPixel& mds::img::CImageIterator< I, T >::value | ( | ) | const |
Returns the current pixel value.
Reimplemented from mds::base::CIteratorBase< CImageIterator< I, T > >.
tPixel* mds::img::CImageIterator< I, T >::valuePtr | ( | ) | const |
Returns pointer to the current pixel.
Reimplemented from mds::base::CIteratorBase< CImageIterator< I, T > >.
tPixel& mds::img::CImageIterator< I, T >::valueRef | ( | ) | const |
Returns reference to the current pixel.
Reimplemented from mds::base::CIteratorBase< CImageIterator< I, T > >.
tSize mds::img::CImageIterator< I, T >::x | ( | ) | const |
Returns current iterator position.
tSize mds::img::CImageIterator< I, T >::y | ( | ) | const |
tImage& mds::img::CImageIterator< I, T >::m_Image [protected] |
Reference to the image.
tSize mds::img::CImageIterator< I, T >::m_x [protected] |
Current iterator position.
tSize mds::img::CImageIterator< I, T >::m_y [protected] |