From c33453798db53e2b9173e46fb660d00ed07b0925 Mon Sep 17 00:00:00 2001 From: "phishman3579@gmail.com" Date: Sun, 28 Aug 2011 19:06:18 +0000 Subject: [PATCH] Updated the RGB to HSL code to calucate correctly git-svn-id: https://android-motion-detection.googlecode.com/svn/trunk@10 996b93ed-3e4d-4b21-1044-74bd19560d1d --- src/com/jwetherell/motion_detection/image/ImageProcessing.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/jwetherell/motion_detection/image/ImageProcessing.java b/src/com/jwetherell/motion_detection/image/ImageProcessing.java index c4564a8..23830a1 100644 --- a/src/com/jwetherell/motion_detection/image/ImageProcessing.java +++ b/src/com/jwetherell/motion_detection/image/ImageProcessing.java @@ -31,6 +31,8 @@ public static float[] getARGB(int pixel) { } //Get HSL from RGB + //H is 0-360 (degrees) + //H and S are 0-100 (percent) public static float[] convertToHSL(int r, int g, int b) { float red = r / 255; float green = g / 255;