fixed parallel block matching stereo correspondence algorithm (ticket #997; thanks to jbieger for the patch)

This commit is contained in:
Vadim Pisarevsky 2011-08-06 19:28:20 +00:00
parent cffd89f88f
commit 04a4e51920

View File

@ -718,7 +718,7 @@ struct FindStereoCorrespInvoker
uchar *ptr = state->slidingSumBuf->data.ptr + range.begin() * stripeBufSize;
int FILTERED = (state->minDisparity - 1)*16;
Rect roi = validDisparityRect & Rect(0, _row0, cols, _row1);
Rect roi = validDisparityRect & Rect(0, _row0, cols, _row1 - _row0);
if( roi.height == 0 )
return;
int row0 = roi.y;