bm.init('OptionName', optionValue, ...)
Options
- Preset specifies the whole set of algorithm parameters,
one of: 'Basic', 'FishEye', 'Narrow'. After
constructing the class, you can override any
parameters set by the preset.
- NDisparities the disparity search range. For each pixel
algorithm will find the best disparity from 0 (default
minimum disparity) to ndisparities. The search range
can then be shifted by changing the minimum disparity.
default 0.
- SADWindowSize 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 higher chance for algorithm to find a
wrong correspondence. default 21.