Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

StereoBM has a state member that points to a CvStereoBMState. The CvStereoBMState has a member called minDisparity. If you have a StereoBM variable called bm, you just need to set bm.state->minDisparity to the value you want.

StereoBM has a state member that points to a CvStereoBMState. The CvStereoBMState has a member called minDisparity. If you have a StereoBM variable called bm, you just need to set bm.state->minDisparity to the value you want.

EDIT: I might be wrong about the OCL version. This is what works in the regular (cpu) version of StereoBM.