]> granicus.if.org Git - imagemagick/commitdiff
InterpolatePixelInfo() required hald_image rather than image as its first argument
authorCristy <urban-warrior@imagemagick.org>
Sat, 9 Jul 2016 11:36:56 +0000 (07:36 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 9 Jul 2016 11:36:56 +0000 (07:36 -0400)
MagickCore/enhance.c

index 5d49ffc30f502c5faf5a1caafc79ae5f84e66959..b8ca74377b4d4e1345431f89f9786086d329ceb7 100644 (file)
@@ -2269,18 +2269,18 @@ MagickExport MagickBooleanType HaldClutImage(Image *image,
       point.y-=floor(point.y);
       point.z-=floor(point.z);
       pixel1=zero;
-      (void) InterpolatePixelInfo(image,hald_view,image->interpolate,
+      (void) InterpolatePixelInfo(hald_image,hald_view,hald_image->interpolate,
         fmod(offset,width),floor(offset/width),&pixel1,exception);
       pixel2=zero;
-      (void) InterpolatePixelInfo(image,hald_view,image->interpolate,
+      (void) InterpolatePixelInfo(hald_image,hald_view,hald_image->interpolate,
         fmod(offset+level,width),floor((offset+level)/width),&pixel2,exception);
       pixel3=zero;
       CompositePixelInfoAreaBlend(&pixel1,pixel1.alpha,&pixel2,pixel2.alpha,
         point.y,&pixel3);
       offset+=cube_size;
-      (void) InterpolatePixelInfo(image,hald_view,image->interpolate,
+      (void) InterpolatePixelInfo(hald_image,hald_view,hald_image->interpolate,
         fmod(offset,width),floor(offset/width),&pixel1,exception);
-      (void) InterpolatePixelInfo(image,hald_view,image->interpolate,
+      (void) InterpolatePixelInfo(hald_image,hald_view,hald_image->interpolate,
         fmod(offset+level,width),floor((offset+level)/width),&pixel2,exception);
       pixel4=zero;
       CompositePixelInfoAreaBlend(&pixel1,pixel1.alpha,&pixel2,pixel2.alpha,