Ask Your Question

Revision history [back]

How to set other parameters in StereoBM

I noticed that in mexopencv object StereoBM lacks many parameters that can be set in openCV. I find that weird, because in the related StereoSGBM you can set all the parameters.

Links for comparison:
BM: https://kyamagu.github.io/mexopencv/matlab/StereoBM.init.html
SGBM: https://kyamagu.github.io/mexopencv/matlab/StereoSGBM.StereoSGBM.html

I also checked the source code for StereoBM.m (link: https://github.com/kyamagu/mexopencv/blob/master/%2Bcv/StereoBM.m) and parameters like "SpeckleRange", "SpeckleWindowSize" are listed there, but i don't know how to use them.

So what I'm asking is if there is any way that i can set parameters (like "UniquenessRatio" "SpeckleRange" "SpeckleWindowSize" and so on) of object StereoBM using mexopencv?