Creates StereoBM object
bm = cv.StereoBM()
bm = cv.StereoBM('OptionName', optionValue, ...)
Options
- NumDisparities the disparity search range. For each pixel
algorithm will find the best disparity from 0 (default minimum
disparity) to
NumDisparities
. The search range can then be
shifted by changing the minimum disparity. default 0 (which
uses 64 by default).
- BlockSize the linear size of the blocks compared by the
algorithm. The size should be odd (as the block is centered at
the current pixel). Larger block size implies smoother, though
less accurate disparity map. Smaller block size gives more
detailed disparity map, but there is is higher chance for
algorithm to find a wrong correspondence. default 21.
The function creates cv.StereoBM object. You can then call
cv.StereoBM.compute to compute disparity for a specific stereo
pair.