mexopencv
3.4.1
MEX interface for OpenCV library
|
Functions | |
MatND | MxArrayToBlob (const MxArray &arr) |
Create 4-dimensional blob from MATLAB array. More... | |
Net::LayerId | MxArrayToLayerId (const MxArray &arr) |
Convert MxArray to cv::dnn::Net::LayerId. More... | |
vector< Net::LayerId > | MxArrayToVectorLayerId (const MxArray &arr) |
Convert MxArray to std::vector<cv::dnn::Net::LayerId> More... | |
LayerParams | MxArrayToLayerParams (const MxArray &arr) |
Convert MxArray to cv::dnn::LayerParams. More... | |
MxArray | toStruct (const Ptr< Layer > &layer) |
Convert cv::Ptr<cv::dnn::Layer> to scalar struct. More... | |
MxArray | toStruct (const vector< Ptr< Layer > > &layers) |
Convert std::vector<cv::Ptr<cv::dnn::Layer>> to struct array. More... | |
MxArray | toMxArray (int64_t i) |
MxArray constructor from 64-bit integer. More... | |
Ptr< Net > | readNetFrom (const string &type, vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last) |
Create an instance of Net using options in arguments. More... | |
Variables | |
int | last_id = 0 |
Last object id to allocate. More... | |
map< int, Ptr< Net > > | obj_ |
Object container. More... | |
const ConstMap< string, int > | BackendsMap |
Computation backends for option processing. More... | |
const ConstMap< string, int > | TargetsMap |
Computation target devices for option processing. More... | |
const ConstMap< int, string > | TargetsInvMap |
Computation target devices for option processing. More... | |
MatND anonymous_namespace{Net_.cpp}::MxArrayToBlob | ( | const MxArray & | arr | ) |
Create 4-dimensional blob from MATLAB array.
arr | input MxArray object (numeric array). |
Net::LayerId anonymous_namespace{Net_.cpp}::MxArrayToLayerId | ( | const MxArray & | arr | ) |
Convert MxArray to cv::dnn::Net::LayerId.
arr | MxArray object. In one of the following forms:
|
LayerParams anonymous_namespace{Net_.cpp}::MxArrayToLayerParams | ( | const MxArray & | arr | ) |
Convert MxArray to cv::dnn::LayerParams.
arr | MxArray object. A scalar struct with the following fields:
|
vector<Net::LayerId> anonymous_namespace{Net_.cpp}::MxArrayToVectorLayerId | ( | const MxArray & | arr | ) |
Ptr<Net> anonymous_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.
type | type of network to import, one of:
|
first | iterator at the beginning of the vector range |
last | iterator at the end of the vector range |
Convert std::vector<cv::Ptr<cv::dnn::Layer>> to struct array.
layers | vector of smart pointers to layers |
Computation backends for option processing.
int anonymous_namespace{Net_.cpp}::last_id = 0 |
Computation target devices for option processing.
Computation target devices for option processing.