opencv on mbed

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

MatConstIterator_< _Tp > Class Template Reference

MatConstIterator_< _Tp > Class Template Reference
[Basic structures]

Matrix read-only iterator. More...

#include <mat.hpp>

Inherits cv::MatConstIterator.

Inherited by MatIterator_< _Tp >.

Public Member Functions

 MatConstIterator_ ()
 default constructor
 MatConstIterator_ (const Mat_< _Tp > *_m)
 constructor that sets the iterator to the beginning of the matrix
 MatConstIterator_ (const Mat_< _Tp > *_m, int _row, int _col=0)
 constructor that sets the iterator to the specified element of the matrix
 MatConstIterator_ (const Mat_< _Tp > *_m, Point _pt)
 constructor that sets the iterator to the specified element of the matrix
 MatConstIterator_ (const Mat_< _Tp > *_m, const int *_idx)
 constructor that sets the iterator to the specified element of the matrix
 MatConstIterator_ (const MatConstIterator_ &it)
 copy constructor
MatConstIterator_operator= (const MatConstIterator_ &it)
 copy operator
_Tp operator* () const
 returns the current matrix element
_Tp operator[] (ptrdiff_t i) const
 returns the i-th matrix element, relative to the current
MatConstIterator_operator+= (ptrdiff_t ofs)
 shifts the iterator forward by the specified number of elements
MatConstIterator_operator-= (ptrdiff_t ofs)
 shifts the iterator backward by the specified number of elements
MatConstIterator_operator-- ()
 decrements the iterator
MatConstIterator_ operator-- (int)
 decrements the iterator
MatConstIterator_operator++ ()
 increments the iterator
MatConstIterator_ operator++ (int)
 increments the iterator
Point pos () const
 returns the current iterator position
void pos (int *_idx) const
 returns the current iterator position

Detailed Description

template<typename _Tp>
class cv::MatConstIterator_< _Tp >

Matrix read-only iterator.

Definition at line 2844 of file mat.hpp.


Constructor & Destructor Documentation

default constructor

MatConstIterator_ ( const Mat_< _Tp > *  _m )

constructor that sets the iterator to the beginning of the matrix

MatConstIterator_ ( const Mat_< _Tp > *  _m,
int  _row,
int  _col = 0 
)

constructor that sets the iterator to the specified element of the matrix

MatConstIterator_ ( const Mat_< _Tp > *  _m,
Point  _pt 
)

constructor that sets the iterator to the specified element of the matrix

MatConstIterator_ ( const Mat_< _Tp > *  _m,
const int *  _idx 
)

constructor that sets the iterator to the specified element of the matrix

MatConstIterator_ ( const MatConstIterator_< _Tp > &  it )

copy constructor


Member Function Documentation

_Tp operator* (  ) const

returns the current matrix element

Reimplemented in MatIterator_< _Tp >.

MatConstIterator_& operator++ (  )

increments the iterator

Reimplemented in MatIterator_< _Tp >.

MatConstIterator_ operator++ ( int   )

increments the iterator

Reimplemented in MatIterator_< _Tp >.

MatConstIterator_& operator+= ( ptrdiff_t  ofs )

shifts the iterator forward by the specified number of elements

Reimplemented in MatIterator_< _Tp >.

MatConstIterator_& operator-- (  )

decrements the iterator

Reimplemented in MatIterator_< _Tp >.

MatConstIterator_ operator-- ( int   )

decrements the iterator

Reimplemented in MatIterator_< _Tp >.

MatConstIterator_& operator-= ( ptrdiff_t  ofs )

shifts the iterator backward by the specified number of elements

Reimplemented in MatIterator_< _Tp >.

MatConstIterator_& operator= ( const MatConstIterator_< _Tp > &  it )

copy operator

_Tp operator[] ( ptrdiff_t  i ) const

returns the i-th matrix element, relative to the current

Reimplemented in MatIterator_< _Tp >.

void pos ( int *  _idx ) const [inherited]

returns the current iterator position

Point pos (  ) const

returns the current iterator position