fixed parallel block matching stereo correspondence algorithm (ticket #997; thanks to jbieger for the patch)
This commit is contained in:
parent
cffd89f88f
commit
04a4e51920
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user