Is it possible to get Data Cost Matrix for Stereo Matching Algorithms? [closed]

asked 2013-11-17 01:06:36 -0600

Robst gravatar image

Hello:

For an assignment in stereo matching I have to program some stereo confidence measures, like Left-Right consistency or Peak Ratio, and estimate the quality of the obtained disparity map for selected stereo matchers, like OpenCV's StereoBM and StereoSGBM.

For some of those confidence measures, the 3D Data Cost Matrix is required. This matrix stores, for each pixel p in the image and for each possible disparity value d, d_min <= d <= d_max, the cost to associate d to p. A matcher using the "Winner takes it all" strategy, would return as the selected disparity the value d* that is minimum.

I wonder if it is possible to get the 3D Data Cost Matrix from the StereoBM and StereoSGBM implementation. I've reviewed the code of StereoSGBM and there's a function called calcPixelCostBT that I think calculates this matrix, but I'm not totally sure.

I hope someone can shed some light into this issue.

Best regards!

Robst

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-11-13 03:58:59.559448