Matrix read-only iterator. More...
#include <core.hpp>
Inherits cv::MatConstIterator.
Inherited by cv::MatIterator_< _Tp >.
Public Types | |
typedef _Tp | value_type |
typedef ptrdiff_t | difference_type |
typedef const _Tp * | pointer |
typedef const _Tp & | reference |
typedef std::random_access_iterator_tag | iterator_category |
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 | |
ptrdiff_t | lpos () const |
void | seek (ptrdiff_t ofs, bool relative=false) |
void | seek (const int *_idx, bool relative=false) |
Public Attributes | |
const Mat * | m |
size_t | elemSize |
uchar * | ptr |
uchar * | sliceStart |
uchar * | sliceEnd |
Matrix read-only iterator.
typedef _Tp cv::MatConstIterator_< _Tp >::value_type |
Reimplemented from cv::MatConstIterator.
typedef ptrdiff_t cv::MatConstIterator_< _Tp >::difference_type |
Reimplemented from cv::MatConstIterator.
typedef const _Tp* cv::MatConstIterator_< _Tp >::pointer |
Reimplemented from cv::MatConstIterator.
Reimplemented in cv::MatIterator_< _Tp >.
typedef const _Tp& cv::MatConstIterator_< _Tp >::reference |
Reimplemented from cv::MatConstIterator.
Reimplemented in cv::MatIterator_< _Tp >.
typedef std::random_access_iterator_tag cv::MatConstIterator_< _Tp >::iterator_category |
Reimplemented from cv::MatConstIterator.
Reimplemented in cv::MatIterator_< _Tp >.
cv::MatConstIterator_< _Tp >::MatConstIterator_ | ( | ) |
default constructor
cv::MatConstIterator_< _Tp >::MatConstIterator_ | ( | const Mat_< _Tp > * | _m | ) |
constructor that sets the iterator to the beginning of the matrix
cv::MatConstIterator_< _Tp >::MatConstIterator_ | ( | const Mat_< _Tp > * | _m, | |
int | _row, | |||
int | _col = 0 | |||
) |
constructor that sets the iterator to the specified element of the matrix
cv::MatConstIterator_< _Tp >::MatConstIterator_ | ( | const Mat_< _Tp > * | _m, | |
Point | _pt | |||
) |
constructor that sets the iterator to the specified element of the matrix
cv::MatConstIterator_< _Tp >::MatConstIterator_ | ( | const Mat_< _Tp > * | _m, | |
const int * | _idx | |||
) |
constructor that sets the iterator to the specified element of the matrix
cv::MatConstIterator_< _Tp >::MatConstIterator_ | ( | const MatConstIterator_< _Tp > & | it | ) |
copy constructor
MatConstIterator_< _Tp > & cv::MatConstIterator_< _Tp >::operator= | ( | const MatConstIterator_< _Tp > & | it | ) |
copy operator
_Tp cv::MatConstIterator_< _Tp >::operator* | ( | ) | const |
returns the current matrix element
Reimplemented from cv::MatConstIterator.
Reimplemented in cv::MatIterator_< _Tp >.
_Tp cv::MatConstIterator_< _Tp >::operator[] | ( | ptrdiff_t | i | ) | const |
returns the i-th matrix element, relative to the current
Reimplemented from cv::MatConstIterator.
Reimplemented in cv::MatIterator_< _Tp >.
MatConstIterator_< _Tp > & cv::MatConstIterator_< _Tp >::operator+= | ( | ptrdiff_t | ofs | ) |
shifts the iterator forward by the specified number of elements
Reimplemented from cv::MatConstIterator.
Reimplemented in cv::MatIterator_< _Tp >.
MatConstIterator_< _Tp > & cv::MatConstIterator_< _Tp >::operator-= | ( | ptrdiff_t | ofs | ) |
shifts the iterator backward by the specified number of elements
Reimplemented from cv::MatConstIterator.
Reimplemented in cv::MatIterator_< _Tp >.
MatConstIterator_< _Tp > & cv::MatConstIterator_< _Tp >::operator-- | ( | ) |
decrements the iterator
Reimplemented from cv::MatConstIterator.
Reimplemented in cv::MatIterator_< _Tp >.
MatConstIterator_< _Tp > cv::MatConstIterator_< _Tp >::operator-- | ( | int | ) |
decrements the iterator
Reimplemented from cv::MatConstIterator.
Reimplemented in cv::MatIterator_< _Tp >.
MatConstIterator_< _Tp > & cv::MatConstIterator_< _Tp >::operator++ | ( | ) |
increments the iterator
Reimplemented from cv::MatConstIterator.
Reimplemented in cv::MatIterator_< _Tp >.
MatConstIterator_< _Tp > cv::MatConstIterator_< _Tp >::operator++ | ( | int | ) |
increments the iterator
Reimplemented from cv::MatConstIterator.
Reimplemented in cv::MatIterator_< _Tp >.
Point cv::MatConstIterator_< _Tp >::pos | ( | ) | const |
returns the current iterator position
Reimplemented from cv::MatConstIterator.
void cv::MatConstIterator::pos | ( | int * | _idx | ) | const [inherited] |
returns the current iterator position
ptrdiff_t cv::MatConstIterator::lpos | ( | ) | const [inherited] |
void cv::MatConstIterator::seek | ( | ptrdiff_t | ofs, | |
bool | relative = false | |||
) | [inherited] |
void cv::MatConstIterator::seek | ( | const int * | _idx, | |
bool | relative = false | |||
) | [inherited] |
const Mat* cv::MatConstIterator::m [inherited] |
size_t cv::MatConstIterator::elemSize [inherited] |
uchar* cv::MatConstIterator::ptr [inherited] |
uchar* cv::MatConstIterator::sliceStart [inherited] |
uchar* cv::MatConstIterator::sliceEnd [inherited] |