@Namespace(value="cv::dnn") @NoOffset public static class opencv_dnn.Blob extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
opencv_dnn.Blob() |
opencv_dnn.Blob(long size)
Native array allocator.
|
opencv_dnn.Blob(opencv_core.Mat image) |
opencv_dnn.Blob(opencv_core.Mat image,
int dstCn)
\brief Constucts 4-dimensional blob (so-called batch) from image or array of images.
|
opencv_dnn.Blob(opencv_dnn.BlobShape shape) |
opencv_dnn.Blob(opencv_dnn.BlobShape shape,
int type)
\brief Constructs blob with specified \p shape and \p type.
|
opencv_dnn.Blob(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
_fill(opencv_dnn.BlobShape shape,
int type,
Pointer data) |
void |
_fill(opencv_dnn.BlobShape shape,
int type,
Pointer data,
boolean deepCopy)
\brief Creates blob from user data.
|
int |
canonicalAxis(int axis)
\brief Converts \p axis index to canonical format (where 0 <= axis < dims()).
|
int |
channels()
Returns size of the second axis blob.
|
int |
cols()
Returns size of the fourth axis blob.
|
void |
create(opencv_dnn.BlobShape shape) |
void |
create(opencv_dnn.BlobShape shape,
int type)
\brief Creates blob with specified \p shape and \p type.
|
int |
dims()
\brief Returns number of blob dimensions.
|
boolean |
equalShape(opencv_dnn.Blob other)
\brief Checks equality of two blobs shapes.
|
opencv_core.Mat |
getPlane(int n,
int cn)
\brief Returns slice of first two dimensions.
|
opencv_core.Mat |
matRef()
Returns reference to cv::Mat, containing blob data.
|
opencv_core.Mat |
matRefConst()
Returns reference to cv::Mat, containing blob data, for read-only purposes.
|
int |
num()
Returns size of the first axis blob.
|
long |
offset() |
long |
offset(int n,
int cn,
int row,
int col)
\overload
|
opencv_dnn.Blob |
position(long position) |
BytePointer |
ptr() |
BytePointer |
ptr(int n,
int cn,
int row,
int col)
\brief Returns pointer to the blob element with the specified position, stored in CPU memory.
|
FloatPointer |
ptrf() |
FloatPointer |
ptrf(int n,
int cn,
int row,
int col)
\overload ptr
|
opencv_dnn.Blob |
reshape(opencv_dnn.BlobShape shape)
\brief Changes shape of the blob without copying the data.
|
int |
rows()
Returns size of the thrid axis blob.
|
opencv_dnn.BlobShape |
shape()
\brief Returns shape of the blob.
|
opencv_core.Scalar4i |
shape4()
Returns shape of first four blob axes.
|
opencv_dnn.Blob |
shareFrom(opencv_dnn.Blob blob)
\brief Shares data from other \p blob.
|
int |
size(int axis)
\brief Returns the size of the specified \p axis.
|
opencv_core.Size |
size2()
Returns cv::Size(cols(), rows())
|
long |
total() |
long |
total(int startAxis,
int endAxis)
\brief Computes the product of sizes of axes among the specified axes range [\p startAxis; \p endAxis).
|
int |
type()
\brief Returns type of the blob.
|
opencv_core.UMat |
umatRef()
Returns reference to cv::UMat, containing blob data (not implemented yet).
|
opencv_core.UMat |
umatRefConst()
Returns reference to cv::UMat, containing blob data, for read-only purposes (not implemented yet).
|
int |
xsize(int axis)
\brief Returns the size of the specified \p axis.
|
address, asBuffer, asByteBuffer, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, hashCode, isNull, limit, limit, maxBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, position, put, setNull, sizeof, toString, totalBytes, withDeallocator, zeropublic opencv_dnn.Blob(Pointer p)
Pointer.Pointer(Pointer).public opencv_dnn.Blob(long size)
Pointer.position(long).public opencv_dnn.Blob()
public opencv_dnn.Blob(@Const@ByRef opencv_dnn.BlobShape shape, int type)
public opencv_dnn.Blob(@Const@ByRef opencv_dnn.BlobShape shape)
public opencv_dnn.Blob(@ByVal opencv_core.Mat image, int dstCn)
image - 2-dimensional multi-channel or 3-dimensional single-channel image (or array of images)dstCn - specify size of second axis of ouptut blobpublic opencv_dnn.Blob(@ByVal opencv_core.Mat image)
public opencv_dnn.Blob position(long position)
public void create(@Const@ByRef opencv_dnn.BlobShape shape, int type)
public void create(@Const@ByRef opencv_dnn.BlobShape shape)
@Name(value="fill") public void _fill(@Const@ByRef opencv_dnn.BlobShape shape, int type, Pointer data, @Cast(value="bool") boolean deepCopy)
@Name(value="fill") public void _fill(@Const@ByRef opencv_dnn.BlobShape shape, int type, Pointer data)
@ByRef public opencv_core.Mat matRef()
@Const @ByRef public opencv_core.Mat matRefConst()
@ByRef public opencv_core.UMat umatRef()
@Const @ByRef public opencv_core.UMat umatRefConst()
public int dims()
public int size(int axis)
public int xsize(int axis)
@Cast(value="size_t") public long total(int startAxis, int endAxis)
startAxis - the first axis to include in the range.endAxis - the first axis to exclude from the range.
\details Negative axis indexing can be used.public int canonicalAxis(int axis)
@ByVal public opencv_dnn.BlobShape shape()
@Cast(value="bool") public boolean equalShape(@Const@ByRef opencv_dnn.Blob other)
@ByVal public opencv_core.Mat getPlane(int n, int cn)
public int cols()
public int rows()
public int channels()
public int num()
@ByVal public opencv_core.Size size2()
@ByVal public opencv_core.Scalar4i shape4()
@Cast(value="uchar*") public BytePointer ptr(int n, int cn, int row, int col)
@Cast(value="uchar*") public BytePointer ptr()
public FloatPointer ptrf(int n, int cn, int row, int col)
public FloatPointer ptrf()
@ByRef public opencv_dnn.Blob shareFrom(@Const@ByRef opencv_dnn.Blob blob)
@ByRef public opencv_dnn.Blob reshape(@Const@ByRef opencv_dnn.BlobShape shape)
public int type()
Copyright © 2016. All rights reserved.