balanceWhite fixed maxValue bin search

pull/875/head
lukaszi89 9 years ago committed by Vladislav Sovrasov
parent 5deedac22d
commit cb126467ee
  1. 2
      modules/xphoto/src/simple_color_balance.cpp

@ -123,7 +123,7 @@ void balanceWhiteSimple(std::vector<Mat_<T> > &src, Mat &dst, const float inputM
n2 -= hist[p2--];
maxValue -= interval;
}
p2 = p2 * bins - 1;
p2 = (p2 + 1) * bins - 1;
interval /= bins;
}

Loading…
Cancel
Save