Minor fix in the DP based seam estimator

pull/7/merge
alexey.spizhevoy 13 years ago committed by Alexey Spizhevoy
parent 7222f2724f
commit 43d46c0e8b
  1. 2
      modules/stitching/src/seam_finders.cpp

@ -925,7 +925,7 @@ void DpSeamFinder::updateLabelsUsingSeam(int c1, int c2, const vector<Point> &se
int c = x + dx[j];
int r = y + dy[j];
if (c > 0 && c < mask.cols && r > 0 && r < mask.rows &&
if (c >= 0 && c < mask.cols && r >= 0 && r < mask.rows &&
mask(r, c) && mask(r, c) != 255)
{
ok = true;

Loading…
Cancel
Save