MIRA
Public Types | Public Member Functions | Public Attributes | Static Protected Member Functions | List of all members
ImgIterator< T > Class Template Reference

Image iterator that allows to iterate over images or image regions pixel by pixel similar to iterators of containers. More...

#include <image/ImgIterator.h>

Inheritance diagram for ImgIterator< T >:
Inheritance graph
[legend]

Public Types

typedef T * pointer
 
typedef T & reference
 
typedef T value_type
 
typedef int difference_type
 
typedef std::bidirectional_iterator_tag iterator_category
 

Public Member Functions

 ImgIterator ()
 
 ImgIterator (cv::Mat_< T > *m)
 
T & operator* ()
 Dereferences to the Pixel. More...
 
T * operator-> ()
 Dereferences to the Pixel. More...
 
const T & operator* () const
 Dereferences to the Pixel. More...
 
const T * operator-> () const
 Dereferences to the Pixel. More...
 
ImgIteratorBaseoperator+= (ptrdiff_t ofs)
 shifts the iterator forward by the specified number of elements More...
 
ImgIteratorBaseoperator-= (ptrdiff_t ofs)
 shifts the iterator backward by the specified number of elements More...
 
ImgIteratorBaseoperator-- ()
 move backward one element More...
 
ImgIteratorBaseoperator++ ()
 move forward one element More...
 
Point2i pos () const
 returns the current iterator position More...
 
ptrdiff_t lpos () const
 
void seek (ptrdiff_t ofs, bool relative=false)
 

Public Attributes

const cv::Matm
 
const uchar * ptr
 
const uchar * sliceStart
 
const uchar * sliceEnd
 

Static Protected Member Functions

static std::size_t total (const cv::Mat *m)
 
static std::size_t step (const cv::Mat *m)
 

Detailed Description

template<typename T>
class mira::ImgIterator< T >

Image iterator that allows to iterate over images or image regions pixel by pixel similar to iterators of containers.

Member Typedef Documentation

◆ pointer

typedef T* pointer

◆ reference

typedef T& reference

◆ value_type

typedef T value_type
inherited

◆ difference_type

typedef int difference_type
inherited

◆ iterator_category

typedef std::bidirectional_iterator_tag iterator_category
inherited

Constructor & Destructor Documentation

◆ ImgIterator() [1/2]

ImgIterator ( )
inline

◆ ImgIterator() [2/2]

ImgIterator ( cv::Mat_< T > *  m)
inline

Member Function Documentation

◆ operator*() [1/2]

T& operator* ( )
inline

Dereferences to the Pixel.

◆ operator->() [1/2]

T* operator-> ( )
inline

Dereferences to the Pixel.

◆ operator*() [2/2]

const T& operator* ( ) const
inlineinherited

Dereferences to the Pixel.

◆ operator->() [2/2]

const T* operator-> ( ) const
inlineinherited

Dereferences to the Pixel.

◆ operator+=()

ImgIteratorBase& operator+= ( ptrdiff_t  ofs)
inlineinherited

shifts the iterator forward by the specified number of elements

◆ operator-=()

ImgIteratorBase& operator-= ( ptrdiff_t  ofs)
inlineinherited

shifts the iterator backward by the specified number of elements

◆ operator--()

ImgIteratorBase& operator-- ( )
inlineinherited

move backward one element

◆ operator++()

ImgIteratorBase& operator++ ( )
inlineinherited

move forward one element

◆ pos()

Point2i pos ( ) const
inlineinherited

returns the current iterator position

◆ lpos()

ptrdiff_t lpos ( ) const
inlineinherited

◆ seek()

void seek ( ptrdiff_t  ofs,
bool  relative = false 
)
inlineinherited

◆ total()

static std::size_t total ( const cv::Mat m)
inlinestaticprotectedinherited

◆ step()

static std::size_t step ( const cv::Mat m)
inlinestaticprotectedinherited

Member Data Documentation

◆ m

const cv::Mat* m
inherited

◆ ptr

const uchar* ptr
inherited

◆ sliceStart

const uchar* sliceStart
inherited

◆ sliceEnd

const uchar* sliceEnd
inherited

The documentation for this class was generated from the following file: