Ask Your Question
1

Doubt with disparity values from stereo image

asked 2018-04-05 21:55:34 -0600

Kafan gravatar image

updated 2018-04-12 21:03:01 -0600

If I have a single flat object held parallel to my stereo camera plane. Given nature of pinhole camera, would the disparity values be same across the image (ideal case) or values shift as we move from center of the image towards either of the edge?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2018-04-06 02:22:11 -0600

LBerger gravatar image

updated 2018-04-16 14:52:04 -0600

disparity gives you distance between object and optical center. a constant disparity constant means : a sphere see @Kafan answer : a plane Z=cste

image description

(u1,v1) pixel coordinate in image 1 (u2,v2) pixel coordinate in image 2

u2-u1=d=disparity (images are rectified)

b base

f focal length

mx,my pixels/mm in x or y direction

edit flag offensive delete link more

Comments

@LBerger: From your post, it seems you have mentioned the disparity value (depth info) is obtained is basically displacement from optical center till the object in view. Is my understanding correct? Basically I need the disparity in terms of perpendicular distance with plane of camera rather than center of camera. So I am using a pixel's cosine of cast angle with the camera's optical axis (obtained using FOV parameters of camera). Is this approach correct?

Kafan gravatar imageKafan ( 2018-04-12 09:30:43 -0600 )edit

No disparity is u2-u1 object coordinates is (u1,v1) in image1 and (u2,v2) in image2 It means that x axis for camera1 and camera2 are colinear

LBerger gravatar imageLBerger ( 2018-04-12 09:50:13 -0600 )edit

@LBerger: Sorry, I could not make myself clear in earlier post. I have attached a image to explain better. https://imgur.com/a/48jMI There are two real points (x',y') and (x,y), lying on the same plane which is parallel to camera plane. I understand disparity is inversely proportional to actual distance from camera. Now this actual distance is displacement from the real object point to optical center or perpendicular distance to camera plane? If it is actual distance, then disparity of these two points calculated would not be same, inspite of having constant distance from camera plane (perpendicular distance, will mean disparity of (x',y') (x,y) will be found same). I believe in this case I can use cosine of the horizontal angle cast w.r.t. to camera axis to bring all values to same scale.

Kafan gravatar imageKafan ( 2018-04-12 22:37:54 -0600 )edit
1

@LBerger: I don't think a constant disparity means a sphere. As per literature that I have gone through, it seems disparity is inversely proportional to perpendicular distance from real world point to camera plane. Thus , a constant disparity means a plane held parallely to camera's plane.

Kafan gravatar imageKafan ( 2018-04-16 12:15:25 -0600 )edit

Right that's not a sphere : Im'm tired it is written in equation Z=cste

LBerger gravatar imageLBerger ( 2018-04-16 14:49:47 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-04-05 21:55:34 -0600

Seen: 672 times

Last updated: Apr 16 '18