Ask Your Question
1

Martin Peris' 3D Reconstruction with OpenCV and Point Cloud Library

asked 2014-02-21 08:45:20 -0600

sputnik87 gravatar image

updated 2014-02-21 08:49:56 -0600

berak gravatar image

3D Reconstruction using OpenCV and Point Cloud Library from Stereo Camera generated disparity map.

I need help running Martin Peris' 3D Reconstruction with OpenCV and Point Cloud Library source code - http://blog.martinperis.com/2012/01/3d-reconstruction-with-opencv-and-point.html# in MS Visual Studio 2010. How can run I it? Please guide me on what needs to be done in order to run it. I need it as reference for my studies and i'm quite new to this thing.

edit retag flag offensive close merge delete

Comments

1

what if you start following his instructions, and report back if you run into trouble ?

oh, just get the opencv install from here instead, willowgarage is dead.

berak gravatar imageberak ( 2014-02-21 08:54:37 -0600 )edit
1

I already installed opencv and pcl. I also followed his instructions and I also have the disparity map and matrix needed by the code. I want to know what type of project do I create in Visual Studio to run the code. I'm also missing the parts on what to set, include, configure etc. before running it. I guess the instructions on the site are for running the program on linux platform. If someone could try running it on Visual Studio, your feedback will surely help.

sputnik87 gravatar imagesputnik87 ( 2014-02-21 09:34:38 -0600 )edit

oh, create an empty project in any case. (as even the 'console' one will run you into trouble with unicode / precompiled headers and such)

berak gravatar imageberak ( 2014-02-21 09:44:22 -0600 )edit

if you got cmake - open a console window in that folder and run:

cmake -G "Visual Studio 10"

this should generate the desired vcproj/sln files

berak gravatar imageberak ( 2014-02-21 09:47:40 -0600 )edit

"I also have the disparity map and matrix needed by the code" -- well, that's the outcome of his situation.

(the code is only for visualizing an existing disparity map)

to get a disparity map from your cams, you'll have to stereo calibrate your cams, undistort the images, and acquire your own disparity via blockmatching/stereovar.

hard work ahead ;)

berak gravatar imageberak ( 2014-02-21 09:54:43 -0600 )edit

I tried creating a console project and pasted the source code. I also did the cmake thing in the folder but I ran into some errors for both cases. I guess they have something to do with the include stuff in opencv and also pcl. Have you tried running the code @berak? I need your help on how to do this in steps. Thanks.

sputnik87 gravatar imagesputnik87 ( 2014-02-21 10:16:33 -0600 )edit

I already have the disparity map from my cam. I already did my own stereo calibration. My problem now is how to get the source code running. I really need your help. Thanks.

sputnik87 gravatar imagesputnik87 ( 2014-02-21 10:19:51 -0600 )edit

no i did not run it. (got too lazy , when it comes to configuring pcl as well.. )

also still on vs2008 and different pcl version here, so whatever would work for me, won't for you.

berak gravatar imageberak ( 2014-02-21 10:21:01 -0600 )edit

"I already have the disparity map from my cam" -- ohh ok. ++ ;)

berak gravatar imageberak ( 2014-02-21 10:22:38 -0600 )edit

Ok. Thanks for the help though. Just wanna ask. I found the owner of the source code. He has an account here in opencv.org. Is there a way that I can send him a personal message here or tag him?

sputnik87 gravatar imagesputnik87 ( 2014-02-21 10:46:11 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-07-31 11:21:14 -0600

Kozuch gravatar image

updated 2014-07-31 15:43:17 -0600

You basically have to follow Martin Peris' earlier blog post on calibration (and do the calibration), then you have to obtain a disparity image (code included in his calibration example) and RGB left image - these all will be inputs for his PCL example. So far, I made all this including the PCL point cloud to work on Ubuntu 14.04 without much effort.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-02-21 08:45:20 -0600

Seen: 6,676 times

Last updated: Jul 31 '14