32 #include <opencv2/highgui/highgui.hpp> 54 const std::string & path,
59 virtual bool init(
const std::string & calibrationFolder =
".",
const std::string & cameraName =
"");
60 virtual bool isCalibrated()
const;
61 virtual std::string getSerial()
const;
63 std::string
getPath()
const {
return _path;}
64 unsigned int imagesCount()
const;
65 std::vector<std::string> filenames()
const;
70 void setPath(
const std::string & dir) {_path=dir;}
76 void setTimestamps(
bool fileNamesAreStamps,
const std::string & filePath =
"",
bool syncImageRateWithStamps=
true)
78 _filenamesAreTimestamps = fileNamesAreStamps;
79 _timestampsPath=filePath;
80 _syncImageRateWithStamps = syncImageRateWithStamps;
84 const std::string & dir,
86 int downsampleStep = 1,
87 float voxelSize = 0.0f,
89 float normalsRadius = 0,
91 bool forceGroundNormalsUp =
false)
94 _scanLocalTransform = localTransform;
95 _scanMaxPts = maxScanPts;
96 _scanDownsampleStep = downsampleStep;
97 _scanNormalsK = normalsK;
98 _scanNormalsRadius = normalsRadius;
99 _scanVoxelSize = voxelSize;
100 _scanForceGroundNormalsUp = forceGroundNormalsUp;
105 _depthFromScan = enabled;
106 _depthFromScanFillHoles = fillHoles;
107 _depthFromScanFillHolesFromBorder = fillHolesFromBorder;
113 _odometryPath = filePath;
114 _odometryFormat = format;
120 _groundTruthPath = filePath;
121 _groundTruthFormat = format;
127 void setDepth(
bool isDepth,
float depthScaleFactor = 1.0f)
130 _depthScaleFactor=depthScaleFactor;
136 std::list<Transform> & outputPoses,
137 std::list<double> & stamps,
138 const std::string & filePath,
140 double maxTimeDiff)
const;
205 bool rectifyImages =
false,
209 bool rectifyImages =
false,
214 virtual bool init(
const std::string & calibrationFolder =
".",
const std::string & cameraName =
"");
215 virtual bool isCalibrated()
const;
216 virtual std::string getSerial()
const;
std::list< Transform > groundTruth_
void setPath(const std::string &dir)
Transform _scanLocalTransform
std::string _groundTruthPath
cv::VideoCapture _capture
std::string _lastFileName
void setOdometryPath(const std::string &filePath, int format=0)
void setImagesRectified(bool enabled)
void setDirRefreshed(bool enabled)
bool _scanForceGroundNormalsUp
void setScanPath(const std::string &dir, int maxScanPts=0, int downsampleStep=1, float voxelSize=0.0f, int normalsK=0, float normalsRadius=0, const Transform &localTransform=Transform::getIdentity(), bool forceGroundNormalsUp=false)
void setGroundTruthPath(const std::string &filePath, int format=0)
std::list< double > _stamps
void setBayerMode(int mode)
std::string _odometryPath
int _depthFromScanFillHoles
std::string _lastScanFileName
const CameraModel & cameraModel() const
virtual void setStartIndex(int index)
void setDepth(bool isDepth, float depthScaleFactor=1.0f)
std::list< Transform > odometry_
bool _depthFromScanFillHolesFromBorder
void setMaxPoseTimeDiff(double diff)
void setDepthFromScan(bool enabled, int fillHoles=1, bool fillHolesFromBorder=false)
void setTimestamps(bool fileNamesAreStamps, const std::string &filePath="", bool syncImageRateWithStamps=true)
virtual bool odomProvided() const
bool _syncImageRateWithStamps
std::string _timestampsPath
std::string getPath() const
bool _filenamesAreTimestamps
bool isImagesRectified() const
const std::string & getFilePath() const
double getMaxPoseTimeDiff() const