Adding support of image format *.pnm

git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@292 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
matlabbe
2011-06-30 02:51:37 +00:00
parent ceee3ee687
commit 708d243d96
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -357,7 +357,7 @@ bool CameraImages::init()
delete _dir;
_dir = 0;
}
_dir = new UDirectory(_path, "jpg ppm png bmp");
_dir = new UDirectory(_path, "jpg ppm png bmp pnm");
_count = 0;
if(_path[_path.size()-1] != '\\' && _path[_path.size()-1] != '/')
{
+1 -1
View File
@@ -899,7 +899,7 @@ void PreferencesDialog::selectSource(Src src)
if(!path.isEmpty() && dir.exists())
{
QStringList filters;
filters << "*.jpg" << "*.ppm" << "*.bmp" << "*.png";
filters << "*.jpg" << "*.ppm" << "*.bmp" << "*.png" << "*.pnm";
dir.setNameFilters(filters);
QFileInfoList files = dir.entryInfoList();
if(!files.empty())