Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Not that much information are provided, so I try to be exhaustive as much as I can.

Starting from the beginning, you get the disparity map from the left and right images. This disparity map is static, that means that if you run the disparity map computation over and over with the same L and R images and the same algorithm you'll have always the same disparity map (if you don't change the left and right images, of course!).

What you mean for output, you display the disparity map or in terms of values?

In the first case must look always the same if you use the same images and the same algorithm each execution

If you mean printing value maybe you're just getting the value in the bad way. Check the matrix type and verify that you access it with the correct data type or you'll get wrong values.

Not that much information are provided, so I try to be exhaustive as much as I can.

Starting from the beginning, you get the disparity map from the left and right images. This disparity map is static, that means that if you run the disparity map computation over and over with the same L and R images and the same algorithm you'll have always the same disparity map (if you don't change the left and right images, of course!).

What you mean for output, you display the disparity map or in terms of values?

In the first case the disparity map must look always the same if you use the same images and the same algorithm each executionexecution. In that case, if you encounter changes, I'll probably check if there is some randomized things inside your algorithm.

If you mean printing value maybe you're just getting the value in the bad way. Check the matrix type and verify that you access it with the correct data type or you'll get wrong values.

values. For instance, a CV_64F can't be printed as a CV_8U matrix.