OpenCV for Unity 3.0.5
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.
Loading...
Searching...
No Matches
OpenCVForUnity.DnnModule.LayerInfo Class Reference

Backend-independent description of a graph operation (node). More...

Public Member Functions

List< Mat > get_blobs ()
 
string get_name ()
 
string get_type ()
 
IntPtr getNativeObjAddr ()
 
int outputNameToIndex (string outputName)
 
void set_blobs (List< Mat > blobs)
 
- 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 LayerInfo __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.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 Attributes inherited from OpenCVForUnity.DisposableOpenCVObject
- Properties inherited from OpenCVForUnity.DisposableObject
bool IsDisposed [get, protected set]
 
bool IsEnabledDispose [get, set]
 

Detailed Description

Backend-independent description of a graph operation (node).

LayerInfo carries everything needed to reason about an operation without executing it: its parameters (#blobs and type-specific fields of derived classes), graph wiring (#inputs / #outputs as Arg indices) and shape/type/layout inference. The new DNN graph engine stores a topologically sorted sequence of LayerInfo nodes (see Graph::prog()); executable, backend-specific instances (Layer subclasses) are constructed from an LayerInfo during Net.finalizeNet().

Each operation type registers a static Ptr<LayerInfo> create(const LayerParams&) factory via CV_DNN_REGISTER_OP_CLASS.

Member Function Documentation

◆ __fromPtr__()

static LayerInfo OpenCVForUnity.DnnModule.LayerInfo.__fromPtr__ ( IntPtr addr)
static

◆ Dispose()

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

◆ get_blobs()

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

◆ get_name()

string OpenCVForUnity.DnnModule.LayerInfo.get_name ( )

◆ get_type()

string OpenCVForUnity.DnnModule.LayerInfo.get_type ( )

◆ getNativeObjAddr()

IntPtr OpenCVForUnity.DnnModule.LayerInfo.getNativeObjAddr ( )

◆ outputNameToIndex()

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

◆ set_blobs()

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

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