tum-vision / dvo_slam

Dense Visual Odometry and SLAM
631 stars 306 forks source link

Image size #30

Closed Letoll closed 9 years ago

Letoll commented 9 years ago

Hi,

I would wand to use this SLAM algorithm with an other type of camera and so I was wondering how to change the size for input images (for the case where I use datasets). I have taken a look at the code, but I don't see where this 640×480 requirement is defined.

With an other size (example 480*480) I have this :

benchmark: /dvo_slam/dvo_core/src/core/rgbd_image.cpp:247: void dvo::core::RgbdCamera::buildPointCloud(const cv::Mat&, dvo::core::PointCloud&) const: Assertion `hasSameSize(depth)' failed.

Why the condition img.cols == width && img.rows == height would be wrong ?

Thanks