OpenCV for Unity 2.6.5
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
|
This interface class allows to build new Layers - are building blocks of networks. More...
Public Member Functions | |
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) |
Allocates layer and computes output. | |
void | set_blobs (List< Mat > blobs) |
Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm | |
virtual void | clear () |
Clears the algorithm state. | |
virtual bool | empty () |
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. | |
virtual string | getDefaultName () |
IntPtr | getNativeObjAddr () |
void | save (string filename) |
Public Member Functions inherited from OpenCVForUnity.DisposableObject | |
void | Dispose () |
void | ThrowIfDisposed () |
Static Public Member Functions | |
static new Layer | __fromPtr__ (IntPtr addr) |
Static Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm | |
static Algorithm | __fromPtr__ (IntPtr addr) |
Static Public Member Functions inherited from OpenCVForUnity.DisposableObject | |
static IntPtr | ThrowIfNullIntPtr (IntPtr ptr) |
Protected Member Functions | |
override void | Dispose (bool disposing) |
Protected Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm | |
Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject | |
DisposableOpenCVObject () | |
DisposableOpenCVObject (bool isEnabledDispose) | |
DisposableOpenCVObject (IntPtr ptr) | |
DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose) | |
Protected Member Functions inherited from OpenCVForUnity.DisposableObject | |
DisposableObject () | |
DisposableObject (bool isEnabledDispose) | |
Additional Inherited Members | |
Package Functions inherited from OpenCVForUnity.CoreModule.Algorithm | |
Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject | |
Properties inherited from OpenCVForUnity.DisposableObject | |
bool | IsDisposed [get, protected set] |
bool | IsEnabledDispose [get, set] |
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 LayerFactory macros.
|
static |
|
protectedvirtual |
Reimplemented from OpenCVForUnity.CoreModule.Algorithm.
Computes and sets internal parameters according to inputs, outputs and blobs.
This method is called after network has allocated all memory for input and output blobs and before inferencing.
List< Mat > OpenCVForUnity.DnnModule.Layer.get_blobs | ( | ) |
string OpenCVForUnity.DnnModule.Layer.get_name | ( | ) |
int OpenCVForUnity.DnnModule.Layer.get_preferableTarget | ( | ) |
string OpenCVForUnity.DnnModule.Layer.get_type | ( | ) |
int OpenCVForUnity.DnnModule.Layer.outputNameToIndex | ( | string | outputName | ) |
Returns index of output blob in output array.
void OpenCVForUnity.DnnModule.Layer.run | ( | List< Mat > | inputs, |
List< Mat > | outputs, | ||
List< Mat > | internals ) |
Allocates layer and computes output.
void OpenCVForUnity.DnnModule.Layer.set_blobs | ( | List< Mat > | blobs | ) |