|
OpenCV453
|
Read-Only Sparse Matrix Iterator. [詳解]
#include <mat.hpp>
cv::SparseMatConstIterator_< _Tp >, cv::SparseMatIteratorに継承されています。
公開メンバ関数 | |
| SparseMatConstIterator () | |
| the default constructor | |
| SparseMatConstIterator (const SparseMat *_m) | |
| the full constructor setting the iterator to the first sparse matrix element | |
| SparseMatConstIterator (const SparseMatConstIterator &it) | |
| the copy constructor | |
| SparseMatConstIterator & | operator= (const SparseMatConstIterator &it) |
| the assignment operator | |
| template<typename _Tp > | |
| const _Tp & | value () const |
| template method returning the current matrix element | |
| const SparseMat::Node * | node () const |
| returns the current node of the sparse matrix. it.node->idx is the current element index | |
| SparseMatConstIterator & | operator-- () |
| moves iterator to the previous element | |
| SparseMatConstIterator | operator-- (int) |
| moves iterator to the previous element | |
| SparseMatConstIterator & | operator++ () |
| moves iterator to the next element | |
| SparseMatConstIterator | operator++ (int) |
| moves iterator to the next element | |
| void | seekEnd () |
| moves iterator to the element after the last element | |
公開変数類 | |
| const SparseMat * | m |
| size_t | hashidx |
| uchar * | ptr |
Read-Only Sparse Matrix Iterator.
Here is how to use the iterator to compute the sum of floating-point sparse matrix elements: