11 #ifndef __MEXOPENCV_ML_HPP__ 12 #define __MEXOPENCV_ML_HPP__ 15 #include "opencv2/ml.hpp" 43 const cv::Mat& samples,
const cv::Mat& responses,
44 std::vector<MxArray>::const_iterator first,
45 std::vector<MxArray>::const_iterator last);
54 const std::string& filename,
55 std::vector<MxArray>::const_iterator first,
56 std::vector<MxArray>::const_iterator last);
MxArray toStruct(const std::vector< cv::ml::DTrees::Node > &nodes)
Convert tree nodes to struct array.
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.
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.