1 | initial version |
First of all, you are passing the arguments in different order in the two calls to imshow().
Second, I found that my disparity map looked faint until I re-mapped it before showing. Here's the code I'm using:
disp = cv2.normalize(sgbm.compute(ri_l, ri_r), alpha=0, beta=255, \
norm_type=cv2.NORM_MINMAX, dtype=cv2.CV_8U)