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