Skip to content

Commit

Permalink
Eliminate unnecessary comparison in Equation 7.
Browse files Browse the repository at this point in the history
  • Loading branch information
gfiumara committed Mar 1, 2015
1 parent 16fe987 commit d339d15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CIEDE2000.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,15 @@ CIEDE2000::CIEDE2000(
double hPrime1;
if (lab1.b == 0 && a1Prime == 0)
hPrime1 = 0.0;
else
else {
hPrime1 = atan2(lab1.b, a1Prime);
/*
* This must be converted to a hue angle in degrees between 0
* and 360 by addition of 2􏰏 to negative hue angles.
*/
if (hPrime1 < 0)
hPrime1 += deg360InRad;
}
double hPrime2;
if (lab2.b == 0 && a2Prime == 0)
hPrime2 = 0.0;
Expand Down

0 comments on commit d339d15

Please sign in to comment.