First time here? Check out the FAQ!
answered 2014-05-06 22:34:22 -0600
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)