Mercurial > hg > svgui
diff layer/ImageRegionFinder.cpp @ 905:b66fb15de477 cxx11
Working through the float/double and int/sv_frame_t fixes
author | Chris Cannam |
---|---|
date | Mon, 09 Mar 2015 14:35:21 +0000 |
parents | 1a0dfcbffaf1 |
children |
line wrap: on
line diff
--- a/layer/ImageRegionFinder.cpp Mon Mar 09 12:02:10 2015 +0000 +++ b/layer/ImageRegionFinder.cpp Mon Mar 09 14:35:21 2015 +0000 @@ -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;