code: public static GrayF32 denseDisparitySubpixel(GrayU8 rectLeft , GrayU8 rectRight ,
  												 int regionSize ,
  												 int minDisparity , int maxDisparity )
  	{
  		// A slower but more accuracy algorithm is selected
  		// All of these parameters should be turned
  		StereoDisparity<GrayU8,GrayF32> disparityAlg =
  				FactoryStereoDisparity.regionSubpixelWta(DisparityAlgorithms.RECT_FIVE,
  						minDisparity, maxDisparity, regionSize, regionSize, 25, 1, 0.2, GrayU8.class);
  
  		// process and return the results
  		disparityAlg.process(rectLeft,rectRight);
  
  		return disparityAlg.getDisparity();
  	}
docs: Same as above, but compute disparity to within sub-pixel accuracy. The difference between the
  two is more apparent when a 3D point cloud is computed.