1

I wish to make a 3D reconstruction of a scene. For that, I have 2 images of the scene taken from two different angles. Is there a library that does that? (I work in python) if not, what are the steps that must be followed? if you have the code ready, it is welcome. thanks

Christoph Rackwitz
  • 11,317
  • 4
  • 27
  • 36
lyn87
  • 49
  • 1
  • 10

2 Answers2

0

I have not tried it for myself yet, but it seems simple with OpenCV.

OpenCV has module for 3D reconstruction.

Also check out this tutorial.

Upd. Please look at comments from @berak below. I misunderstood yours question at first.

I found SfM-Toy-Library library on github, which uses algorithms from mentioned "Multiple View Geometry" book. It's written using OpenCV and better relates to the topic, but it might be not so easy to use library in Python.

Rasim
  • 1,276
  • 1
  • 11
  • 24
  • 1
    ^^ that refers to *calibrated* stereo-cams, not the setup above. – berak Feb 24 '15 at 12:29
  • @berak My mistake, thank you. I'll delete this answer in a few minutes. – Rasim Feb 24 '15 at 12:32
  • probably @lyn87 should re-think his approach, the calibrated way your topics above describe, is the far easier one ! – berak Feb 24 '15 at 12:34
  • i saw this tuto, my question is : what is the relation between the calibration and calculation of disparity map ? – lyn87 Feb 24 '15 at 12:43
  • 1
    @lyn87 you will need calibrated stereo cameras to calculate a disparity map. from there' it's easy to get 3d coords. – berak Feb 24 '15 at 12:46
0

You can use vtk First step is image processing and second step is 3d reconstructions For example you can try for first step:

1)Median Filtering

2)Image contrast

3)Thresholding

4)Noise reduction

And second step includes:

1)vtkMarchingCubes

2)vtkPolyDataMapper

3)vtkActor

4)Renderer

Also you can read this article : enter link description here

j.doe
  • 327
  • 7
  • 22