Ask Your Question
0

Shift on stereo images

asked 2012-08-14 15:21:05 -0500

dramaticlook gravatar image

updated 2012-08-14 18:07:31 -0500

Hi all, I keep asking different questions about the topic as I learn further about simpleCV API. In this question, I want to learn how to calculate the amount of shift of the view between left and right eye images of a stereo camera. I simply have two images of a scene from arbitrary left&right eye views and want to calculate how much Movement exists on these views. I found out about Motion in the API but when I use it, it gives me a lot of data for different points and is calculated quite slow. Is there something that will do what I need? I tried to draw the keypoints of the two images but some keypoint in one view is possibly not marked in the other eye view. I can not find any way. Please help:(

edit retag flag offensive close merge delete

Comments

Thanks @kscottz. Sorry for the late reply. I took a look at the class. However I'm not that good with math. if I use findDisparityMap function will I be able to calculate the disparity between the images? If not how how can I do this?

dramaticlook gravatar imagedramaticlook ( 2012-08-31 11:10:15 -0500 )edit

Hi @vijaym123, This findDisparityMap is already implemented in the StereoCamera class. I just wonder how to use it. However I will try to find out what I can do with it, but help would be appreciated also:)

dramaticlook gravatar imagedramaticlook ( 2012-08-31 13:14:39 -0500 )edit

Yeah I know findDisparityMap function. Anyways I have implemented what I wanted. I find the closest point (from findFundamentalMatrix points) to my click point and calculate the disparity on its matching matrix point in the second image. How can I post my code if you want to see it?

dramaticlook gravatar imagedramaticlook ( 2012-09-10 06:55:05 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2012-08-17 15:49:03 -0500

kscottz gravatar image

The motion methods are for optical flow calculations, not for stereo vision calculations. All of the stereo vision code lives in the stereo camera class. It sounds like you are looking for the disparity of points between the two views. I suggest you read up about the essential matrix and the fundamental matrix.

We are big fans of this gentle primer on the subject.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2012-08-14 15:21:05 -0500

Seen: 408 times

Last updated: Aug 17 '12