Added CameraInfo class (added Camera tab in Statistics panel). Scans/userData are not saved anymore when Mem/BinDataKept=false. StereoACameraImages: Fixed error when scan path is not set. Refactoring of OdometryOpticalFlow class to provide variance when 3D->2D estimation is used.

This commit is contained in:
matlabbe
2015-11-30 18:49:28 -05:00
parent d9c9db934a
commit e58f907440
18 changed files with 267 additions and 144 deletions

View File

@@ -66,7 +66,8 @@ CameraImages::CameraImages(const std::string & path,
_count(0),
_dir(0),
_countScan(0),
_scanDir(0)
_scanDir(0),
_scanMaxPts(0)
{
}
@@ -152,6 +153,7 @@ bool CameraImages::init(const std::string & calibrationFolder, const std::string
}
if(!_scanPath.empty())
{
UINFO("scan path=%s", _scanPath.c_str());
_scanDir = new UDirectory(_scanPath, "pcd bin"); // "bin" is for KITTI format
if(_scanPath[_scanPath.size()-1] != '\\' && _scanPath[_scanPath.size()-1] != '/')
{