diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-08-25 10:45:55 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-08-25 10:45:55 +0100 |
commit | 3cf7c3ef441822c889356fd1812ebf2944a59851 (patch) | |
tree | c513fe68548b40365c1c2ebfe35c58ad431cdd77 /dev-ros/laser_cb_detector/files | |
parent | 05b8b0e0af1d72e51a3ee61522941bf7605cd01c (diff) |
gentoo resync : 25.08.2020
Diffstat (limited to 'dev-ros/laser_cb_detector/files')
-rw-r--r-- | dev-ros/laser_cb_detector/files/ocv4-2.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/dev-ros/laser_cb_detector/files/ocv4-2.patch b/dev-ros/laser_cb_detector/files/ocv4-2.patch new file mode 100644 index 000000000000..3cc51c45d7dd --- /dev/null +++ b/dev-ros/laser_cb_detector/files/ocv4-2.patch @@ -0,0 +1,34 @@ +Index: laser_cb_detector/test/laser_cb_detector_unittest.cpp +=================================================================== +--- laser_cb_detector.orig/test/laser_cb_detector_unittest.cpp ++++ laser_cb_detector/test/laser_cb_detector_unittest.cpp +@@ -37,7 +37,7 @@ + + #include <laser_cb_detector/ConfigGoal.h> + #include <laser_cb_detector/laser_cb_detector.h> +-#include <opencv/highgui.h> ++#include <opencv2/highgui.hpp> + + using namespace laser_cb_detector; + using namespace std; +@@ -55,8 +55,9 @@ static const string test_path = xstr(TES + + calibration_msgs::DenseLaserSnapshot getSnapshot(const string& filename) + { +- IplImage* image; +- image = cvLoadImage(filename.c_str(), 0); // 0 -> Force image to grayscale ++ cv::Mat mat = cv::imread(filename.c_str(), 0); ++ IplImage image_v = cvIplImage(mat); ++ IplImage* image = &image_v; + EXPECT_TRUE(image) << "could not open image file [" << filename << "]" << endl; + + +@@ -92,7 +93,7 @@ calibration_msgs::DenseLaserSnapshot get + } + + cvReleaseImage(&float_image); +- cvReleaseImage(&image); ++ //cvReleaseImage(&image); + + return snapshot; + } |