From: cristy Date: Wed, 19 Jun 2013 16:37:02 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~3581 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f47c84a4e85940a94eb50830dd7c23fd3776025;p=imagemagick --- diff --git a/tests/validate.c b/tests/validate.c index 2bd056157..3d3fc32f3 100644 --- a/tests/validate.c +++ b/tests/validate.c @@ -544,11 +544,12 @@ static inline void ConvertXYZToLCHab(const double X,const double Y, b; ConvertXYZToLab(X,Y,Z,luma,&a,&b); - *chroma=hypot(255.0*(a-0.5),255.0*(b-0.5))/255.0+0.5; - *hue=180.0*atan2(255.0*(b-0.5),255.0*(a-0.5))/MagickPI/360.0; + *chroma=hypot(255.0*(a-0.5),255.0*(b-0.5)); + *hue=180.0*atan2(255.0*(b-0.5),255.0*(a-0.5))/MagickPI; + *chroma=(*chroma)/255.0+0.5; + *hue=(*hue)/255.0+0.5; if (*hue < 0.0) *hue+=1.0; - *hue+=0.5; } static void ConvertRGBToLCHab(const double red,const double green,