Attention! This forum will be made read-only by Dec-20. Please migrate to Most of existing active users should've received invitation by e-mail.
Ask Your Question

Align stereo images taken from one camera

asked 2013-01-24 02:29:52 -0500

mr.burns gravatar image

updated 2013-01-24 02:49:12 -0500


I am brand new to OpenCV and want to know if it is possible to align two stereo images taken by one after the other by a single camera (as know as cha-cha technique). The steps is as follows:

  1. Take one picture
  2. Move the cam horizontally 10cm
  3. Take a second picture

(Of course only stills can be taken this way, no images of moving objects)

My question now, how can I align these two pictures using OpenCV to create a comfortable anaglyph red / cyan stereo image?

OpenCV should do following, if possible:

  1. Correct differences in rotation and translation of the images
  2. Correct differences in contrast / hue / saturation / white balance / etc.
  3. Correct lens distortion (but without camera calibration! (if possible))
  4. Align the two images vertically
  5. Align the two images horizontally to get comfortable stereo images
  6. Convert to red/cyan

Since I am brand new to OpenCV it would be great if someone can give me some hints how to achieve this. A list of OpenCV functions to consider/call would be great.

Thanks a lot!

edit retag flag offensive close merge delete



What the horizontal align you want if you move your camera at 10 cm?

Victor1234 gravatar imageVictor1234 ( 2013-01-24 03:25:04 -0500 )edit

Hi Vistor1234,

may I explained not well enough. I have one digital camera in my hand and take the 1st picture. Then I move myself 10cm to the right and take the 2nd picture also by hand. Since the camera is not fixed on a tripod or something else, there will be a horizontal, vertical and rotational difference between 1st and 2nd picture. So I cannot do any camera calibration, I need to correct ever image pair. This I want to do by functions of OpenCV, but I don't know where to start.

Thanks again for further help...

mr.burns gravatar imagemr.burns ( 2013-01-25 00:59:47 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2013-01-26 04:19:03 -0500

Victor1234 gravatar image

updated 2013-01-26 05:18:03 -0500

I think you can use Structure from motion technic, for example

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2013-01-24 02:29:52 -0500

Seen: 1,886 times

Last updated: Jan 26 '13