Commit b67896df authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #151 from rokm/matlab-fix

Fixes required to compile MATLAB bindings
parents c6ea683b 63008ba7
......@@ -104,6 +104,7 @@ set(HDR_PARSER_PATH ${CMAKE_SOURCE_DIR}/modules/python/src2)
set(RST_PARSER_PATH ${CMAKE_SOURCE_DIR}/modules/java/generator)
# set mex compiler options
prepend("-I" MEX_INCLUDE_DIRS ${CMAKE_BINARY_DIR})
prepend("-I" MEX_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/include)
if (MSVC)
prepend("-L" MEX_LIB_DIR ${LIBRARY_OUTPUT_PATH}/${CMAKE_CFG_INTDIR})
......
......@@ -53,6 +53,7 @@
#include <opencv2/imgproc.hpp>
#include <opencv2/calib3d.hpp>
#include <opencv2/photo.hpp>
#include <opencv2/stitching.hpp>
#include <opencv2/video.hpp>
namespace cv {
......@@ -87,6 +88,7 @@ typedef cv::Ptr<DenseOpticalFlow> Ptr_DenseOpticalFlow;
typedef cv::Ptr<MergeDebevec> Ptr_MergeDebevec;
typedef cv::Ptr<MergeMertens> Ptr_MergeMertens;
typedef cv::Ptr<MergeRobertson> Ptr_MergeRobertson;
typedef cv::Ptr<Stitcher> Ptr_Stitcher;
typedef cv::Ptr<Tonemap> Ptr_Tonemap;
typedef cv::Ptr<TonemapDrago> Ptr_TonemapDrago;
typedef cv::Ptr<TonemapDurand> Ptr_TonemapDurand;
......@@ -481,6 +483,11 @@ public:
Ptr_MergeRobertson toPtrMergeRobertson() { return Ptr_MergeRobertson(); }
operator Ptr_MergeRobertson() { return toPtrMergeRobertson(); }
// --------------------------- Ptr_Stitcher ------------------------------
Bridge& operator=(const Ptr_Stitcher& ) { return *this; }
Ptr_Stitcher toPtrStitcher() { return Ptr_Stitcher(); }
operator Ptr_Stitcher() { return toPtrStitcher(); }
// --------------------------- Ptr_Tonemap ------------------------------
Bridge& operator=(const Ptr_Tonemap& ) { return *this; }
Ptr_Tonemap toPtrTonemap() { return Ptr_Tonemap(); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment