Fixed build error in CameraRGB with OpenCV<3

This commit is contained in:
matlabbe
2016-01-12 12:25:23 -05:00
parent 5136b38111
commit f39646567a
+1 -1
View File
@@ -494,7 +494,7 @@ SensorData CameraImages::captureImage()
{ {
// The depth should be 8U // The depth should be 8U
UWARN("Cannot read the image correctly, falling back to old OpenCV C interface..."); 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); img = cv::Mat(i, true);
cvReleaseImage(&i); cvReleaseImage(&i);
} }