@Namespace(value="cv")
@NoOffset
public static class opencv_core.SparseMatConstIterator
extends org.bytedeco.javacpp.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>();
| Constructor and Description |
|---|
SparseMatConstIterator()
the default constructor
|
SparseMatConstIterator(long size)
Native array allocator.
|
SparseMatConstIterator(opencv_core.SparseMat _m)
the full constructor setting the iterator to the first sparse matrix element
|
SparseMatConstIterator(opencv_core.SparseMatConstIterator it)
the copy constructor
|
SparseMatConstIterator(org.bytedeco.javacpp.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) |
org.bytedeco.javacpp.BytePointer |
ptr() |
opencv_core.SparseMatConstIterator |
ptr(org.bytedeco.javacpp.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, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic SparseMatConstIterator(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).public SparseMatConstIterator(long size)
Pointer.position(long).public SparseMatConstIterator()
public SparseMatConstIterator(@Const
opencv_core.SparseMat _m)
public SparseMatConstIterator(@Const @ByRef
opencv_core.SparseMatConstIterator it)
public opencv_core.SparseMatConstIterator position(long position)
position in class org.bytedeco.javacpp.Pointer@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()
@Cast(value="size_t") public long hashidx()
public opencv_core.SparseMatConstIterator hashidx(long hashidx)
@Cast(value="uchar*") public org.bytedeco.javacpp.BytePointer ptr()
public opencv_core.SparseMatConstIterator ptr(org.bytedeco.javacpp.BytePointer ptr)
Copyright © 2018. All rights reserved.