@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 |
---|
opencv_dnn.BlobShape() |
opencv_dnn.BlobShape(int[] sizes) |
opencv_dnn.BlobShape(IntBuffer sizes) |
opencv_dnn.BlobShape(int ndims,
int fill)
Creates n-dim shape and fill its by \p fill
|
opencv_dnn.BlobShape(int ndims,
int[] sizes) |
opencv_dnn.BlobShape(int ndims,
IntBuffer sizes) |
opencv_dnn.BlobShape(int num,
int cn,
int rows,
int cols)
Creates 4-dim shape [\p num, \p cn, \p rows, \p cols]
|
opencv_dnn.BlobShape(int ndims,
IntPointer sizes)
Creates n-dim shape from the \p sizes array
|
opencv_dnn.BlobShape(IntPointer sizes)
Creates n-dim shape from the \p sizes vector
|
opencv_dnn.BlobShape(long size)
Native array allocator.
|
opencv_dnn.BlobShape(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
dims()
\brief Returns number of dimensions.
|
boolean |
equal(opencv_dnn.BlobShape other)
\brief Checks equality of two shapes.
|
boolean |
equals(opencv_dnn.BlobShape r) |
IntPointer |
get(int axis)
Does the same thing as size(int) const.
|
opencv_dnn.BlobShape |
position(long position) |
IntPointer |
ptr()
\brief Returns pointer to the first element of continuous size array.
|
IntPointer |
size(int axis)
\brief Returns reference to the size of the specified \p axis.
|
long |
total()
\brief Returns the product of all sizes of axes.
|
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, zero
public opencv_dnn.BlobShape(Pointer p)
Pointer.Pointer(Pointer)
.public opencv_dnn.BlobShape(long size)
Pointer.position(long)
.public opencv_dnn.BlobShape(int ndims, int fill)
public opencv_dnn.BlobShape()
public opencv_dnn.BlobShape(int num, int cn, int rows, int cols)
public opencv_dnn.BlobShape(int ndims, @Const IntPointer sizes)
public opencv_dnn.BlobShape(int ndims, @Const int[] sizes)
public opencv_dnn.BlobShape(@StdVector IntPointer sizes)
public opencv_dnn.BlobShape(@StdVector IntBuffer sizes)
public opencv_dnn.BlobShape(@StdVector int[] sizes)
public opencv_dnn.BlobShape position(long position)
public int dims()
@ByRef public IntPointer size(int axis)
@ByRef @Name(value="operator []") public IntPointer get(int axis)
public int xsize(int axis)
@Const public IntPointer ptr()
@Cast(value="bool") public boolean equal(@Const@ByRef opencv_dnn.BlobShape other)
Copyright © 2016. All rights reserved.