Class cv::SparseMatIterator#
Read-write Sparse Matrix Iterator. View details
#include <opencv2/core/mat.hpp>Collaboration diagram for cv::SparseMatIterator:
Public Member Functions#
Public Member Functions inherited from cv::SparseMatConstIterator
Return |
Name |
Description |
|---|---|---|
the default constructor |
||
the full constructor setting the iterator to the first sparse matrix element |
||
the copy constructor |
||
returns the current node of the sparse matrix. it.node->idx is the current element index |
||
moves iterator to the next element |
||
moves iterator to the next element |
||
moves iterator to the previous element |
||
moves iterator to the previous element |
||
the assignment operator |
||
|
moves iterator to the element after the last element |
|
|
template method returning the current matrix element |
Public Attributes#
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()#
cv::SparseMatIterator::SparseMatIterator()
the default constructor
SparseMatIterator()#
cv::SparseMatIterator::SparseMatIterator(const SparseMatIterator & it)
the copy constructor
SparseMatIterator()#
cv::SparseMatIterator::SparseMatIterator(SparseMat * _m)
the full constructor setting the iterator to the first sparse matrix element
SparseMatIterator()#
cv::SparseMatIterator::SparseMatIterator(
SparseMat * _m,
const int * idx )
the full constructor setting the iterator to the specified sparse matrix element
Member Function Documentation#
node()#
SparseMat::Node * cv::SparseMatIterator::node()
returns pointer to the current sparse matrix node. it.node->idx is the index of the current element (do not modify it!)
operator++()#
SparseMatIterator & cv::SparseMatIterator::operator++()
moves iterator to the next element
operator++()#
SparseMatIterator cv::SparseMatIterator::operator++(int)
moves iterator to the next element
operator=()#
SparseMatIterator & cv::SparseMatIterator::operator=(const SparseMatIterator & it)
the assignment operator
value()#
template<typename _Tp>
_Tp & cv::SparseMatIterator::value()
returns read-write reference to the current sparse matrix element
Source file#
The documentation for this class was generated from the following file:
opencv2/core/mat.hpp