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

#include <core.hpp>

Inheritance diagram for cv::MatConstIterator:

Public Types

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

  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...
 
  copy constructor More...
 
  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...
 
  decrements the iterator More...
 
  decrements the iterator More...
 
  increments the iterator More...
 
  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)
 

Public Attributes

const Matm
 
size_t  elemSize
 
ucharptr
 
 
 

Member Typedef Documentation

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

Constructor & Destructor Documentation

cv::MatConstIterator::MatConstIterator ( )
inline

default constructor

cv::MatConstIterator::MatConstIterator ( const Mat_m )
inline

constructor that sets the iterator to the beginning of the matrix

cv::MatConstIterator::MatConstIterator ( const Mat_m,
int  _row,
int  _col = 0 
)
inline

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

cv::MatConstIterator::MatConstIterator ( const Mat_m,
Point  _pt 
)
inline

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 MatConstIteratorit )
inline

copy constructor

Member Function Documentation

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

returns the current matrix element

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

increments the iterator

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

increments the iterator

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

shifts the iterator forward by the specified number of elements

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

decrements the iterator

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

decrements the iterator

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

shifts the iterator backward by the specified number of elements

MatConstIterator & cv::MatConstIterator::operator= ( const MatConstIteratorit )
inline

copy operator

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

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
uchar* cv::MatConstIterator::ptr
uchar* cv::MatConstIterator::sliceEnd
uchar* cv::MatConstIterator::sliceStart

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

AltStyle によって変換されたページ (->オリジナル) /