Ask Your Question
0

NumDisparity and blocksize.

asked 2016-01-04 17:39:58 -0600

ban gravatar image

Hi, I am trying to create a depth map using cv::StereoSGBM. But I don't know how to set parameters: numdisparity, mindisparity, blocksize.

How to do it to get a good results?

Thanks in advance.

edit retag flag offensive close merge delete

Comments

perhaps you should share your rectified image & your parameters!

Balaji R gravatar imageBalaji R ( 2016-01-05 04:03:44 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2016-01-05 06:26:03 -0600

numDisparity determines the resolution of your stereo map. If you define, for example, minDisparity of 20, the algorithm will attempt to define 20 different levels of depth for your map The higher this value, the higher resolution you get for you depth map, but the algorithm also slows down and will return less coherent results for a very demanding parameter.

minDisparity is usually zero, it means the least distance the algorithm is looking for.

BlockSize is the size of the block of pixels the algorithm will compare for each stereo pair.

edit flag offensive delete link more

Comments

ban gravatar imageban ( 2016-01-05 10:34:19 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2016-01-04 17:39:58 -0600

Seen: 2,782 times

Last updated: Jan 05 '16