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

pull/13383/head
Vadim Pisarevsky 14 years ago
parent cffd89f88f
commit 04a4e51920
  1. 2
      modules/calib3d/src/stereobm.cpp

@ -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…
Cancel
Save