mexopencv  3.4.1
MEX interface for OpenCV library
Namespaces | Functions | Variables

mex interface for cv::dnn::Net More...

#include "mexopencv.hpp"
#include "opencv2/dnn.hpp"

Go to the source code of this file.

Namespaces

 anonymous_namespace{Net_.cpp}
 

Functions

MatND anonymous_namespace{Net_.cpp}::MxArrayToBlob (const MxArray &arr)
 Create 4-dimensional blob from MATLAB array. More...
 
Net::LayerId anonymous_namespace{Net_.cpp}::MxArrayToLayerId (const MxArray &arr)
 Convert MxArray to cv::dnn::Net::LayerId. More...
 
vector< Net::LayerIdanonymous_namespace{Net_.cpp}::MxArrayToVectorLayerId (const MxArray &arr)
 Convert MxArray to std::vector<cv::dnn::Net::LayerId> More...
 
LayerParams anonymous_namespace{Net_.cpp}::MxArrayToLayerParams (const MxArray &arr)
 Convert MxArray to cv::dnn::LayerParams. More...
 
MxArray anonymous_namespace{Net_.cpp}::toStruct (const Ptr< Layer > &layer)
 Convert cv::Ptr<cv::dnn::Layer> to scalar struct. More...
 
MxArray anonymous_namespace{Net_.cpp}::toStruct (const vector< Ptr< Layer > > &layers)
 Convert std::vector<cv::Ptr<cv::dnn::Layer>> to struct array. More...
 
MxArray anonymous_namespace{Net_.cpp}::toMxArray (int64_t i)
 MxArray constructor from 64-bit integer. More...
 
Ptr< Netanonymous_namespace{Net_.cpp}::readNetFrom (const string &type, vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Create an instance of Net using options in arguments. More...
 
void mexFunction (int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
 Main entry called from Matlab. More...
 

Variables

int anonymous_namespace{Net_.cpp}::last_id = 0
 Last object id to allocate. More...
 
map< int, Ptr< Net > > anonymous_namespace{Net_.cpp}::obj_
 Object container. More...
 
const ConstMap< string, int > anonymous_namespace{Net_.cpp}::BackendsMap
 Computation backends for option processing. More...
 
const ConstMap< string, int > anonymous_namespace{Net_.cpp}::TargetsMap
 Computation target devices for option processing. More...
 
const ConstMap< int, stringanonymous_namespace{Net_.cpp}::TargetsInvMap
 Computation target devices for option processing. More...
 

Detailed Description

mex interface for cv::dnn::Net

Author
Amro
Date
2016

Definition in file Net_.cpp.

Function Documentation

◆ mexFunction()

void mexFunction ( int  nlhs,
mxArray plhs[],
int  nrhs,
const mxArray prhs[] 
)

Main entry called from Matlab.

mexFunction is the user-defined C routine that is called upon invocation of a MEX-function.

Parameters
nlhsnumber of left-hand-side arguments
plhspointers to mxArrays in the left-hand-side
nrhsnumber of right-hand-side arguments
prhspointers to mxArrays in the right-hand-side

Definition at line 260 of file Net_.cpp.