mirror of
https://github.com/opencv/opencv.git
synced 2026-10-03 04:03:30 +03:00
fixed parallel block matching stereo correspondence algorithm (ticket #997; thanks to jbieger for the patch)
This commit is contained in:
1 parent
cffd89f88f
commit
04a4e51920
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user