mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-13 23:10:20 +08:00
Fixed build error in CameraRGB with OpenCV<3
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user