Class cv::MatConstIterator_#

Matrix read-only iterator.

Collaboration diagram for cv::MatConstIterator_:

Public Types#

Public Types inherited from cv::MatConstIterator

Return

Name

Description

ptrdiff_t

difference_type

std::random_access_iterator_tag

iterator_category

const uchar **

pointer

uchar *

reference

uchar *

value_type

Public Member Functions#

Public Member Functions inherited from cv::MatConstIterator

Return

Name

Description

MatConstIterator()

default constructor

MatConstIterator(const Mat * _m)

constructor that sets the iterator to the beginning of the matrix

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

constructor that sets the iterator to the specified element 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 MatConstIterator & it)

copy constructor

ptrdiff_t

lpos()

const uchar *

operator*()

returns the current matrix element

MatConstIterator &

operator++()

increments the iterator

MatConstIterator

operator++(int)

increments the iterator

MatConstIterator &

operator+=(ptrdiff_t ofs)

shifts the iterator forward by the specified number of elements

MatConstIterator &

operator--()

decrements the iterator

MatConstIterator

operator--(int)

decrements the iterator

MatConstIterator &

operator-=(ptrdiff_t ofs)

shifts the iterator backward by the specified number of elements

MatConstIterator &

operator=(const MatConstIterator & it)

copy operator

const uchar *

operator[](ptrdiff_t i)

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

Point

pos()

returns the current iterator position

void

pos(int * _idx)

returns the current iterator position

void

seek(
    const int * _idx,
    bool relative = false )

void

seek(
    ptrdiff_t ofs,
    bool relative = false )

Public Attributes#

Public Attributes inherited from cv::MatConstIterator

Return

Name

Description

size_t

elemSize

const Mat *

m

const uchar *

ptr

const uchar *

sliceEnd

const uchar *

sliceStart

Detailed Description#

Matrix read-only iterator.

Member Typedef Documentation#

difference_type#

typedef ptrdiff_t cv::MatConstIterator_::difference_type

iterator_category#

typedef std::random_access_iterator_tag cv::MatConstIterator_::iterator_category

pointer#

typedef const Tp * cv::MatConstIterator::pointer

reference#

typedef const Tp & cv::MatConstIterator::reference

value_type#

typedef Tp cv::MatConstIterator::value_type

Constructor & Destructor Documentation#

MatConstIterator_()#

cv::MatConstIterator_::MatConstIterator_()

default constructor

MatConstIterator_()#

cv::MatConstIterator_::MatConstIterator_(const Mat_< _Tp > * _m)

constructor that sets the iterator to the beginning of the matrix

MatConstIterator_()#

cv::MatConstIterator_::MatConstIterator_(
const Mat_< _Tp > * _m,
const int * _idx )

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

MatConstIterator_()#

cv::MatConstIterator_::MatConstIterator_(
const Mat_< _Tp > * _m,
int _row,
int _col = 0 )

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

MatConstIterator_()#

cv::MatConstIterator_::MatConstIterator_(
const Mat_< _Tp > * _m,
Point _pt )

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

MatConstIterator_()#

cv::MatConstIterator_::MatConstIterator_(const MatConstIterator_ & it)

copy constructor

Member Function Documentation#

operator*()#

const Tp & cv::MatConstIterator::operator*()

returns the current matrix element

operator++()#

MatConstIterator_ & cv::MatConstIterator_::operator++()

increments the iterator

operator++()#

MatConstIterator_ cv::MatConstIterator_::operator++(int)

increments the iterator

operator+=()#

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

shifts the iterator forward by the specified number of elements

operator–()#

MatConstIterator_ & cv::MatConstIterator_::operator–()

decrements the iterator

operator–()#

MatConstIterator_ cv::MatConstIterator_::operator–(int)

decrements the iterator

operator-=()#

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

shifts the iterator backward by the specified number of elements

operator=()#

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

copy operator

operator#

const Tp & cv::MatConstIterator::operator[](ptrdiff_t i)

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

pos()#

Point cv::MatConstIterator_::pos()

returns the current iterator position

Source file#

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