mexopencv  3.4.1
MEX interface for OpenCV library
mexopencv_ml.hpp
Go to the documentation of this file.
1 
12 #ifndef MEXOPENCV_ML_HPP
13 #define MEXOPENCV_ML_HPP
14 
15 #include "mexopencv.hpp"
16 #include "opencv2/ml.hpp"
17 
18 
19 // ==================== XXX ====================
20 
26 
32 
33 
34 // ==================== XXX ====================
35 
44  const cv::Mat& samples, const cv::Mat& responses,
47 
55  const std::string& filename,
58 
59 #endif
MxArray toStruct(const std::vector< cv::ml::DTrees::Node > &nodes)
Convert tree nodes to struct array.
STL class.
cv::Ptr< cv::ml::TrainData > loadTrainData(const std::string &filename, std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
Read a dataset from a CSV file.
mxArray object wrapper for data conversion and manipulation.
Definition: MxArray.hpp:123
STL class.
Global constant definitions.
cv::Ptr< cv::ml::TrainData > createTrainData(const cv::Mat &samples, const cv::Mat &responses, std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
Create an instance of TrainData using options in arguments.