OpenCV  2.4.13.4
Open Source Computer Vision
cv::MatIterator_< _Tp > Class Template Reference

#include <core.hpp>

Inheritance diagram for cv::MatIterator_< _Tp >:
cv::MatConstIterator_< _Tp > cv::MatConstIterator

Public Types

typedef _Tp * pointer
 
typedef _Tp & reference
 
typedef std::random_access_iterator_tag iterator_category
 
- Public Types inherited from cv::MatConstIterator_< _Tp >
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 Types inherited from cv::MatConstIterator
typedef ucharvalue_type
 
typedef ptrdiff_t difference_type
 
typedef const uchar ** pointer
 
typedef ucharreference
 
typedef std::random_access_iterator_tag iterator_category
 

Public Member Functions

 MatIterator_ ()
 the default constructor More...
 
 MatIterator_ (Mat_< _Tp > *_m)
 constructor that sets the iterator to the beginning of the matrix More...
 
 MatIterator_ (Mat_< _Tp > *_m, int _row, int _col=0)
 constructor that sets the iterator to the specified element of the matrix More...
 
 MatIterator_ (const Mat_< _Tp > *_m, Point _pt)
 constructor that sets the iterator to the specified element of the matrix More...
 
 MatIterator_ (const Mat_< _Tp > *_m, const int *_idx)
 constructor that sets the iterator to the specified element of the matrix More...
 
 MatIterator_ (const MatIterator_ &it)
 copy constructor More...
 
MatIterator_operator= (const MatIterator_< _Tp > &it)
 copy operator More...
 
_Tp & operator* () const
 returns the current matrix element More...
 
_Tp & operator[] (ptrdiff_t i) const
 returns the i-th matrix element, relative to the current More...
 
MatIterator_operator+= (ptrdiff_t ofs)
 shifts the iterator forward by the specified number of elements More...
 
MatIterator_operator-= (ptrdiff_t ofs)
 shifts the iterator backward by the specified number of elements More...
 
MatIterator_operator-- ()
 decrements the iterator More...
 
MatIterator_ operator-- (int)
 decrements the iterator More...
 
MatIterator_operator++ ()
 increments the iterator More...
 
MatIterator_ operator++ (int)
 increments the iterator More...
 
- Public Member Functions inherited from cv::MatConstIterator_< _Tp >
 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...
 
MatConstIterator_operator= (const MatConstIterator_ &it)
 copy operator More...
 
_Tp operator* () const
 returns the current matrix element More...
 
_Tp operator[] (ptrdiff_t i) const
 returns the i-th matrix element, relative to the current More...
 
MatConstIterator_operator+= (ptrdiff_t ofs)
 shifts the iterator forward by the specified number of elements More...
 
MatConstIterator_operator-= (ptrdiff_t ofs)
 shifts the iterator backward by the specified number of elements More...
 
MatConstIterator_operator-- ()
 decrements the iterator More...
 
MatConstIterator_ operator-- (int)
 decrements the iterator More...
 
MatConstIterator_operator++ ()
 increments the iterator More...
 
MatConstIterator_ operator++ (int)
 increments the iterator More...
 
Point pos () const
 returns the current iterator position More...
 
- Public Member Functions inherited from cv::MatConstIterator
 MatConstIterator ()
 default constructor More...
 
 MatConstIterator (const Mat *_m)
 constructor that sets the iterator to the beginning of the matrix More...
 
 MatConstIterator (const Mat *_m, int _row, int _col=0)
 constructor that sets the iterator to the specified element of the matrix More...
 
 MatConstIterator (const Mat *_m, Point _pt)
 constructor that sets the iterator to the specified element of the matrix More...
 
 MatConstIterator (const Mat *_m, const int *_idx)
 constructor that sets the iterator to the specified element of the matrix More...
 
 MatConstIterator (const MatConstIterator &it)
 copy constructor More...
 
MatConstIteratoroperator= (const MatConstIterator &it)
 copy operator More...
 
ucharoperator* () const
 returns the current matrix element More...
 
ucharoperator[] (ptrdiff_t i) const
 returns the i-th matrix element, relative to the current More...
 
MatConstIteratoroperator+= (ptrdiff_t ofs)
 shifts the iterator forward by the specified number of elements More...
 
MatConstIteratoroperator-= (ptrdiff_t ofs)
 shifts the iterator backward by the specified number of elements More...
 
MatConstIteratoroperator-- ()
 decrements the iterator More...
 
MatConstIterator operator-- (int)
 decrements the iterator More...
 
MatConstIteratoroperator++ ()
 increments the iterator More...
 
MatConstIterator operator++ (int)
 increments the iterator More...
 
Point pos () const
 returns the current iterator position More...
 
void pos (int *_idx) const
 returns the current iterator position More...
 
ptrdiff_t lpos () const
 
void seek (ptrdiff_t ofs, bool relative=false)
 
void seek (const int *_idx, bool relative=false)
 

Additional Inherited Members

- Public Attributes inherited from cv::MatConstIterator
const Matm
 
size_t elemSize
 
ucharptr
 
ucharsliceStart
 
ucharsliceEnd
 

Detailed Description

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

Matrix read-write iterator

Member Typedef Documentation

§ iterator_category

template<typename _Tp>
typedef std::random_access_iterator_tag cv::MatIterator_< _Tp >::iterator_category

§ pointer

template<typename _Tp>
typedef _Tp* cv::MatIterator_< _Tp >::pointer

§ reference

template<typename _Tp>
typedef _Tp& cv::MatIterator_< _Tp >::reference

Constructor & Destructor Documentation

§ MatIterator_() [1/6]

template<typename _Tp >
cv::MatIterator_< _Tp >::MatIterator_ ( )
inline

the default constructor

§ MatIterator_() [2/6]

template<typename _Tp >
cv::MatIterator_< _Tp >::MatIterator_ ( Mat_< _Tp > *  _m)
inline

constructor that sets the iterator to the beginning of the matrix

§ MatIterator_() [3/6]

template<typename _Tp >
cv::MatIterator_< _Tp >::MatIterator_ ( Mat_< _Tp > *  _m,
int  _row,
int  _col = 0 
)
inline

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

§ MatIterator_() [4/6]

template<typename _Tp >
cv::MatIterator_< _Tp >::MatIterator_ ( const Mat_< _Tp > *  _m,
Point  _pt 
)
inline

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

§ MatIterator_() [5/6]

template<typename _Tp >
cv::MatIterator_< _Tp >::MatIterator_ ( const Mat_< _Tp > *  _m,
const int _idx 
)
inline

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

§ MatIterator_() [6/6]

template<typename _Tp >
cv::MatIterator_< _Tp >::MatIterator_ ( const MatIterator_< _Tp > &  it)
inline

copy constructor

Member Function Documentation

§ operator*()

template<typename _Tp >
_Tp & cv::MatIterator_< _Tp >::operator* ( ) const
inline

returns the current matrix element

§ operator++() [1/2]

template<typename _Tp >
MatIterator_< _Tp > & cv::MatIterator_< _Tp >::operator++ ( )
inline

increments the iterator

§ operator++() [2/2]

template<typename _Tp >
MatIterator_< _Tp > cv::MatIterator_< _Tp >::operator++ ( int  )
inline

increments the iterator

§ operator+=()

template<typename _Tp >
MatIterator_< _Tp > & cv::MatIterator_< _Tp >::operator+= ( ptrdiff_t  ofs)
inline

shifts the iterator forward by the specified number of elements

§ operator--() [1/2]

template<typename _Tp >
MatIterator_< _Tp > & cv::MatIterator_< _Tp >::operator-- ( )
inline

decrements the iterator

§ operator--() [2/2]

template<typename _Tp >
MatIterator_< _Tp > cv::MatIterator_< _Tp >::operator-- ( int  )
inline

decrements the iterator

§ operator-=()

template<typename _Tp >
MatIterator_< _Tp > & cv::MatIterator_< _Tp >::operator-= ( ptrdiff_t  ofs)
inline

shifts the iterator backward by the specified number of elements

§ operator=()

template<typename _Tp >
MatIterator_< _Tp > & cv::MatIterator_< _Tp >::operator= ( const MatIterator_< _Tp > &  it)
inline

copy operator

§ operator[]()

template<typename _Tp >
_Tp & cv::MatIterator_< _Tp >::operator[] ( ptrdiff_t  i) const
inline

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


The documentation for this class was generated from the following files: