Commits

Ed Blake committed be0413a

Fixed error in color threshold calculation.

  • Participants
  • Parent commits 934e228

Comments (0)

Files changed (2)

 :License: BSD-style, see `LICENSES.txt`_
 :Author: Ed Blake <kitsu.eb@gmail.com>
 :Date: Sep. 13 2012
-:Revision: 7
+:Revision: 8
 
 Introduction
 ------------
         err = 0.0
         for i in range(3):
             err += abs(c1[i] - c2[i])
-        return err
+        return err/float(255*3)
 
     def getPixel(self, x=0, y=0, opt='RGB', screen=True):
         """Convenince wrapper around ahk PixelGetColor