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

Functions

DetectionROI MxArrayToDetectionROI (const MxArray &arr, mwIndex idx=0)
 Convert MxArray to cv::DetectionROI. More...
 
vector< DetectionROIMxArrayToVectorDetectionROI (const MxArray &arr)
 Convert MxArray to std::vector<cv::DetectionROI> More...
 
MxArray toStruct (const vector< DetectionROI > &rois)
 Convert vector of detection region of interest to struct array. More...
 

Variables

int last_id = 0
 Last object id to allocate. More...
 
map< int, Ptr< HOGDescriptor > > obj_
 Object container. More...
 
const ConstMap< string, int > HistogramNormType
 HistogramNormType map. More...
 
const ConstMap< int, stringInvHistogramNormType
 HistogramNormType inverse map. More...
 

Function Documentation

◆ MxArrayToDetectionROI()

DetectionROI anonymous_namespace{HOGDescriptor_.cpp}::MxArrayToDetectionROI ( const MxArray arr,
mwIndex  idx = 0 
)

Convert MxArray to cv::DetectionROI.

Parameters
arrstruct-array MxArray object
idxlinear index of the struct array element
Returns
detection region of interest object

Definition at line 31 of file HOGDescriptor_.cpp.

◆ MxArrayToVectorDetectionROI()

vector<DetectionROI> anonymous_namespace{HOGDescriptor_.cpp}::MxArrayToVectorDetectionROI ( const MxArray arr)

Convert MxArray to std::vector<cv::DetectionROI>

Parameters
arrstruct-array MxArray object
Returns
vector of detection region of interest objects

Definition at line 47 of file HOGDescriptor_.cpp.

◆ toStruct()

MxArray anonymous_namespace{HOGDescriptor_.cpp}::toStruct ( const vector< DetectionROI > &  rois)

Convert vector of detection region of interest to struct array.

Parameters
roisvector of DetectionROI instances
Returns
struct-array MxArray object

Definition at line 68 of file HOGDescriptor_.cpp.

Variable Documentation

◆ HistogramNormType

const ConstMap<string,int> anonymous_namespace{HOGDescriptor_.cpp}::HistogramNormType
Initial value:
("L2Hys", HOGDescriptor::L2Hys)
std::map wrapper with one-line initialization and lookup method.
Definition: MxArray.hpp:927

HistogramNormType map.

Definition at line 20 of file HOGDescriptor_.cpp.

◆ InvHistogramNormType

const ConstMap<int,string> anonymous_namespace{HOGDescriptor_.cpp}::InvHistogramNormType
Initial value:
(HOGDescriptor::L2Hys, "L2Hys")
std::map wrapper with one-line initialization and lookup method.
Definition: MxArray.hpp:927

HistogramNormType inverse map.

Definition at line 23 of file HOGDescriptor_.cpp.

◆ last_id

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

Last object id to allocate.

Definition at line 15 of file HOGDescriptor_.cpp.

◆ obj_

map<int,Ptr<HOGDescriptor> > anonymous_namespace{HOGDescriptor_.cpp}::obj_

Object container.

Definition at line 17 of file HOGDescriptor_.cpp.