Ask Your Question

Revision history [back]

There are several typical steps to try to speed up disparity map calculation:

  1. resize/scale left and right images to the smallest usable/meaningful dimensions.
  2. use the smallest useful correlation window size.
  3. use the smallest useful numberOfDisparities - trading off minDisparities here may help you select a 'depth of field' of interest.
  4. 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.