|
55 | 55 | #include <opencv2/photo.hpp>
|
56 | 56 | #include <opencv2/stitching.hpp>
|
57 | 57 | #include <opencv2/video.hpp>
|
| 58 | +#include <opencv2/optflow.hpp> |
| 59 | +#include <opencv2/xphoto.hpp> |
| 60 | + |
| 61 | +/* This 'using' line was added in order to fix the following Error. |
| 62 | + * Failed to compile currentUIFramework: |
| 63 | + * modules/matlab/src/currentUIFramework.cpp: |
| 64 | + * In function void mexFunction(int, mxArray**, int, const mxArray**) |
| 65 | + * error: string was not declared in this scope |
| 66 | + * string retval; in line 41 |
| 67 | + * |
| 68 | + * This error happens at the last stage of opencv build, when compiling the mex bindings |
| 69 | + * TODO: This is NOT the optimal fix, and needs to be addressed |
| 70 | + */ |
| 71 | +using std::string; |
| 72 | + |
58 | 73 |
|
59 | 74 | namespace cv {
|
60 | 75 | namespace bridge {
|
@@ -85,17 +100,21 @@ typedef cv::Ptr<AlignMTB> Ptr_AlignMTB;
|
85 | 100 | typedef cv::Ptr<CalibrateDebevec> Ptr_CalibrateDebevec;
|
86 | 101 | typedef cv::Ptr<CalibrateRobertson> Ptr_CalibrateRobertson;
|
87 | 102 | typedef cv::Ptr<DenseOpticalFlow> Ptr_DenseOpticalFlow;
|
88 |
| -typedef cv::Ptr<DualTVL1OpticalFlow> Ptr_DualTVL1OpticalFlow; |
| 103 | +typedef cv::Ptr<cv::optflow::DualTVL1OpticalFlow> Ptr_DualTVL1OpticalFlow; |
89 | 104 | typedef cv::Ptr<MergeDebevec> Ptr_MergeDebevec;
|
90 | 105 | typedef cv::Ptr<MergeMertens> Ptr_MergeMertens;
|
91 | 106 | typedef cv::Ptr<MergeRobertson> Ptr_MergeRobertson;
|
92 | 107 | typedef cv::Ptr<Stitcher> Ptr_Stitcher;
|
93 | 108 | typedef cv::Ptr<Tonemap> Ptr_Tonemap;
|
94 | 109 | typedef cv::Ptr<TonemapDrago> Ptr_TonemapDrago;
|
95 |
| -typedef cv::Ptr<TonemapDurand> Ptr_TonemapDurand; |
| 110 | +typedef cv::Ptr<cv::xphoto::TonemapDurand> Ptr_TonemapDurand; |
96 | 111 | typedef cv::Ptr<TonemapMantiuk> Ptr_TonemapMantiuk;
|
97 | 112 | typedef cv::Ptr<TonemapReinhard> Ptr_TonemapReinhard;
|
98 | 113 | typedef cv::Ptr<float> Ptr_float;
|
| 114 | +typedef cv::Ptr<cv::GeneralizedHoughBallard> Ptr_GeneralizedHoughBallard; |
| 115 | +typedef cv::Ptr<cv::GeneralizedHoughGuil> Ptr_GeneralizedHoughGuil; |
| 116 | + |
| 117 | + |
99 | 118 |
|
100 | 119 | // ----------------------------------------------------------------------------
|
101 | 120 | // PREDECLARATIONS
|
@@ -527,6 +546,15 @@ class Bridge {
|
527 | 546 | Bridge& operator=(const Ptr_float& ) { return *this; }
|
528 | 547 | Ptr_float toPtrFloat() { return Ptr_float(); }
|
529 | 548 | operator Ptr_float() { return toPtrFloat(); }
|
| 549 | + |
| 550 | + // --------------------------- Ptr_GeneralizedHoughBallard -------------- |
| 551 | + Bridge& operator=(const Ptr_GeneralizedHoughBallard& obj) { return *this; } |
| 552 | + operator Ptr_GeneralizedHoughBallard() { return Ptr_GeneralizedHoughBallard(); } |
| 553 | + |
| 554 | + // --------------------------- Ptr_GeneralizedHoughGuil ---------------------- |
| 555 | + Bridge& operator=(const Ptr_GeneralizedHoughGuil& obj) { return *this; } |
| 556 | + operator Ptr_GeneralizedHoughGuil() { return Ptr_GeneralizedHoughGuil(); } |
| 557 | + |
530 | 558 | }; // class Bridge
|
531 | 559 |
|
532 | 560 |
|
|
0 commit comments