public class Layer extends Algorithm
Modifier | Constructor and Description |
---|---|
protected |
Layer(long addr) |
Modifier and Type | Method and Description |
---|---|
static Layer |
__fromPtr__(long addr) |
protected void |
finalize() |
void |
finalize(List<Mat> inputs,
List<Mat> outputs)
Computes and sets internal parameters according to inputs, outputs and blobs.
|
List<Mat> |
get_blobs() |
String |
get_name() |
int |
get_preferableTarget() |
String |
get_type() |
int |
outputNameToIndex(String outputName)
Returns index of output blob in output array.
|
void |
run(List<Mat> inputs,
List<Mat> outputs,
List<Mat> internals)
Deprecated.
This method will be removed in the future release.
|
void |
set_blobs(List<Mat> blobs) |
clear, empty, getDefaultName, getNativeObjAddr, save
public static Layer __fromPtr__(long addr)
public int outputNameToIndex(String outputName)
outputName
- automatically generatedpublic void finalize(List<Mat> inputs, List<Mat> outputs)
outputs
- vector of already allocated output blobs
If this method is called after network has allocated all memory for input and output blobs
and before inferencing.inputs
- automatically generated@Deprecated public void run(List<Mat> inputs, List<Mat> outputs, List<Mat> internals)
inputs
- automatically generatedoutputs
- automatically generatedinternals
- automatically generatedpublic String get_name()
public String get_type()
public int get_preferableTarget()
Generated on Wed Oct 9 2019 23:24:43 UTC / OpenCV 4.1.2