Ask Your Question

Revision history [back]

Use the following:

  auto sgbm =
      cv::StereoSGBM::create(   0,   //mindisp
                               48,   //numdisp
                                5,   //SADWindow
                               25,   //P1
                               50,   //P2
                                1,   //dispdiffmax
                               63,   //prefiltercap
                               40,   //uniqueness
                              200,   //speckle window size
                                2,   //speckle range
                                cv::StereoSGBM::MODE_SGBM_3WAY );