@Namespace(value="cv::cuda") @NoOffset @Properties(inherit=opencv_core.class) public class GpuMatND extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
GpuMatND()
default constructor
|
GpuMatND(GpuMatND arg0) |
GpuMatND(int[] size,
int type) |
GpuMatND(int[] size,
int type,
Pointer data) |
GpuMatND(int[] size,
int type,
Pointer data,
SizeTPointer step) |
GpuMatND(IntBuffer size,
int type) |
GpuMatND(IntBuffer size,
int type,
Pointer data) |
GpuMatND(IntBuffer size,
int type,
Pointer data,
SizeTPointer step) |
GpuMatND(IntPointer size,
int type)
\overload
|
GpuMatND(IntPointer size,
int type,
Pointer data) |
GpuMatND(IntPointer size,
int type,
Pointer data,
SizeTPointer step)
\overload
|
GpuMatND(long size)
Native array allocator.
|
GpuMatND(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
GpuMat |
apply(int[] idx,
Range rowRange,
Range colRange) |
GpuMat |
apply(IntBuffer idx,
Range rowRange,
Range colRange) |
GpuMat |
apply(IntPointer idx,
Range rowRange,
Range colRange)
\brief Extracts a 2D plane part of an n-dim matrix.
|
GpuMatND |
apply(RangeVector ranges)
\brief Extracts a sub-matrix.
|
GpuMat |
asGpuMat()
\brief Extracts a 2D plane part of an n-dim matrix if this GpuMatND is effectively 2D.
|
GpuMatND |
clone()
\brief Creates a full copy of the array and the underlying data.
|
GpuMatND |
clone(Stream stream)
\overload
This overload is non-blocking, so it may return even if the copy operation is not finished.
|
void |
create(int[] size,
int type) |
void |
create(IntBuffer size,
int type) |
void |
create(IntPointer size,
int type)
\brief Allocates GPU memory.
|
GpuMat |
createGpuMatHeader()
\overload
Creates a GpuMat header if this GpuMatND is effectively 2D.
|
GpuMat |
createGpuMatHeader(int[] idx,
Range rowRange,
Range colRange) |
GpuMat |
createGpuMatHeader(IntBuffer idx,
Range rowRange,
Range colRange) |
GpuMat |
createGpuMatHeader(IntPointer idx,
Range rowRange,
Range colRange)
\brief Creates a GpuMat header for a 2D plane part of an n-dim matrix.
|
int |
dims()
matrix dimensionality
|
GpuMatND |
dims(int setter) |
void |
download(GpuMat dst) |
void |
download(GpuMat dst,
Stream stream) |
void |
download(Mat dst) |
void |
download(Mat dst,
Stream stream) |
void |
download(UMat dst) |
void |
download(UMat dst,
Stream stream) |
long |
elemSize()
returns element size in bytes
|
long |
elemSize1()
returns the size of element channel in bytes
|
boolean |
empty()
returns true if data is null
|
boolean |
external()
returns true if not empty and points to external(user-allocated) gpu memory
|
int |
flags()
includes several bit-fields:
- the magic signature
- continuity flag
- depth
- number of channels
|
GpuMatND |
flags(int setter) |
BytePointer |
getDevicePtr()
returns pointer to the first byte of the GPU memory
|
GpuMatND |
getPointer(long i) |
boolean |
isContinuous()
returns true iff the GpuMatND data is continuous
(i.e.
|
boolean |
isSubmatrix()
returns true if the matrix is a sub-matrix of another matrix
|
GpuMatND |
position(long position) |
GpuMatND |
put(GpuMatND arg0) |
void |
release() |
IntPointer |
size()
shape of this array
|
GpuMatND |
size(IntPointer setter) |
SizeTPointer |
step()
step values
Their semantics is identical to the semantics of step for Mat.
|
GpuMatND |
step(SizeTPointer setter) |
void |
swap(GpuMatND m) |
long |
total()
returns the total number of array elements
|
long |
totalMemSize()
returns the size of underlying memory in bytes
|
int |
type()
returns element type
|
void |
upload(GpuMat src) |
void |
upload(GpuMat src,
Stream stream) |
void |
upload(Mat src) |
void |
upload(Mat src,
Stream stream) |
void |
upload(UMat src) |
void |
upload(UMat src,
Stream stream) |
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 GpuMatND(Pointer p)
Pointer(Pointer)
.public GpuMatND(long size)
Pointer.position(long)
.public GpuMatND()
public GpuMatND(@StdVector IntPointer size, int type)
size
- Array of integers specifying an n-dimensional array shape.type
- Array type. Use CV_8UC1, ..., CV_16FC4 to create 1-4 channel matrices, or
CV_8UC(n), ..., CV_64FC(n) to create multi-channel (up to CV_CN_MAX channels) matrices.public GpuMatND(@StdVector IntBuffer size, int type)
public GpuMatND(@StdVector int[] size, int type)
public GpuMatND(@StdVector IntPointer size, int type, Pointer data, @StdVector SizeTPointer step)
size
- Array of integers specifying an n-dimensional array shape.type
- Array type. Use CV_8UC1, ..., CV_16FC4 to create 1-4 channel matrices, or
CV_8UC(n), ..., CV_64FC(n) to create multi-channel (up to CV_CN_MAX channels) matrices.data
- Pointer to the user data. Matrix constructors that take data and step parameters do not
allocate matrix data. Instead, they just initialize the matrix header that points to the specified
data, which means that no data is copied. This operation is very efficient and can be used to
process external data using OpenCV functions. The external data is not automatically deallocated, so
you should take care of it.step
- Array of _size.size()-1 steps in case of a multi-dimensional array (the last step is always
set to the element size). If not specified, the matrix is assumed to be continuous.public GpuMatND(@StdVector IntPointer size, int type, Pointer data)
public GpuMatND(@StdVector IntBuffer size, int type, Pointer data, @StdVector SizeTPointer step)
public GpuMatND(@StdVector IntBuffer size, int type, Pointer data)
public GpuMatND(@StdVector int[] size, int type, Pointer data, @StdVector SizeTPointer step)
public GpuMatND(@StdVector int[] size, int type, Pointer data)
public GpuMatND getPointer(long i)
getPointer
in class Pointer
public void create(@StdVector IntPointer size, int type)
public void create(@StdVector IntBuffer size, int type)
public void create(@StdVector int[] size, int type)
public void release()
@NoException public void swap(@ByRef GpuMatND m)
@ByVal public GpuMatND clone()
@ByVal public GpuMatND clone(@ByRef Stream stream)
@ByVal @Name(value="operator ()") public GpuMatND apply(@Const @ByRef RangeVector ranges)
ranges
- Array of selected ranges along each dimension.@ByVal public GpuMat createGpuMatHeader(@StdVector IntPointer idx, @ByVal Range rowRange, @ByVal Range colRange)
@ByVal public GpuMat createGpuMatHeader(@StdVector IntBuffer idx, @ByVal Range rowRange, @ByVal Range colRange)
@ByVal public GpuMat createGpuMatHeader(@StdVector int[] idx, @ByVal Range rowRange, @ByVal Range colRange)
@ByVal public GpuMat createGpuMatHeader()
@ByVal @Name(value="operator ()") public GpuMat apply(@StdVector IntPointer idx, @ByVal Range rowRange, @ByVal Range colRange)
@ByVal @Name(value="operator ()") public GpuMat apply(@StdVector IntBuffer idx, @ByVal Range rowRange, @ByVal Range colRange)
@ByVal @Name(value="operator ()") public GpuMat apply(@StdVector int[] idx, @ByVal Range rowRange, @ByVal Range colRange)
@ByVal @Name(value="operator cv::cuda::GpuMat") public GpuMat asGpuMat()
@Cast(value="bool") public boolean isContinuous()
@Cast(value="bool") public boolean isSubmatrix()
@Cast(value="size_t") public long elemSize1()
@Cast(value="bool") public boolean external()
@Cast(value="uchar*") public BytePointer getDevicePtr()
@Cast(value="size_t") public long totalMemSize()
public int type()
public int flags()
public GpuMatND flags(int setter)
public int dims()
public GpuMatND dims(int setter)
@StdVector public IntPointer size()
public GpuMatND size(IntPointer setter)
@StdVector public SizeTPointer step()
public GpuMatND step(SizeTPointer setter)
Copyright © 2024. All rights reserved.