Mercurial > hg > svgui
diff layer/ImageRegionFinder.cpp @ 944:78c152e4db95
Merge from branch tonioni
author | Chris Cannam |
---|---|
date | Mon, 20 Apr 2015 09:12:17 +0100 |
parents | b66fb15de477 |
children |
line wrap: on
line diff
--- a/layer/ImageRegionFinder.cpp Thu Jan 15 10:42:00 2015 +0000 +++ b/layer/ImageRegionFinder.cpp Mon Apr 20 09:12:17 2015 +0100 @@ -107,9 +107,9 @@ return false; } - float ar = float(qRed(a) / 255.f); - float ag = float(qGreen(a) / 255.f); - float ab = float(qBlue(a) / 255.f); + float ar = float(qRed(a)) / 255.f; + float ag = float(qGreen(a)) / 255.f; + float ab = float(qBlue(a)) / 255.f; float amag = sqrtf(ar * ar + ag * ag + ab * ab); float thresh = amag / 2;