@Namespace(value="cv") @NoOffset @Properties(inherit=opencv_core.class) public class 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, Pointer.ReferenceCounter
Constructor and Description |
---|
SparseMatConstIterator()
the default constructor
|
SparseMatConstIterator(long size)
Native array allocator.
|
SparseMatConstIterator(Pointer p)
Pointer cast constructor.
|
SparseMatConstIterator(SparseMat _m)
the full constructor setting the iterator to the first sparse matrix element
|
SparseMatConstIterator(SparseMatConstIterator it)
the copy constructor
|
Modifier and Type | Method and Description |
---|---|
long |
hashidx() |
SparseMatConstIterator |
hashidx(long setter) |
SparseMatConstIterator |
increment()
moves iterator to the next element
|
SparseMatConstIterator |
increment(int arg0)
moves iterator to the next element
|
SparseMat |
m() |
SparseMatConstIterator |
m(SparseMat setter) |
SparseMat.Node |
node()
returns the current node of the sparse matrix.
|
SparseMatConstIterator |
position(long position) |
BytePointer |
ptr() |
SparseMatConstIterator |
ptr(BytePointer setter) |
SparseMatConstIterator |
put(SparseMatConstIterator it)
the assignment operator
|
void |
seekEnd()
moves iterator to the element after the last element
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public SparseMatConstIterator(Pointer p)
Pointer.Pointer(Pointer)
.public SparseMatConstIterator(long size)
Pointer.position(long)
.public SparseMatConstIterator()
public SparseMatConstIterator(@Const SparseMat _m)
public SparseMatConstIterator(@Const @ByRef SparseMatConstIterator it)
public SparseMatConstIterator position(long position)
@ByRef @Name(value="operator =") public SparseMatConstIterator put(@Const @ByRef SparseMatConstIterator it)
@Const public SparseMat.Node node()
@ByRef @Name(value="operator ++") public SparseMatConstIterator increment()
@ByVal @Name(value="operator ++") public SparseMatConstIterator increment(int arg0)
public void seekEnd()
public SparseMatConstIterator m(SparseMat setter)
public SparseMatConstIterator hashidx(long setter)
@Cast(value="uchar*") public BytePointer ptr()
public SparseMatConstIterator ptr(BytePointer setter)
Copyright © 2020. All rights reserved.