Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of gr-peach-opencv-project-sd-card by
SparseMatIterator Class Reference
[Basic structures]
Read-write Sparse Matrix Iterator. More...
#include <mat.hpp>
Inherits cv::SparseMatConstIterator.
Public Member Functions | |
SparseMatIterator () | |
the default constructor | |
SparseMatIterator (SparseMat *_m) | |
the full constructor setting the iterator to the first sparse matrix element | |
SparseMatIterator (SparseMat *_m, const int *idx) | |
the full constructor setting the iterator to the specified sparse matrix element | |
SparseMatIterator (const SparseMatIterator &it) | |
the copy constructor | |
SparseMatIterator & | operator= (const SparseMatIterator &it) |
the assignment operator | |
template<typename _Tp > | |
_Tp & | value () const |
returns read-write reference to the current sparse matrix element | |
SparseMat::Node * | node () const |
returns pointer to the current sparse matrix node. it.node->idx is the index of the current element (do not modify it!) | |
SparseMatIterator & | operator++ () |
moves iterator to the next element | |
SparseMatIterator | 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 | |
void | seekEnd () |
moves iterator to the element after the last element |
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.
Definition at line 3003 of file mat.hpp.
Constructor & Destructor Documentation
the default constructor
SparseMatIterator | ( | SparseMat * | _m ) |
the full constructor setting the iterator to the first sparse matrix element
SparseMatIterator | ( | SparseMat * | _m, |
const int * | idx | ||
) |
the full constructor setting the iterator to the specified sparse matrix element
SparseMatIterator | ( | const SparseMatIterator & | it ) |
the copy constructor
Member Function Documentation
SparseMat::Node* node | ( | ) | const |
returns pointer to the current sparse matrix node. it.node->idx is the index of the current element (do not modify it!)
Reimplemented from SparseMatConstIterator.
SparseMatIterator& operator++ | ( | ) |
moves iterator to the next element
Reimplemented from SparseMatConstIterator.
SparseMatIterator operator++ | ( | int | ) |
moves iterator to the next element
Reimplemented from SparseMatConstIterator.
SparseMatConstIterator operator-- | ( | int | ) | [inherited] |
moves iterator to the previous element
SparseMatConstIterator& operator-- | ( | ) | [inherited] |
moves iterator to the previous element
SparseMatIterator& operator= | ( | const SparseMatIterator & | it ) |
the assignment operator
void seekEnd | ( | ) | [inherited] |
moves iterator to the element after the last element
_Tp& value | ( | ) | const |
returns read-write reference to the current sparse matrix element
Reimplemented from SparseMatConstIterator.
Generated on Tue Jul 12 2022 14:48:00 by
