title: OpenCV StereoSGBM parameters for 25 MP Images
body: <p>I'm able to perform stereovision with two webcams and get good disparity map and 3D Point Cloud Reconstruction using the following parameters:</p>
  
  <pre><code> Ptr&lt;StereoSGBM&gt; sgbm = StereoSGBM::create(0,    //int minDisparity
                                      96,     //int numDisparities
                                      5,      //int SADWindowSize
                                      600,    //int P1 = 0
                                      2400,   //int P2 = 0
                                      20,     //int disp12MaxDiff = 0
                                      16,     //int preFilterCap = 0
                                      1,      //int uniquenessRatio = 0
                                      100,    //int speckleWindowSize = 0
                                      20,     //int speckleRange = 0
                                      true);  //bool fullDP = false
  </code></pre>
  
  <p>I've now abandoned webcams and I am working with 25 MP images (<strong>5012 x 5012</strong>) that are very large and am not able to get good disparity as I was able to do for the webcams. This of course depends on the parameters of the StereoSGBM employed for computing disparity. </p>
  
  <p>Could anybody suggest me a good starting point with reasonable numeric values of parameters I should replace in this constructor in order to have StereoSGBM perform well on these super large images? </p>
  
  <p>Any help will be highly appreciated</p>