Commit cb126467 authored by lukaszi89's avatar lukaszi89 Committed by Vladislav Sovrasov

balanceWhite fixed maxValue bin search

parent 5deedac2
...@@ -123,7 +123,7 @@ void balanceWhiteSimple(std::vector<Mat_<T> > &src, Mat &dst, const float inputM ...@@ -123,7 +123,7 @@ void balanceWhiteSimple(std::vector<Mat_<T> > &src, Mat &dst, const float inputM
n2 -= hist[p2--]; n2 -= hist[p2--];
maxValue -= interval; maxValue -= interval;
} }
p2 = p2 * bins - 1; p2 = (p2 + 1) * bins - 1;
interval /= bins; interval /= bins;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment