mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-01 17:10:26 +08:00
Fixed error when loading PNG images (OpenCV error for the color format)
Unpaused automatically after initialization git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@315 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -382,7 +382,7 @@ SMState * CameraImages::takeImage()
|
||||
{
|
||||
_lastFileName = *fileNames.rbegin();
|
||||
std::string fullPath = _path + _lastFileName;
|
||||
img = cvLoadImage(fullPath.c_str(), CV_LOAD_IMAGE_UNCHANGED);
|
||||
img = cvLoadImage(fullPath.c_str(), CV_LOAD_IMAGE_COLOR);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -401,7 +401,7 @@ SMState * CameraImages::takeImage()
|
||||
if(fileName.size())
|
||||
{
|
||||
ULOGGER_DEBUG("Loading image : %s\n", fullPath.c_str());
|
||||
img = cvLoadImage(fullPath.c_str(), CV_LOAD_IMAGE_UNCHANGED);
|
||||
img = cvLoadImage(fullPath.c_str(), CV_LOAD_IMAGE_COLOR);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user