|
OpenCV for Unity 3.0.4
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/5.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 () |
| Releases resources used by this object. | |
| void | ThrowIfDisposed () |
| Throws ObjectDisposedException if this object has been disposed. | |
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) |
| Returns the native pointer, or throws CoreModule.CvException if it is zero. | |
Protected Member Functions | |
| override void | Dispose (bool disposing) |
Protected Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm | |
Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject | |
| DisposableOpenCVObject () | |
| Initializes a new instance with a zero native pointer and dispose enabled. | |
| DisposableOpenCVObject (bool isEnabledDispose) | |
| Initializes a new instance with a zero native pointer. | |
| DisposableOpenCVObject (IntPtr ptr) | |
| Initializes a new instance with the specified native pointer and dispose enabled. | |
| DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose) | |
| Initializes a new instance with the specified native pointer. | |
Protected Member Functions inherited from OpenCVForUnity.DisposableObject | |
| DisposableObject () | |
| Initializes a new instance with dispose enabled. | |
| DisposableObject (bool isEnabledDispose) | |
| Initializes a new instance. | |
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.
| inputs | vector of already allocated input blobs |
| 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.
| 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 | ) |