There are several typical steps to try to speed up disparity map calculation:
- resize/scale left and right images
to the smallest usable/meaningful
dimensions.
- use the smallest useful correlation
window size.
- use the smallest useful
numberOfDisparities - trading off
minDisparities here may help you
select a 'depth of field' of
interest.
- If you can make StereoBM work for
your application or the CUDA
versions of StereoBM, they will be
be at least an order of magnitude faster than StereoSGBM.