Validates disparity using the left-right check
disparity = cv.validateDisparity(disparity, cost)
disparity = cv.validateDisparity(disparity, cost, 'OptionName',optionValue, ...)
Input
- disparity disparity map, 1-channel 16-bit signed integer array.
- cost Cost matrix computed by the stereo correspondence algorithm. An
array of same size as
disparity
and 16-bit or 32-bit signed integer type.
Output
- disparity validated disparity map.
Options
- MinDisparity Minimum possible disparity value. Normally, it is zero
but sometimes rectification algorithms can shift images, so this parameter
needs to be adjusted accordingly. default 0
- NumDisparities Maximum disparity minus minimum disparity. The value is
always greater than zero. default 64
- Disp12MaxDisp Maximum allowed difference (in integer pixel units) in
the left-right disparity check. default 1