mexopencv  0.1
mex interface for opencv library
Functions | Variables
mexopencv_ml.cpp File Reference

Implementation of mexopencv_ml. More...

#include "mexopencv_ml.hpp"

Go to the source code of this file.

Functions

MxArray toStruct (const vector< DTrees::Node > &nodes)
 
MxArray toStruct (const vector< DTrees::Split > &splits)
 
Ptr< TrainData > createTrainData (const Mat &samples, const Mat &responses, vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 
Ptr< TrainData > loadTrainData (const string &filename, vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 

Variables

const ConstMap< string, int > SampleTypesMap
 Option values for sample layouts. More...
 
const ConstMap< string, int > VariableTypeMap
 Option values for variable types. More...
 

Detailed Description

Implementation of mexopencv_ml.

Author
Amro
Date
2015

Definition in file mexopencv_ml.cpp.

Variable Documentation

const ConstMap<string, int> SampleTypesMap
Initial value:
("Row", cv::ml::ROW_SAMPLE)
("Col", cv::ml::COL_SAMPLE)
std::map wrapper with one-line initialization and lookup method.
Definition: MxArray.hpp:927

Option values for sample layouts.

Definition at line 17 of file mexopencv_ml.cpp.

const ConstMap<string, int> VariableTypeMap
Initial value:
("Numerical", cv::ml::VAR_NUMERICAL)
("Ordered", cv::ml::VAR_ORDERED)
("Categorical", cv::ml::VAR_CATEGORICAL)
("N", cv::ml::VAR_NUMERICAL)
("O", cv::ml::VAR_ORDERED)
("C", cv::ml::VAR_CATEGORICAL)
std::map wrapper with one-line initialization and lookup method.
Definition: MxArray.hpp:927

Option values for variable types.

Definition at line 22 of file mexopencv_ml.cpp.