]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 29 Apr 2013 00:07:58 +0000 (00:07 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 29 Apr 2013 00:07:58 +0000 (00:07 +0000)
MagickCore/colorspace.c
MagickCore/enhance.c

index 44d25206f52d8ff17bbd57c717af90dfaf84f823..3585f5dbc934721c5ae1fb103647a21dbdc205db 100644 (file)
@@ -130,7 +130,7 @@ static inline void ConvertXYZToLMS(const double x,const double y,
   assert(M != (double *) NULL);
   assert(S != (double *) NULL);
   l=0.7328f*x+0.4296f*y-0.1624f*z;
-  m=(-0.7036f*x+1.6975f*y+0.0415f*z);
+  m=(-0.7036f*x+1.6975f*y+0.0.0061f*z);
   s=0.0030f*x+0.0136f*y+0.9834f*z;
   *L=QuantumRange*l;
   *M=QuantumRange*m;
index d2cb026b671c97b7d4d588763b6edb69cb5d233d..093c40d4fb8bb6aa31c11030befb21e008378727 100644 (file)
@@ -1800,17 +1800,17 @@ MagickExport MagickBooleanType GammaImage(Image *image,const double gamma,
       */
 #if !defined(MAGICKCORE_HDRI_SUPPORT)
       if ((GetPixelRedTraits(image) & UpdatePixelTrait) != 0)
-        image->colormap[i].red=(double) gamma_map[
-          ScaleQuantumToMap(ClampToQuantum(image->colormap[i].red))];
+        image->colormap[i].red=(double) gamma_map[ScaleQuantumToMap(
+          ClampToQuantum(image->colormap[i].red))];
       if ((GetPixelGreenTraits(image) & UpdatePixelTrait) != 0)
-        image->colormap[i].green=(double) gamma_map[
-          ScaleQuantumToMap(ClampToQuantum(image->colormap[i].green))];
+        image->colormap[i].green=(double) gamma_map[ScaleQuantumToMap(
+          ClampToQuantum(image->colormap[i].green))];
       if ((GetPixelBlueTraits(image) & UpdatePixelTrait) != 0)
-        image->colormap[i].blue=(double) gamma_map[
-          ScaleQuantumToMap(ClampToQuantum(image->colormap[i].blue))];
+        image->colormap[i].blue=(double) gamma_map[ScaleQuantumToMap(
+          ClampToQuantum(image->colormap[i].blue))];
       if ((GetPixelAlphaTraits(image) & UpdatePixelTrait) != 0)
-        image->colormap[i].alpha=(double) gamma_map[
-          ScaleQuantumToMap(ClampToQuantum(image->colormap[i].alpha))];
+        image->colormap[i].alpha=(double) gamma_map[ScaleQuantumToMap(
+          ClampToQuantum(image->colormap[i].alpha))];
 #else
       if ((GetPixelRedTraits(image) & UpdatePixelTrait) != 0)
         image->colormap[i].red=gamma_pow(image->colormap[i].red,1.0/gamma);