From f39646567a5e0da6eec1c717d9f016c69c8e147d Mon Sep 17 00:00:00 2001 From: matlabbe Date: Tue, 12 Jan 2016 12:25:23 -0500 Subject: [PATCH] Fixed build error in CameraRGB with OpenCV<3 --- corelib/src/CameraRGB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/corelib/src/CameraRGB.cpp b/corelib/src/CameraRGB.cpp index 0094d3ef..0b743606 100644 --- a/corelib/src/CameraRGB.cpp +++ b/corelib/src/CameraRGB.cpp @@ -494,7 +494,7 @@ SensorData CameraImages::captureImage() { // The depth should be 8U UWARN("Cannot read the image correctly, falling back to old OpenCV C interface..."); - IplImage * i = cvLoadImage(fullPath.c_str()); + IplImage * i = cvLoadImage(imageFilePath.c_str()); img = cv::Mat(i, true); cvReleaseImage(&i); }