Package org.opencv.dnn
Class Layer
java.lang.Object
org.opencv.core.Algorithm
org.opencv.dnn.Layer
This interface class allows to build new Layers - are building blocks of networks.
Each class, derived from Layer, must implement forward() method to compute outputs.
Also before using the new layer into networks you must register your layer by using one of REF: dnnLayerFactory "LayerFactory" macros.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Layer__fromPtr__(long addr) voidComputes and sets internal parameters according to inputs, outputs and blobs.get_name()intget_type()intoutputNameToIndex(String outputName) Returns index of output blob in output array.voidMethods inherited from class org.opencv.core.Algorithm
clear, empty, getDefaultName, getNativeObjAddr, save
-
Method Details
-
__fromPtr__
-
finalize
Computes and sets internal parameters according to inputs, outputs and blobs.- Parameters:
outputs- vector of already allocated output blobs This method is called after network has allocated all memory for input and output blobs and before inferencing.inputs- automatically generated
-
outputNameToIndex
Returns index of output blob in output array. SEE: inputNameToIndex()- Parameters:
outputName- automatically generated- Returns:
- automatically generated
-
get_blobs
-
set_blobs
-
get_name
-
get_type
-
get_preferableTarget
public int get_preferableTarget()
-