Read-Only Sparse Matrix Iterator.
More...
#include <opencv2/core/mat.hpp>
Read-Only Sparse Matrix Iterator.
Here is how to use the iterator to compute the sum of floating-point sparse matrix elements:
double s = 0;
for( ; it != it_end; ++it )
s += it.value<float>();
◆ SparseMatConstIterator() [1/3]
| cv::SparseMatConstIterator::SparseMatConstIterator |
( |
| ) |
|
◆ SparseMatConstIterator() [2/3]
| cv::SparseMatConstIterator::SparseMatConstIterator |
( |
const SparseMat * |
_m | ) |
|
the full constructor setting the iterator to the first sparse matrix element
◆ SparseMatConstIterator() [3/3]
◆ node()
returns the current node of the sparse matrix. it.node->idx is the current element index
◆ operator++() [1/2]
moves iterator to the next element
◆ operator++() [2/2]
moves iterator to the next element
◆ operator--() [1/2]
moves iterator to the previous element
◆ operator--() [2/2]
moves iterator to the previous element
◆ operator=()
◆ seekEnd()
| void cv::SparseMatConstIterator::seekEnd |
( |
| ) |
|
moves iterator to the element after the last element
◆ value()
template<typename _Tp >
| const _Tp& cv::SparseMatConstIterator::value |
( |
| ) |
const |
template method returning the current matrix element
◆ hashidx
| size_t cv::SparseMatConstIterator::hashidx |
| const SparseMat* cv::SparseMatConstIterator::m |
◆ ptr
| uchar* cv::SparseMatConstIterator::ptr |
The documentation for this class was generated from the following file: