OCL StereoBM and images needing negative minimum disparity
I was wondering if there is any reason why there is no ability to set the minimum disparity?
I was wondering if there is any reason why there is no ability to set the minimum disparity?
If minDisp is not available, you can shift one of your images left or right by the amount you would have used for minDisp. After doing the BM, you can then subtract/add the same amount to the results to compensate.
That would still leave me with issues on one of the edges though.
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.
Asked: 2014-02-06 10:10:09 -0600
Seen: 648 times
Last updated: Feb 06 '14
Custom OpenCL kernel in opencv.
Which Android phones support CUDA
how to map opencv with opencl on windows
OpenCL: failed to load opencl runtime
Unhandled Exception for every ocl::* function I use
ocl:detectmultiscale error with traincascade
Opencv ocl library performance problem and sample square code performance question??