OpenCV  4.1.1-pre
Open Source Computer Vision
Looking for a C++ dev who knows OpenCV?
I'm looking for work. Hire me!
cv::SparseMatIterator Class Reference

Read-write Sparse Matrix Iterator. More...

#include <opencv2/core/mat.hpp>

Inheritance diagram for cv::SparseMatIterator:
Collaboration diagram for cv::SparseMatIterator:

Public Member Functions

 SparseMatIterator ()
 the default constructor More...
 
 SparseMatIterator (SparseMat *_m)
 the full constructor setting the iterator to the first sparse matrix element More...
 
 SparseMatIterator (SparseMat *_m, const int *idx)
 the full constructor setting the iterator to the specified sparse matrix element More...
 
 SparseMatIterator (const SparseMatIterator &it)
 the copy constructor More...
 
SparseMat::Nodenode () const
 returns pointer to the current sparse matrix node. it.node->idx is the index of the current element (do not modify it!) More...
 
SparseMatIteratoroperator++ ()
 moves iterator to the next element More...
 
SparseMatIterator operator++ (int)
 moves iterator to the next element More...
 
SparseMatConstIteratoroperator-- ()
 moves iterator to the previous element More...
 
SparseMatConstIterator operator-- (int)
 moves iterator to the previous element More...
 
SparseMatIteratoroperator= (const SparseMatIterator &it)
 the assignment operator More...
 
void seekEnd ()
 moves iterator to the element after the last element More...
 
template<typename _Tp >
_Tp & value () const
 returns read-write reference to the current sparse matrix element More...
 

Public Attributes

size_t hashidx
 
const SparseMatm
 
ucharptr
 

Detailed Description

Read-write Sparse Matrix Iterator.

The class is similar to cv::SparseMatConstIterator, but can be used for in-place modification of the matrix elements.

Constructor & Destructor Documentation

◆ SparseMatIterator() [1/4]

cv::SparseMatIterator::SparseMatIterator ( )

the default constructor

◆ SparseMatIterator() [2/4]

cv::SparseMatIterator::SparseMatIterator ( SparseMat _m)

the full constructor setting the iterator to the first sparse matrix element

◆ SparseMatIterator() [3/4]

cv::SparseMatIterator::SparseMatIterator ( SparseMat _m,
const int *  idx 
)

the full constructor setting the iterator to the specified sparse matrix element

◆ SparseMatIterator() [4/4]

cv::SparseMatIterator::SparseMatIterator ( const SparseMatIterator it)

the copy constructor

Member Function Documentation

◆ node()

SparseMat::Node* cv::SparseMatIterator::node ( ) const

returns pointer to the current sparse matrix node. it.node->idx is the index of the current element (do not modify it!)

◆ operator++() [1/2]

SparseMatIterator& cv::SparseMatIterator::operator++ ( )

moves iterator to the next element

◆ operator++() [2/2]

SparseMatIterator cv::SparseMatIterator::operator++ ( int  )

moves iterator to the next element

◆ operator--() [1/2]

SparseMatConstIterator& cv::SparseMatConstIterator::operator-- ( )
inherited

moves iterator to the previous element

◆ operator--() [2/2]

SparseMatConstIterator cv::SparseMatConstIterator::operator-- ( int  )
inherited

moves iterator to the previous element

◆ operator=()

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

the assignment operator

◆ seekEnd()

void cv::SparseMatConstIterator::seekEnd ( )
inherited

moves iterator to the element after the last element

◆ value()

template<typename _Tp >
_Tp& cv::SparseMatIterator::value ( ) const

returns read-write reference to the current sparse matrix element

Member Data Documentation

◆ hashidx

size_t cv::SparseMatConstIterator::hashidx
inherited

◆ m

const SparseMat* cv::SparseMatConstIterator::m
inherited

◆ ptr

uchar* cv::SparseMatConstIterator::ptr
inherited

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