Getting a bad disparity map with good calibration

I’m currently using a custom gui to try to get the best disparity map possible at runtime, which includes numDisparities, blockSize, prefilterType, preFilterSize, preFilterCap, textureThreshold, uniquenessRatio, speckleRange, speckleWindowSize, disp12MaxDiff, and minDisparity. Are there other parameters I should be changing at runtime? I believe I covered them all.

I have included everything leading up to the failure, including the code I’ve based my code on, my process for detecting chessboard corners, what resolution my images are at, the RMS error of individual camera calibration as well as for stereo calibration, and how I’m actually generating my disparity maps. What other aspects of disparity map creation would be helpful?

If you would like I can post my code, although some of it is abstracted to classes and shared between functions so I figured it would be more user friendly to simply include the sources from which I got my code.

Thanks!

Skippy