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:
matlabbe
2011-09-15 21:02:48 +00:00
parent 176ca33e27
commit 3eb8bcbfa4
2 changed files with 6 additions and 2 deletions

View File

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