@Namespace(value="cv") @NoOffset public static class opencv_core.SparseMatConstIterator extends Pointer
Here is how to use the iterator to compute the sum of floating-point sparse matrix elements:
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<float>();
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
opencv_core.SparseMatConstIterator()
the default constructor
|
opencv_core.SparseMatConstIterator(long size)
Native array allocator.
|
opencv_core.SparseMatConstIterator(opencv_core.SparseMat _m)
the full constructor setting the iterator to the first sparse matrix element
|
opencv_core.SparseMatConstIterator(opencv_core.SparseMatConstIterator it)
the copy constructor
|
opencv_core.SparseMatConstIterator(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
hashidx() |
opencv_core.SparseMatConstIterator |
hashidx(long hashidx) |
opencv_core.SparseMatConstIterator |
increment()
moves iterator to the next element
|
opencv_core.SparseMatConstIterator |
increment(int arg0)
moves iterator to the next element
|
opencv_core.SparseMat |
m() |
opencv_core.SparseMat.Node |
node()
returns the current node of the sparse matrix.
|
opencv_core.SparseMatConstIterator |
position(long position) |
BytePointer |
ptr() |
opencv_core.SparseMatConstIterator |
ptr(BytePointer ptr) |
opencv_core.SparseMatConstIterator |
put(opencv_core.SparseMatConstIterator it)
the assignment operator
|
void |
seekEnd()
moves iterator to the element after the last element
|
address, asBuffer, asByteBuffer, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, hashCode, isNull, limit, limit, maxBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, position, put, setNull, sizeof, toString, totalBytes, withDeallocator, zeropublic opencv_core.SparseMatConstIterator(Pointer p)
Pointer.Pointer(Pointer).public opencv_core.SparseMatConstIterator(long size)
Pointer.position(long).public opencv_core.SparseMatConstIterator()
public opencv_core.SparseMatConstIterator(@Const opencv_core.SparseMat _m)
public opencv_core.SparseMatConstIterator(@Const@ByRef opencv_core.SparseMatConstIterator it)
public opencv_core.SparseMatConstIterator position(long position)
@ByRef @Name(value="operator =") public opencv_core.SparseMatConstIterator put(@Const@ByRef opencv_core.SparseMatConstIterator it)
@Const public opencv_core.SparseMat.Node node()
@ByRef @Name(value="operator ++") public opencv_core.SparseMatConstIterator increment()
@ByVal @Name(value="operator ++") public opencv_core.SparseMatConstIterator increment(int arg0)
public void seekEnd()
@MemberGetter @Const public opencv_core.SparseMat m()
public opencv_core.SparseMatConstIterator hashidx(long hashidx)
@Cast(value="uchar*") public BytePointer ptr()
public opencv_core.SparseMatConstIterator ptr(BytePointer ptr)
Copyright © 2016. All rights reserved.