OpenCV  4.1.0
Open Source Computer Vision
Public Types | Public Member Functions | Public Attributes | List of all members
cv::MatConstIterator Class Reference

#include <opencv2/core/mat.hpp>

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

Public Types

typedef ptrdiff_t difference_type
 
typedef
std::random_access_iterator_tag 
iterator_category
 
typedef const uchar ** pointer
 
typedef ucharreference
 
typedef ucharvalue_type
 

Public Member Functions

 MatConstIterator ()
 default constructor
 
 MatConstIterator (const Mat *_m)
 constructor that sets the iterator to the beginning of the matrix
 
 MatConstIterator (const Mat *_m, int _row, int _col=0)
 constructor that sets the iterator to the specified element of the matrix
 
 MatConstIterator (const Mat *_m, Point _pt)
 constructor that sets the iterator to the specified element of the matrix
 
 MatConstIterator (const Mat *_m, const int *_idx)
 constructor that sets the iterator to the specified element of the matrix
 
 MatConstIterator (const MatConstIterator &it)
 copy constructor
 
ptrdiff_t lpos () const
 
const ucharoperator* () const
 returns the current matrix element
 
MatConstIteratoroperator++ ()
 increments the iterator
 
MatConstIterator operator++ (int)
 increments the iterator
 
MatConstIteratoroperator+= (ptrdiff_t ofs)
 shifts the iterator forward by the specified number of elements
 
MatConstIteratoroperator-- ()
 decrements the iterator
 
MatConstIterator operator-- (int)
 decrements the iterator
 
MatConstIteratoroperator-= (ptrdiff_t ofs)
 shifts the iterator backward by the specified number of elements
 
MatConstIteratoroperator= (const MatConstIterator &it)
 copy operator
 
const ucharoperator[] (ptrdiff_t i) const
 returns the i-th matrix element, relative to the current
 
Point pos () const
 returns the current iterator position
 
void pos (int *_idx) const
 returns the current iterator position
 
void seek (ptrdiff_t ofs, bool relative=false)
 
void seek (const int *_idx, bool relative=false)
 

Public Attributes

size_t elemSize
 
const Matm
 
const ucharptr
 
const ucharsliceEnd
 
const ucharsliceStart
 

Member Typedef Documentation

typedef std::random_access_iterator_tag cv::MatConstIterator::iterator_category

Constructor & Destructor Documentation

cv::MatConstIterator::MatConstIterator ( )

default constructor

cv::MatConstIterator::MatConstIterator ( const Mat _m)

constructor that sets the iterator to the beginning of the matrix

cv::MatConstIterator::MatConstIterator ( const Mat _m,
int  _row,
int  _col = 0 
)

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

cv::MatConstIterator::MatConstIterator ( const Mat _m,
Point  _pt 
)

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

cv::MatConstIterator::MatConstIterator ( const Mat _m,
const int *  _idx 
)

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

cv::MatConstIterator::MatConstIterator ( const MatConstIterator it)

copy constructor

Member Function Documentation

ptrdiff_t cv::MatConstIterator::lpos ( ) const
const uchar* cv::MatConstIterator::operator* ( ) const

returns the current matrix element

MatConstIterator& cv::MatConstIterator::operator++ ( )

increments the iterator

MatConstIterator cv::MatConstIterator::operator++ ( int  )

increments the iterator

MatConstIterator& cv::MatConstIterator::operator+= ( ptrdiff_t  ofs)

shifts the iterator forward by the specified number of elements

MatConstIterator& cv::MatConstIterator::operator-- ( )

decrements the iterator

MatConstIterator cv::MatConstIterator::operator-- ( int  )

decrements the iterator

MatConstIterator& cv::MatConstIterator::operator-= ( ptrdiff_t  ofs)

shifts the iterator backward by the specified number of elements

MatConstIterator& cv::MatConstIterator::operator= ( const MatConstIterator it)

copy operator

const uchar* cv::MatConstIterator::operator[] ( ptrdiff_t  i) const

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

Point cv::MatConstIterator::pos ( ) const

returns the current iterator position

void cv::MatConstIterator::pos ( int *  _idx) const

returns the current iterator position

void cv::MatConstIterator::seek ( ptrdiff_t  ofs,
bool  relative = false 
)
void cv::MatConstIterator::seek ( const int *  _idx,
bool  relative = false 
)

Member Data Documentation

size_t cv::MatConstIterator::elemSize
const Mat* cv::MatConstIterator::m
const uchar* cv::MatConstIterator::ptr
const uchar* cv::MatConstIterator::sliceEnd
const uchar* cv::MatConstIterator::sliceStart

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