code: def get_disparity(self, pair):
          
          return self._block_matcher.compute(pair[0],
                                            pair[1]).astype(np.float32) / 16.0
docs: Compute disparity from image pair (left, right).