2

I copied the matlab code from: http://www.mathworks.fr/fr/help/vision/ug/stereo-image-rectification.html I can compute the 3D coordinates but I am not sure if it is the correct one.

Starting from the disparity map and calculating the 3D coordinates, how do we take into account of the warping tform1 and tform2?

Dima
  • 38,860
  • 14
  • 75
  • 115
alvaro562003
  • 678
  • 1
  • 6
  • 27
  • Tell us more. Elaborate more on what you tried, what you get and show us your doubts. This may be a very interesting question. – Ander Biguri Jul 24 '14 at 10:10

1 Answers1

0

The problem here is that you are using uncalibrated cameras. In this case you can get up-to-scale reconstruction, but if you want the 3D points in world units, you would need to know actual distances to some points in the world.

I think you would be better off calibrating your stereo system. Please see this example.

Dima
  • 38,860
  • 14
  • 75
  • 115