1 | initial version |
Disparity map is calculated w.r.t left image, i.e the (x,y) pixel in disparity map corresponds the (x,y) pixel in left image. On the other hand, the pixel in the right which corresponds to that pixel is not accessible in OpenCV's Semi Global Block Matching algorithm as far as I know. You need to go deeper in the source code.