|
opencv
2.2.0
|
#include <core.hpp>
Public Member Functions | |
| 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 next element | |
| SparseMatConstIterator | operator++ (int) |
| moves iterator to the next element | |
| SparseMatConstIterator & | operator-- () |
| moves iterator to the previous element | |
| SparseMatConstIterator | operator-- (int) |
| moves iterator to the previous element | |
| SparseMatConstIterator & | operator= (const SparseMatConstIterator &it) |
| the assignment operator | |
| void | seekEnd () |
| moves iterator to the element after the last element | |
| 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 | |
| template<typename _Tp > | |
| const _Tp & | value () const |
| template method returning the current matrix element | |
Public Attributes | |
| size_t | hashidx |
| const SparseMat * | m |
| uchar * | ptr |
Read-Only Sparse Matrix Iterator. Here is how to use the iterator to compute the sum of floating-point sparse matrix elements:
|
inline |
the default constructor
| cv::SparseMatConstIterator::SparseMatConstIterator | ( | const SparseMat * | _m | ) |
the full constructor setting the iterator to the first sparse matrix element
|
inline |
the copy constructor
|
inline |
returns the current node of the sparse matrix. it.node->idx is the current element index
| SparseMatConstIterator& cv::SparseMatConstIterator::operator++ | ( | ) |
moves iterator to the next element
|
inline |
moves iterator to the next element
| SparseMatConstIterator& cv::SparseMatConstIterator::operator-- | ( | ) |
moves iterator to the previous element
| SparseMatConstIterator cv::SparseMatConstIterator::operator-- | ( | int | ) |
moves iterator to the previous element
|
inline |
the assignment operator
|
inline |
moves iterator to the element after the last element
|
inline |
template method returning the current matrix element
| size_t cv::SparseMatConstIterator::hashidx |
| const SparseMat* cv::SparseMatConstIterator::m |
| uchar* cv::SparseMatConstIterator::ptr |
1.8.2