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.
Loading...
Searching...
No Matches
OpenCVForUnity.DnnModule.Layer Class Reference

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< Matget_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]
 

Detailed Description

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.

Member Function Documentation

◆ __fromPtr__()

static new Layer OpenCVForUnity.DnnModule.Layer.__fromPtr__ ( IntPtr addr)
static

◆ Dispose()

override void OpenCVForUnity.DnnModule.Layer.Dispose ( bool disposing)
protectedvirtual

◆ finalize()

void OpenCVForUnity.DnnModule.Layer.finalize ( List< Mat > inputs,
List< Mat > outputs )

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.

◆ get_blobs()

List< Mat > OpenCVForUnity.DnnModule.Layer.get_blobs ( )

◆ get_name()

string OpenCVForUnity.DnnModule.Layer.get_name ( )

◆ get_preferableTarget()

int OpenCVForUnity.DnnModule.Layer.get_preferableTarget ( )

◆ get_type()

string OpenCVForUnity.DnnModule.Layer.get_type ( )

◆ outputNameToIndex()

int OpenCVForUnity.DnnModule.Layer.outputNameToIndex ( string outputName)

Returns index of output blob in output array.

See also
inputNameToIndex()

◆ run()

void OpenCVForUnity.DnnModule.Layer.run ( List< Mat > inputs,
List< Mat > outputs,
List< Mat > internals )

Allocates layer and computes output.

Deprecated
This method will be removed in the future release.

◆ set_blobs()

void OpenCVForUnity.DnnModule.Layer.set_blobs ( List< Mat > blobs)

The documentation for this class was generated from the following file: