@Properties(inherit=opencv_core.class) public class CvMat extends AbstractCvMat
uchar pixval = CV_MAT_ELEM(grayimg, uchar, i, j) CV_MAT_ELEM(cameraMatrix, float, 0, 2) = image.width*0.5f;
To access multiple-channel matrices, you can use CV_MAT_ELEM(matrix, type, i, j\*nchannels + channel_idx).
AbstractCvMat.ReleaseDeallocatorPointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounterpointer| Constructor and Description |
|---|
CvMat()
Deprecated.
Default native constructor.
|
CvMat(long size)
Deprecated.
Native array allocator.
|
CvMat(Pointer p)
Deprecated.
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
cols()
Deprecated.
|
CvMat |
cols(int setter)
Deprecated.
|
DoublePointer |
data_db()
Deprecated.
|
CvMat |
data_db(DoublePointer setter)
Deprecated.
|
FloatPointer |
data_fl()
Deprecated.
|
CvMat |
data_fl(FloatPointer setter)
Deprecated.
|
IntPointer |
data_i()
Deprecated.
|
CvMat |
data_i(IntPointer setter)
Deprecated.
|
BytePointer |
data_ptr()
Deprecated.
|
CvMat |
data_ptr(BytePointer setter)
Deprecated.
|
ShortPointer |
data_s()
Deprecated.
|
CvMat |
data_s(ShortPointer setter)
Deprecated.
|
CvMat |
getPointer(long i)
Deprecated.
|
int |
hdr_refcount()
Deprecated.
|
CvMat |
hdr_refcount(int setter)
Deprecated.
|
int |
height()
Deprecated.
|
CvMat |
height(int setter)
Deprecated.
|
CvMat |
position(long position)
Deprecated.
|
IntPointer |
refcount()
Deprecated.
|
CvMat |
refcount(IntPointer setter)
Deprecated.
|
int |
rows()
Deprecated.
|
CvMat |
rows(int setter)
Deprecated.
|
int |
step()
Deprecated.
|
CvMat |
step(int setter)
Deprecated.
|
int |
type()
Deprecated.
|
CvMat |
type(int setter)
Deprecated.
|
int |
width()
Deprecated.
|
CvMat |
width(int setter)
Deprecated.
|
arrayChannels, arrayData, arrayDepth, arrayHeight, arrayOrigin, arrayOrigin, arrayROI, arraySize, arrayStep, arrayWidth, asIplImage, channels, clone, create, create, create, create, createHeader, createHeader, createHeader, createHeaderThreadLocal, createHeaderThreadLocal, createHeaderThreadLocal, createThreadLocal, createThreadLocal, createThreadLocal, depth, elemSize, empty, get, get, get, get, get, get, get, getByteBuffer, getDoubleBuffer, getFloatBuffer, getIntBuffer, getShortBuffer, isContinuous, length, matType, nChannels, put, put, put, put, put, put, put, put, release, reset, size, toString, toString, total, typecreateBuffer, createBuffer, createIndexer, createIndexer, cvSize, getByteBuffer, getDoubleBuffer, getFloatBuffer, getIntBuffer, getShortBuffer, highValueaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic CvMat()
public CvMat(long size)
Pointer.position(long).public CvMat(Pointer p)
Pointer(Pointer).public CvMat getPointer(long i)
getPointer in class Pointerpublic int type()
type in class AbstractCvMatpublic CvMat type(int setter)
type in class AbstractCvMatpublic int step()
step in class AbstractCvMatpublic CvMat step(int setter)
public IntPointer refcount()
public CvMat refcount(IntPointer setter)
public int hdr_refcount()
public CvMat hdr_refcount(int setter)
@Name(value="data.ptr") @Cast(value="uchar*") public BytePointer data_ptr()
data_ptr in class AbstractCvMatpublic CvMat data_ptr(BytePointer setter)
@Name(value="data.s") public ShortPointer data_s()
data_s in class AbstractCvMatpublic CvMat data_s(ShortPointer setter)
@Name(value="data.i") public IntPointer data_i()
data_i in class AbstractCvMatpublic CvMat data_i(IntPointer setter)
@Name(value="data.fl") public FloatPointer data_fl()
data_fl in class AbstractCvMatpublic CvMat data_fl(FloatPointer setter)
@Name(value="data.db") public DoublePointer data_db()
data_db in class AbstractCvMatpublic CvMat data_db(DoublePointer setter)
public int rows()
rows in class AbstractCvMatpublic CvMat rows(int setter)
public int height()
public CvMat height(int setter)
public int cols()
cols in class AbstractCvMatpublic CvMat cols(int setter)
public int width()
public CvMat width(int setter)
Copyright © 2025. All rights reserved.