@Namespace(value="cv::dnn") @NoOffset public static class opencv_dnn.BlobShape extends Pointer
/** \brief Lightweight class for storing and processing a shape of blob (or anything else).
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
BlobShape()
Creates [1, 1, 1, 1] shape \todo Make more clearer behavior.
|
BlobShape(int s0)
Creates 1-dim shape [\p s0]
|
BlobShape(int[] sizes) |
BlobShape(IntBuffer sizes) |
BlobShape(int s0,
int s1)
\overload
|
BlobShape(int ndims,
int[] sizes) |
BlobShape(int ndims,
IntBuffer sizes) |
BlobShape(int s0,
int s1,
int s2)
\overload
|
BlobShape(int num,
int cn,
int rows,
int cols)
Creates 4-dim shape [\p num, \p cn, \p rows, \p cols]
|
BlobShape(int ndims,
IntPointer sizes)
Creates n-dim shape from the \p sizes array; if \p sizes is NULL then shape will contain unspecified data
|
BlobShape(IntPointer sizes)
Creates n-dim shape from the \p sizes vector
|
BlobShape(long size)
Native array allocator.
|
BlobShape(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
opencv_dnn.BlobShape |
add(opencv_dnn.BlobShape r)
Contacenates two shapes.
|
static opencv_dnn.BlobShape |
all(int ndims) |
static opencv_dnn.BlobShape |
all(int ndims,
int fill)
Creates n-dim shape and fill its by \p fill
|
int |
canonicalAxis(int axis)
\brief Converts \p axis index to canonical format (where 0 <= \p axis < dims()).
|
int |
dims()
\brief Returns number of dimensions.
|
static opencv_dnn.BlobShape |
empty()
Returns empty shape [].
|
boolean |
equal(opencv_dnn.BlobShape other)
Checks equality of two shapes.
|
boolean |
equals(opencv_dnn.BlobShape r)
\sa equal()
|
IntPointer |
get(int axis)
Does the same thing as size(int) const.
|
boolean |
isEmpty()
Returns true if shape is empty (i.e []).
|
static opencv_dnn.BlobShape |
like(opencv_core.Mat m)
Returns shape of passed Mat.
|
static opencv_dnn.BlobShape |
like(opencv_core.UMat m)
Returns shape of passed UMat.
|
opencv_dnn.BlobShape |
position(long position) |
IntPointer |
ptr()
\overload
|
IntPointer |
size(int axis)
\brief Returns reference to the size of the specified \p axis.
|
opencv_dnn.BlobShape |
slice(int startAxis) |
opencv_dnn.BlobShape |
slice(int startAxis,
int endAxis)
\brief Constructs new shape from axes in range [\p startAxis; \p endAxis).
|
long |
total()
\brief Returns the product of all sizes of axes.
|
long |
total(int startAxis) |
long |
total(int startAxis,
int endAxis)
\brief Computes the product of sizes of axes among the specified axes range [\p startAxis; \p endAxis).
|
int |
xsize(int axis)
\brief Returns the size of the specified \p axis.
|
address, asBuffer, asByteBuffer, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, withDeallocator, zeropublic BlobShape(Pointer p)
Pointer.Pointer(Pointer).public BlobShape(long size)
Pointer.position(long).public BlobShape()
public BlobShape(int s0)
public BlobShape(int s0,
int s1)
public BlobShape(int s0,
int s1,
int s2)
public BlobShape(int num,
int cn,
int rows,
int cols)
public BlobShape(int ndims,
@Const
IntPointer sizes)
public BlobShape(int ndims,
@Const
int[] sizes)
public BlobShape(@StdVector IntPointer sizes)
public BlobShape(@StdVector IntBuffer sizes)
public BlobShape(@StdVector int[] sizes)
public opencv_dnn.BlobShape position(long position)
@ByVal public static opencv_dnn.BlobShape all(int ndims, int fill)
@ByVal public static opencv_dnn.BlobShape all(int ndims)
public int dims()
@ByRef public IntPointer size(int axis)
@ByRef @Name(value="operator []") public IntPointer get(int axis)
public int xsize(int axis)
public int canonicalAxis(int axis)
@Cast(value="ptrdiff_t") public long total(int startAxis, int endAxis)
@ByVal public opencv_dnn.BlobShape slice(int startAxis, int endAxis)
@ByVal public opencv_dnn.BlobShape slice(int startAxis)
public IntPointer ptr()
@Cast(value="bool") public boolean equal(@Const @ByRef opencv_dnn.BlobShape other)
@Cast(value="bool") @Name(value="operator ==") public boolean equals(@Const @ByRef opencv_dnn.BlobShape r)
@ByVal @Name(value="operator +") public opencv_dnn.BlobShape add(@Const @ByRef opencv_dnn.BlobShape r)
@ByVal public static opencv_dnn.BlobShape like(@Const @ByRef opencv_core.Mat m)
@ByVal public static opencv_dnn.BlobShape like(@Const @ByRef opencv_core.UMat m)
@ByVal public static opencv_dnn.BlobShape empty()
Copyright © 2017. All rights reserved.