diff layer/ImageRegionFinder.cpp @ 946:36cddc3de023 alignment_view

Merge from default branch
author Chris Cannam
date Mon, 20 Apr 2015 09:19:52 +0100
parents b66fb15de477
children
line wrap: on
line diff
--- a/layer/ImageRegionFinder.cpp	Thu Jan 15 16:00:53 2015 +0000
+++ b/layer/ImageRegionFinder.cpp	Mon Apr 20 09:19:52 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;