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

View File

@@ -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);
}