[−][src]Struct opencv::core::SparseMatConstIterator
Read-Only Sparse Matrix Iterator.
Here is how to use the iterator to compute the sum of floating-point sparse matrix elements:
\code
SparseMatConstIterator it = m.begin(), it_end = m.end();
double s = 0;
CV_Assert( m.type() == CV_32F );
for( ; it != it_end; ++it )
s += it.value
Implementations
impl SparseMatConstIterator
[src]
pub fn as_raw_SparseMatConstIterator(&self) -> *const c_void
[src]
pub fn as_raw_mut_SparseMatConstIterator(&mut self) -> *mut c_void
[src]
impl SparseMatConstIterator
[src]
pub fn default() -> Result<SparseMatConstIterator>
[src]
the default constructor
pub fn new(_m: &SparseMat) -> Result<SparseMatConstIterator>
[src]
the full constructor setting the iterator to the first sparse matrix element
pub fn copy(it: &SparseMatConstIterator) -> Result<SparseMatConstIterator>
[src]
the copy constructor
Trait Implementations
impl Boxed for SparseMatConstIterator
[src]
unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
fn into_raw(self) -> *mut c_void
[src]
fn as_raw(&self) -> *const c_void
[src]
fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl Drop for SparseMatConstIterator
[src]
impl Send for SparseMatConstIterator
[src]
impl SparseMatConstIteratorTrait for SparseMatConstIterator
[src]
fn as_raw_SparseMatConstIterator(&self) -> *const c_void
[src]
fn as_raw_mut_SparseMatConstIterator(&mut self) -> *mut c_void
[src]
fn m(&self) -> SparseMat
[src]
fn hashidx(&self) -> size_t
[src]
fn set_hashidx(&mut self, val: size_t)
[src]
fn ptr(&mut self) -> &mut u8
[src]
fn set_ptr(&mut self, val: &mut u8)
[src]
fn node(&self) -> Result<SparseMat_Node>
[src]
fn seek_end(&mut self) -> Result<()>
[src]
Auto Trait Implementations
impl RefUnwindSafe for SparseMatConstIterator
[src]
impl !Sync for SparseMatConstIterator
[src]
impl Unpin for SparseMatConstIterator
[src]
impl UnwindSafe for SparseMatConstIterator
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,