From 296a3400999e2d5b4b1dd3ccea9db515d9ba2cb9 Mon Sep 17 00:00:00 2001 From: joe-w-bimedina Date: Mon, 26 May 2014 11:50:34 -0700 Subject: [PATCH 1/2] added cv_create_CvANN_MLP_TrainParams and cv_create_CvANN_MLP_TrainParams because the generator was unable to generate these functions --- modules/c/src/excluded_functions.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/c/src/excluded_functions.cpp b/modules/c/src/excluded_functions.cpp index df0a0e75b2..56abb6a357 100644 --- a/modules/c/src/excluded_functions.cpp +++ b/modules/c/src/excluded_functions.cpp @@ -19,6 +19,14 @@ extern "C" { +CvANN_MLP_TrainParams* cv_create_CvANN_MLP_TrainParams() { + return new CvANN_MLP_TrainParams(); +} + +CvANN_MLP_TrainParams* cv_create_CvANN_MLP_TrainParams4(TermCriteria* term_crit, int train_method, double param1, double param2) { + return new CvANN_MLP_TrainParams(*term_crit, train_method, param1, param2); +} + void cv_randu2(Mat* dst, Scalar* low, Scalar* high) { cv::randu(*dst, *low, *high); } From 0733c3e82ba62a86d663bcde9dd264c184c0936d Mon Sep 17 00:00:00 2001 From: joe-w-bimedina Date: Mon, 26 May 2014 11:51:11 -0700 Subject: [PATCH 2/2] added cv_create_CvANN_MLP_TrainParams and cv_create_CvANN_MLP_TrainParams because the generator was unable to generate these functions --- modules/c/include/opencv2/c/excluded_functions.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/c/include/opencv2/c/excluded_functions.hpp b/modules/c/include/opencv2/c/excluded_functions.hpp index 0b22ef1c02..1b950c3566 100644 --- a/modules/c/include/opencv2/c/excluded_functions.hpp +++ b/modules/c/include/opencv2/c/excluded_functions.hpp @@ -19,6 +19,8 @@ #include extern "C" { +CvANN_MLP_TrainParams* cv_create_CvANN_MLP_TrainParams(); +CvANN_MLP_TrainParams* cv_create_CvANN_MLP_TrainParams4(TermCriteria* term_crit, int train_method, double param1, double param2); void cv_randu2(Mat* dst, Scalar* low, Scalar* high); void cv_goodFeaturesToTrack2(Mat* image, vector_Point2f* corners, int maxCorners, double qualityLevel, double minDistance, Mat* mask, int blockSize, bool useHarrisDetector, double k); Mat* cv_create_Mat_as_vectort(vector_Point2f* vec, bool copyData);