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 d339d15 commit 5db3247
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 @@ -73,14 +73,15 @@ CIEDE2000::CIEDE2000(
double hPrime2;
if (lab2.b == 0 && a2Prime == 0)
hPrime2 = 0.0;
else
else {
hPrime2 = atan2(lab2.b, a2Prime);
/*
* This must be converted to a hue angle in degrees between 0
* and 360 by addition of 2􏰏 to negative hue angles.
*/
if (hPrime2 < 0)
hPrime2 += deg360InRad;
}

/*
* Step 2
Expand Down

0 comments on commit 5db3247

Please sign in to comment.