Class cv::MatIterator_#

Matrix read-write iterator.

Collaboration diagram for cv::MatIterator_:

cv::MatIterator_< _Tp > Node1 cv::MatIterator_< _Tp >   + MatIterator_() + MatIterator_() + MatIterator_() + MatIterator_() + MatIterator_() + MatIterator_() + operator*() + operator++() + operator++() + operator+=() + operator--() + operator--() + operator-=() + operator=() + operator[]() Node2 cv::MatConstIterator _< _Tp >   + MatConstIterator_() + MatConstIterator_() + MatConstIterator_() + MatConstIterator_() + MatConstIterator_() + MatConstIterator_() + operator*() + operator++() + operator++() + operator+=() and 6 more... Node2->Node1 Node3 cv::MatConstIterator   + MatConstIterator() + MatConstIterator() + MatConstIterator() + MatConstIterator() + MatConstIterator() + MatConstIterator() + lpos() + operator*() + operator++() + operator++() and 10 more... Node3->Node2 Node4 cv::Mat   + Mat() + Mat() + Mat() + Mat() + Mat() + Mat() + Mat() + Mat() + Mat() + Mat() and 152 more... + diag() + eye() + eye() + getDefaultAllocator() + getStdAllocator() + ones() + ones() + ones() + ones() + setDefaultAllocator() + zeros() + zeros() + zeros() + zeros() # forEach_impl() Node4->Node3 +m Node5 int     Node5->Node4 +cols +dims +dummy +flags +rows Node6 uint8_t     Node6->Node3 +ptr +sliceEnd +sliceStart Node6->Node4 +data +dataend +datalimit +datastart Node7 cv::MatAllocator   + MatAllocator() + ~MatAllocator() + allocate() + allocate() + copy() + deallocate() + download() + getBufferPoolController() + map() + unmap() + upload() Node7->Node4 +allocator Node8 UMatData *     Node8->Node4 +u Node9 MatSize     Node9->Node4 +size Node10 MatStep     Node10->Node4 +step Node11 size_t     Node11->Node3 +elemSize

cv::MatIterator_< _Tp > Node1 cv::MatIterator_< _Tp >   + MatIterator_() + MatIterator_() + MatIterator_() + MatIterator_() + MatIterator_() + MatIterator_() + operator*() + operator++() + operator++() + operator+=() + operator--() + operator--() + operator-=() + operator=() + operator[]() Node2 cv::MatConstIterator _< _Tp >   + MatConstIterator_() + MatConstIterator_() + MatConstIterator_() + MatConstIterator_() + MatConstIterator_() + MatConstIterator_() + operator*() + operator++() + operator++() + operator+=() and 6 more... Node2->Node1 Node3 cv::MatConstIterator   + MatConstIterator() + MatConstIterator() + MatConstIterator() + MatConstIterator() + MatConstIterator() + MatConstIterator() + lpos() + operator*() + operator++() + operator++() and 10 more... Node3->Node2 Node4 cv::Mat   + Mat() + Mat() + Mat() + Mat() + Mat() + Mat() + Mat() + Mat() + Mat() + Mat() and 152 more... + diag() + eye() + eye() + getDefaultAllocator() + getStdAllocator() + ones() + ones() + ones() + ones() + setDefaultAllocator() + zeros() + zeros() + zeros() + zeros() # forEach_impl() Node4->Node3 +m Node5 int     Node5->Node4 +cols +dims +dummy +flags +rows Node6 uint8_t     Node6->Node3 +ptr +sliceEnd +sliceStart Node6->Node4 +data +dataend +datalimit +datastart Node7 cv::MatAllocator   + MatAllocator() + ~MatAllocator() + allocate() + allocate() + copy() + deallocate() + download() + getBufferPoolController() + map() + unmap() + upload() Node7->Node4 +allocator Node8 UMatData *     Node8->Node4 +u Node9 MatSize     Node9->Node4 +size Node10 MatStep     Node10->Node4 +step Node11 size_t     Node11->Node3 +elemSize

Public Types#

Public Types inherited from cv::MatConstIterator_

Return

Name

Description

ptrdiff_t

difference_type

std::random_access_iterator_tag

iterator_category

const _Tp *

pointer

const _Tp &

reference

_Tp

value_type

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_< _Tp > * _m)

constructor that sets the iterator to the beginning of the matrix

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

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

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

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

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

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

MatConstIterator_(const MatConstIterator_ & it)

copy constructor

const _Tp &

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 _Tp &

operator[](ptrdiff_t i)

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

Point

pos()

returns the current iterator position

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-write iterator.

Examples
samples/cpp/tutorial_code/core/how_to_scan_images/how_to_scan_images.cpp.

Member Typedef Documentation#

iterator_category#

typedef std::random_access_iterator_tag cv::MatIterator_::iterator_category

pointer#

typedef Tp * cv::MatIterator::pointer

reference#

typedef Tp & cv::MatIterator::reference

Constructor & Destructor Documentation#

MatIterator_()#

cv::MatIterator_::MatIterator_()

the default constructor

MatIterator_()#

cv::MatIterator_::MatIterator_(const MatIterator_ & it)

copy constructor

MatIterator_()#

cv::MatIterator_::MatIterator_(Mat_< _Tp > * _m)

constructor that sets the iterator to the beginning of the matrix

MatIterator_()#

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

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

MatIterator_()#

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

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

MatIterator_()#

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

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

Member Function Documentation#

operator*()#

Tp & cv::MatIterator::operator*()

returns the current matrix element

operator++()#

MatIterator_ & cv::MatIterator_::operator++()

increments the iterator

operator++()#

MatIterator_ cv::MatIterator_::operator++(int)

increments the iterator

operator+=()#

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

shifts the iterator forward by the specified number of elements

operator–()#

MatIterator_ & cv::MatIterator_::operator–()

decrements the iterator

operator–()#

MatIterator_ cv::MatIterator_::operator–(int)

decrements the iterator

operator-=()#

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

shifts the iterator backward by the specified number of elements

operator=()#

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

copy operator

operator#

Tp & cv::MatIterator::operator[](ptrdiff_t i)

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

Source file#

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