Compiling matlab from sources now appears as a single target

This commit is contained in:
hbristow
2013-06-19 17:37:41 +10:00
parent 0c726a3fbe
commit d9cea3b8b0
5 changed files with 375 additions and 16 deletions

View File

@@ -7,7 +7,7 @@
* Copyright 2013 The OpenCV Foundation
*/
#include <exception>
#include <opencv2/core.hpp>
//#include <opencv2/core.hpp>
#include "mex.h"
/*
@@ -24,9 +24,9 @@ void mexFunction(int nlhs, mxArray* plhs[],
// call the opencv function
// [out =] namespace.fun(src1, ..., srcn, dst1, ..., dstn, opt1, ..., optn);
try {
throw cv::exception;
} catch(cv::exception& e) {
mexErrMsgTxt(e.what());
// throw cv::exception;
//} catch(cv::exception& e) {
// mexErrMsgTxt(e.what());
} catch(...) {
mexErrMsgTxt("Incorrect exception caught!");
}