Commit d71d1722 authored by Vincent Rabaud's avatar Vincent Rabaud

fix compilation problems seen in #12

parent a218468f
...@@ -33,11 +33,12 @@ ...@@ -33,11 +33,12 @@
* *
*/ */
#include <opencv2/rgbd/rgbd.hpp> #include <opencv2/rgbd.hpp>
#include "opencv2/highgui/highgui.hpp" #include <opencv2/highgui.hpp>
#include "opencv2/contrib/contrib.hpp" #include <opencv2/contrib.hpp>
#include "opencv2/calib3d/calib3d.hpp" #include <opencv2/calib3d.hpp>
#include <opencv2/imgproc.hpp>
#include <dirent.h> #include <dirent.h>
#include <iostream> #include <iostream>
...@@ -144,8 +145,8 @@ int main(int argc, char** argv) ...@@ -144,8 +145,8 @@ int main(int argc, char** argv)
cameraMatrix.at<float>(1,2) = cy; cameraMatrix.at<float>(1,2) = cy;
} }
Ptr<OdometryFrame> frame_prev = new OdometryFrame(), Ptr<OdometryFrame> frame_prev = Ptr<OdometryFrame>(new OdometryFrame()),
frame_curr = new OdometryFrame(); frame_curr = Ptr<OdometryFrame>(new OdometryFrame());
Ptr<Odometry> odometry = Algorithm::create<Odometry>("RGBD." + string(argv[3]) + "Odometry"); Ptr<Odometry> odometry = Algorithm::create<Odometry>("RGBD." + string(argv[3]) + "Odometry");
if(odometry.empty()) if(odometry.empty())
{ {
...@@ -206,7 +207,7 @@ int main(int argc, char** argv) ...@@ -206,7 +207,7 @@ int main(int argc, char** argv)
{ {
Mat gray; Mat gray;
cvtColor(image, gray, CV_BGR2GRAY); cvtColor(image, gray, COLOR_BGR2GRAY);
frame_curr->image = gray; frame_curr->image = gray;
frame_curr->depth = depth; frame_curr->depth = depth;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment