StereoSGBM crash
The code crashes at stereo->compute without any mention of error. Any ideas why ?
Ptr<StereoSGBM> stereo;
int window = 5;
stereo->create(1, 100, 16, 8 * 3 * window*window, 32 * 3 * window*window, 1, 10, 100, 32);
Mat imgL = imread("L.png", CV_LOAD_IMAGE_GRAYSCALE);
Mat imgR = imread("R.png", CV_LOAD_IMAGE_GRAYSCALE);
Mat disp;
stereo->compute(imgL, imgR, disp);