MIRA
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | List of all members
UntypedImgConstIterator Class Reference

Untyped const 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 UntypedImgConstIterator:
Inheritance graph
[legend]

Public Types

typedef UntypedImgIteratorValue value_type
 
typedef int difference_type
 
typedef const UntypedImgIteratorValuepointer
 
typedef const UntypedImgIteratorValuereference
 
typedef std::bidirectional_iterator_tag iterator_category
 

Public Member Functions

 UntypedImgConstIterator ()
 
 UntypedImgConstIterator (const cv::Mat *m)
 
reference operator* () const
 
pointer operator-> () const
 
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
 

Protected Member Functions

value_typegetValue ()
 
const value_typegetValue () const
 

Static Protected Member Functions

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

Detailed Description

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

Member Typedef Documentation

◆ value_type

◆ difference_type

typedef int difference_type

◆ pointer

◆ reference

◆ iterator_category

typedef std::bidirectional_iterator_tag iterator_category

Constructor & Destructor Documentation

◆ UntypedImgConstIterator() [1/2]

◆ UntypedImgConstIterator() [2/2]

UntypedImgConstIterator ( const cv::Mat m)
inline

Member Function Documentation

◆ operator*()

reference operator* ( ) const
inline

◆ operator->()

pointer operator-> ( ) const
inline

◆ getValue() [1/2]

value_type* getValue ( )
inlineprotected

◆ getValue() [2/2]

const value_type* getValue ( ) const
inlineprotected

◆ 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: