mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +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
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user