Ask Your Question
0

disparity map values

asked 2014-03-27 11:03:43 -0500

SpiderGears gravatar image

hey!! i am working with disparity maps to find distances to real world object. I get a decent disparity image... so printed to content of the disparity matrix... and most of the values like 80-90% are -16 Any idea why..? Attached are Disparity Image and Image Data Disparity Image Data

Also disparity maps here looks too faint to me... Any help on this will be appreciated.

image description

edit retag flag offensive close merge delete

Comments

@berak Any idea abou this?

SpiderGears gravatar imageSpiderGears ( 2014-03-27 16:35:32 -0500 )edit

not really, sorry.

the -16 values might be: negative infinity

and ofc, imshow() does its own magic there.

berak gravatar imageberak ( 2014-03-27 16:52:43 -0500 )edit

yeah something looks like magic.... since most values are -16 as in image data... image should more like something plane than the texture here.

SpiderGears gravatar imageSpiderGears ( 2014-03-28 00:01:57 -0500 )edit

@berak : Have you worked with opencv 3.0 API...? Having some issues. Any means to contact you...?

SpiderGears gravatar imageSpiderGears ( 2014-03-28 00:33:13 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-05-06 22:34:22 -0500

jwatte gravatar image

Here is code I use to re-normalize the disparity map for display:

disp = cv2.normalize(sgbm.compute(ri_l, ri_r), alpha=0, beta=255, \
    norm_type=cv2.NORM_MINMAX, dtype=cv2.CV_8U)
edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2014-03-27 11:03:43 -0500

Seen: 1,265 times

Last updated: May 06 '14