Commit 04a4e519 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

fixed parallel block matching stereo correspondence algorithm (ticket #997;…

fixed parallel block matching stereo correspondence algorithm (ticket #997; thanks to jbieger for the patch)
parent cffd89f8
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment