mexopencv  3.4.1
MEX interface for OpenCV library
Functions | Variables
anonymous_namespace{BinaryDescriptor_.cpp} Namespace Reference

Functions

MxArray toStruct (const vector< KeyLine > &keylines)
 Convert keylines to struct array. More...
 
MxArray toCellOfStruct (const vector< vector< KeyLine > > &keylines)
 Convert set of keylines to cell-array of struct-arrays. More...
 
KeyLine MxArrayToKeyLine (const MxArray &arr, mwIndex idx=0)
 Convert an MxArray to cv::line_descriptor::KeyLine. More...
 
vector< KeyLineMxArrayToVectorKeyLine (const MxArray &arr)
 Convert an MxArray to std::vector<cv::line_descriptor::KeyLine> More...
 
vector< vector< KeyLine > > MxArrayToVectorVectorKeyLine (const MxArray &arr)
 Convert an MxArray to std::vector<std::vector<cv::line_descriptor::KeyLine>> More...
 

Variables

int last_id = 0
 Last object id to allocate. More...
 
map< int, Ptr< BinaryDescriptor > > obj_
 Object container. More...
 

Function Documentation

◆ MxArrayToKeyLine()

KeyLine anonymous_namespace{BinaryDescriptor_.cpp}::MxArrayToKeyLine ( const MxArray arr,
mwIndex  idx = 0 
)

Convert an MxArray to cv::line_descriptor::KeyLine.

Parameters
arrstruct-array MxArray object
idxlinear index of the struct array element
Returns
keyline object

Definition at line 65 of file BinaryDescriptor_.cpp.

◆ MxArrayToVectorKeyLine()

vector<KeyLine> anonymous_namespace{BinaryDescriptor_.cpp}::MxArrayToVectorKeyLine ( const MxArray arr)

Convert an MxArray to std::vector<cv::line_descriptor::KeyLine>

Parameters
arrstruct-array MxArray object
Returns
vector of keyline objects

Definition at line 91 of file BinaryDescriptor_.cpp.

◆ MxArrayToVectorVectorKeyLine()

vector<vector<KeyLine> > anonymous_namespace{BinaryDescriptor_.cpp}::MxArrayToVectorVectorKeyLine ( const MxArray arr)

Convert an MxArray to std::vector<std::vector<cv::line_descriptor::KeyLine>>

Parameters
arrcell-array of struct-arrays MxArray object
Returns
vector of vector of keyline objects

Definition at line 112 of file BinaryDescriptor_.cpp.

◆ toCellOfStruct()

MxArray anonymous_namespace{BinaryDescriptor_.cpp}::toCellOfStruct ( const vector< vector< KeyLine > > &  keylines)

Convert set of keylines to cell-array of struct-arrays.

Parameters
keylinesvector of vector of keylines
Returns
cell-array of struct-arrays MxArray object

Definition at line 52 of file BinaryDescriptor_.cpp.

◆ toStruct()

MxArray anonymous_namespace{BinaryDescriptor_.cpp}::toStruct ( const vector< KeyLine > &  keylines)

Convert keylines to struct array.

Parameters
keylinesvector of keylines
Returns
struct-array MxArray object

Definition at line 25 of file BinaryDescriptor_.cpp.

Variable Documentation

◆ last_id

int anonymous_namespace{BinaryDescriptor_.cpp}::last_id = 0

Last object id to allocate.

Definition at line 17 of file BinaryDescriptor_.cpp.

◆ obj_

map<int,Ptr<BinaryDescriptor> > anonymous_namespace{BinaryDescriptor_.cpp}::obj_

Object container.

Definition at line 19 of file BinaryDescriptor_.cpp.