Skip to content

Commit

Permalink
Updated the RGB to HSL code to calucate correctly
Browse files Browse the repository at this point in the history
git-svn-id: https://android-motion-detection.googlecode.com/svn/trunk@12 996b93ed-3e4d-4b21-1044-74bd19560d1d
  • Loading branch information
[email protected] committed Aug 28, 2011
1 parent a4fe01b commit 74d0316
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public static float getBrightnessAtPoint(int pixel) {
l *= 100;

//Convert the HSL into a single "brightness" representation
//brightness is between 0-100 using 50% lightness and 50% hue
return (float)((l * 0.5) + ((h / 360) * 50));
}

Expand Down

0 comments on commit 74d0316

Please sign in to comment.