@Namespace(value="op") @NoOffset @Properties(inherit=openpose.class) public class Matrix extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Matrix() |
Matrix(int rows,
int cols,
int type)
Analog to cv::Mat(int rows, int cols, int type, void *data, size_t step=AUTO_STEP)
|
Matrix(int rows,
int cols,
int type,
Pointer cvMatPtr)
Analog to cv::Mat(int rows, int cols, int type, void *data, size_t step=AUTO_STEP)
Very important: This Matrix will only "borrow" this pointer, so the caller must make sure to maintain the
memory allocated until this Matrix destructor is called and also to handle the ucharPtr memory deallocation.
|
Matrix(long size)
Native array allocator.
|
Matrix(Pointer cvMatPtr) |
Modifier and Type | Method and Description |
---|---|
int |
channels() |
int |
checkVector(int elemChannels) |
int |
checkVector(int elemChannels,
int depth,
boolean requireContinuous) |
Matrix |
clone() |
int |
cols()
Equivalent to cv::Mat::cols
|
void |
copyTo(Matrix outputMat) |
BytePointer |
data()
Equivalent to cv::Mat::data
|
BytePointer |
dataConst()
Equivalent to cv::Mat::data
|
BytePointer |
dataPseudoConst()
Similar to dataConst(), but it allows the data to be edited.
|
int |
depth() |
int |
dims()
Equivalent to cv::Mat::dims
|
long |
elemSize() |
long |
elemSize1() |
boolean |
empty() |
static Matrix |
eye(int rows,
int cols,
int type)
Equivalent to cv::Mat::eye
|
Pointer |
getConstCvMat() |
Pointer |
getCvMat() |
Matrix |
getPointer(long i) |
boolean |
isContinuous()
Equivalent to their analog cv::Mat functions
|
boolean |
isSubmatrix() |
Matrix |
position(long position) |
int |
rows()
Equivalent to cv::Mat::rows
|
void |
setTo(double value)
Similar to their analog cv::Mat functions
|
int |
size(int dimension)
Equivalent to cv::Mat::size[dimension]
|
static void |
splitCvMatIntoVectorMatrix(Matrix matrixesResized,
Pointer cvMatPtr) |
long |
step1() |
long |
step1(int i) |
long |
total() |
int |
type() |
address, 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, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public Matrix(long size)
Pointer.position(long)
.public Matrix()
public Matrix(@Const Pointer cvMatPtr)
cvMatPtr
- should be a cv::Mat element or it will provoke a core dumped. Done to
avoid explicitly exposing 3rdparty libraries on the headers.public Matrix(int rows, int cols, int type)
public Matrix(int rows, int cols, int type, Pointer cvMatPtr)
ucharPtr
- should be a cv::Mat::data (or analog) element or it will provoke a core dumped. Done to
avoid explicitly exposing 3rdparty libraries on the headers.public Matrix getPointer(long i)
getPointer
in class Pointer
public static void splitCvMatIntoVectorMatrix(@StdVector Matrix matrixesResized, @Const Pointer cvMatPtr)
matrixesResized
- For 3-D OpenPose, if >1, it will assume the image is composed of
numberImagesStackedHorizontally horizontally stacked images. It must be already resized to avoid
internally allocating/removing elements of std::vector (to avoid errors if using different std DLLs)cvMatPtr
- should be a cv::Mat element or it will provoke a core dumped. Done to
avoid explicitly exposing 3rdparty libraries on the headers.public Pointer getCvMat()
@Cast(value="unsigned char*") public BytePointer data()
@Cast(value="const unsigned char*") public BytePointer dataConst()
@Cast(value="unsigned char*") public BytePointer dataPseudoConst()
public int cols()
public int rows()
public int size(int dimension)
public int dims()
@Cast(value="bool") public boolean isContinuous()
public int type()
public int depth()
public int channels()
public int checkVector(int elemChannels, int depth, @Cast(value="const bool") boolean requireContinuous)
public int checkVector(int elemChannels)
public void setTo(double value)
Copyright © 2022. All rights reserved.