royshil / SfM-Toy-Library

A toy library for Structure from Motion using OpenCV
531 stars 215 forks source link

How can I run the GUI ? #38

Open Martin74 opened 7 years ago

Martin74 commented 7 years ago

Hey !!

The code is running but everything is invisible :( How can I run the GUI ? Thank you in advance

martin@martin-Lenovo-Yoga-2-13:~/SfM-Toy-Library$ ./build/SfMToyUI -p /home/martin/SfM-Toy-Library/dataset/crazyhorse -o /home/ ----------------- Extract Features ----------------- ----------- Create Feature Match Matrix ------------ ----------- Find Baseline Triangulation ------------ ---------- Find Views Homography Inliers ----------- Ceres Solver Report: Iterations: 74, Initial cost: 1.430948e+01, Final cost: 1.069068e+01, Termination: CONVERGENCE ------------------ Add More Views ------------------ Ceres Solver Report: Iterations: 26, Initial cost: 1.183747e+02, Final cost: 3.976295e+01, Termination: CONVERGENCE Ceres Solver Report: Iterations: 16, Initial cost: 1.600916e+02, Final cost: 9.801345e+01, Termination: CONVERGENCE Ceres Solver Report: Iterations: 9, Initial cost: 1.171905e+03, Final cost: 2.352387e+02, Termination: CONVERGENCE Ceres Solver Report: Iterations: 10, Initial cost: 1.102153e+03, Final cost: 4.036237e+02, Termination: CONVERGENCE Ceres Solver Report: Iterations: 7, Initial cost: 7.625723e+02, Final cost: 5.128044e+02, Termination: CONVERGENCE ----------------------- Done -----------------------

Martin74 commented 7 years ago

I have installed Qgl viewer, now How can I run your programm with it ? I don't see any .pro

royshil commented 7 years ago

The new version doesn't have a GUI component yet.

Martin74 commented 7 years ago

Thank you for your answer !! I would like to get the depth map from a monocular image with opencv, which part of your program does this ?

royshil commented 7 years ago

You need to get at least two images and then do stereo matching - that can give you a very sparse 3D reconstruction. For stereo matching (correspondance) - see http://docs.opencv.org/3.1.0/dd/d86/group__stereo.html

On Sat, Feb 25, 2017 at 5:31 PM Martin74 notifications@github.com wrote:

Thank you for your answer !! I would like to get the depth map from a monocular image with opencv, which part of your program does this ?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/royshil/SfM-Toy-Library/issues/38#issuecomment-282517365, or mute the thread https://github.com/notifications/unsubscribe-auth/AAa7Uv7BFkS3Lsd-64nMz_jArtY6CbPFks5rgKvOgaJpZM4MMFDD .