opencv on mbed
MatIterator_< _Tp > Class Template Reference
[Basic structures]
Matrix read-write iterator. More...
#include <mat.hpp>
Inherits cv::MatConstIterator_< _Tp >.
Public Member Functions | |
MatIterator_ () | |
the default constructor | |
MatIterator_ (Mat_< _Tp > *_m) | |
constructor that sets the iterator to the beginning of the matrix | |
MatIterator_ (Mat_< _Tp > *_m, int _row, int _col=0) | |
constructor that sets the iterator to the specified element of the matrix | |
MatIterator_ (Mat_< _Tp > *_m, Point _pt) | |
constructor that sets the iterator to the specified element of the matrix | |
MatIterator_ (Mat_< _Tp > *_m, const int *_idx) | |
constructor that sets the iterator to the specified element of the matrix | |
MatIterator_ (const MatIterator_ &it) | |
copy constructor | |
MatIterator_ & | operator= (const MatIterator_< _Tp > &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 | |
MatIterator_ & | operator+= (ptrdiff_t ofs) |
shifts the iterator forward by the specified number of elements | |
MatIterator_ & | operator-= (ptrdiff_t ofs) |
shifts the iterator backward by the specified number of elements | |
MatIterator_ & | operator-- () |
decrements the iterator | |
MatIterator_ | operator-- (int) |
decrements the iterator | |
MatIterator_ & | operator++ () |
increments the iterator | |
MatIterator_ | 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::MatIterator_< _Tp >
Matrix read-write iterator.
Definition at line 2899 of file mat.hpp.
Constructor & Destructor Documentation
MatIterator_ | ( | ) |
the default constructor
MatIterator_ | ( | Mat_< _Tp > * | _m ) |
constructor that sets the iterator to the beginning of the matrix
MatIterator_ | ( | Mat_< _Tp > * | _m, |
int | _row, | ||
int | _col = 0 |
||
) |
constructor that sets the iterator to the specified element of the matrix
MatIterator_ | ( | Mat_< _Tp > * | _m, |
Point | _pt | ||
) |
constructor that sets the iterator to the specified element of the matrix
MatIterator_ | ( | Mat_< _Tp > * | _m, |
const int * | _idx | ||
) |
constructor that sets the iterator to the specified element of the matrix
MatIterator_ | ( | const MatIterator_< _Tp > & | it ) |
copy constructor
Member Function Documentation
_Tp& operator* | ( | ) | const |
returns the current matrix element
Reimplemented from MatConstIterator_< _Tp >.
MatIterator_& operator++ | ( | ) |
increments the iterator
Reimplemented from MatConstIterator_< _Tp >.
MatIterator_ operator++ | ( | int | ) |
increments the iterator
Reimplemented from MatConstIterator_< _Tp >.
MatIterator_& operator+= | ( | ptrdiff_t | ofs ) |
shifts the iterator forward by the specified number of elements
Reimplemented from MatConstIterator_< _Tp >.
MatIterator_& operator-- | ( | ) |
decrements the iterator
Reimplemented from MatConstIterator_< _Tp >.
MatIterator_ operator-- | ( | int | ) |
decrements the iterator
Reimplemented from MatConstIterator_< _Tp >.
MatIterator_& operator-= | ( | ptrdiff_t | ofs ) |
shifts the iterator backward by the specified number of elements
Reimplemented from MatConstIterator_< _Tp >.
MatIterator_& operator= | ( | const MatIterator_< _Tp > & | it ) |
copy operator
_Tp& operator[] | ( | ptrdiff_t | i ) | const |
returns the i-th matrix element, relative to the current
Reimplemented from MatConstIterator_< _Tp >.
void pos | ( | int * | _idx ) | const [inherited] |
returns the current iterator position
Point pos | ( | ) | const [inherited] |
returns the current iterator position
Generated on Tue Jul 12 2022 16:42:43 by 1.7.2