@Namespace(value="cv::dnn") @NoOffset public static class opencv_dnn.Layer extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator
Constructor and Description |
---|
opencv_dnn.Layer(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
_allocate(opencv_dnn.BlobPointerVector input,
opencv_dnn.BlobVector output)
\brief Allocates internal buffers and output blobs with respect to the shape of inputs.
|
opencv_dnn.BlobVector |
blobs()
List of learned parameters must be stored here to allow read them by using Net::getParam().
|
opencv_dnn.Layer |
blobs(opencv_dnn.BlobVector blobs) |
void |
forward(opencv_dnn.BlobPointerVector input,
opencv_dnn.BlobVector output)
\brief Given the \p input blobs, computes the output \p blobs.
|
int |
inputNameToIndex(BytePointer inputName)
\brief Returns index of input blob into the input array.
|
int |
inputNameToIndex(String inputName) |
BytePointer |
name()
Name of the layer instance, can be used for logging or other internal purposes.
|
opencv_dnn.Layer |
name(BytePointer name) |
int |
outputNameToIndex(BytePointer outputName)
\brief Returns index of output blob in output array.
|
int |
outputNameToIndex(String outputName) |
BytePointer |
type()
Type name which was used for creating layer by layer factory.
|
opencv_dnn.Layer |
type(BytePointer type) |
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, position, put, setNull, sizeof, toString, totalBytes, withDeallocator, zero
public opencv_dnn.Layer(Pointer p)
Pointer.Pointer(Pointer)
.@ByRef public opencv_dnn.BlobVector blobs()
public opencv_dnn.Layer blobs(opencv_dnn.BlobVector blobs)
@Name(value="allocate") public void _allocate(@Const@ByRef opencv_dnn.BlobPointerVector input, @ByRef opencv_dnn.BlobVector output)
[in]
- input vector of already allocated input blobs[out]
- output vector of output blobs, which must be allocated
This method must create each produced blob according to shape of \p input blobs and internal layer params.
If this method is called first time then \p output vector consists from empty blobs and its size determined by number of output connections.
This method can be called multiple times if size of any \p input blob was changed.public void forward(@ByRef opencv_dnn.BlobPointerVector input, @ByRef opencv_dnn.BlobVector output)
[in]
- input the input blobs.[out]
- output allocated output blobs, which will store results of the computation.public int inputNameToIndex(@opencv_core.Str BytePointer inputName)
inputName
- label of input blob
Each layer input and output can be labeled to easily identify them using "%public int inputNameToIndex(@opencv_core.Str String inputName)
public int outputNameToIndex(@opencv_core.Str BytePointer outputName)
inputNameToIndex()
public int outputNameToIndex(@opencv_core.Str String outputName)
@opencv_core.Str public BytePointer name()
public opencv_dnn.Layer name(BytePointer name)
@opencv_core.Str public BytePointer type()
public opencv_dnn.Layer type(BytePointer type)
Copyright © 2016. All rights reserved.