Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of gr-peach-opencv-project-sd-card by
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
Definition at line 4577 of file matrix.cpp.
Point pos | ( | ) | const |
returns the current iterator position
Generated on Tue Jul 12 2022 14:48:00 by
