]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Tue, 2 Aug 2016 21:19:18 +0000 (17:19 -0400)
committerCristy <urban-warrior@imagemagick.org>
Tue, 2 Aug 2016 21:19:18 +0000 (17:19 -0400)
MagickCore/enhance.c

index 2bd1363e4debe9049c5a205687a4acd253d6048a..315cb24e45b05ca83cf3d01634a9721c826a4558 100644 (file)
@@ -1049,8 +1049,6 @@ MagickExport MagickBooleanType ContrastStretchImage(Image *image,
     (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
   if (SetImageGray(image,exception) != MagickFalse)
     (void) SetImageColorspace(image,GRAYColorspace,exception);
-  if (SyncImagePixelCache(image,exception) == MagickFalse)
-    return(MagickFalse);
   black=(double *) AcquireQuantumMemory(GetPixelChannels(image),sizeof(*black));
   white=(double *) AcquireQuantumMemory(GetPixelChannels(image),sizeof(*white));
   histogram=(double *) AcquireQuantumMemory(MaxMap+1UL,GetPixelChannels(image)*
@@ -1535,8 +1533,6 @@ MagickExport MagickBooleanType EqualizeImage(Image *image,
 #endif
   if (image->debug != MagickFalse)
     (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
-  if (SyncImagePixelCache(image,exception) == MagickFalse)
-    return(MagickFalse);
   equalize_map=(double *) AcquireQuantumMemory(MaxMap+1UL,
     GetPixelChannels(image)*sizeof(*equalize_map));
   histogram=(double *) AcquireQuantumMemory(MaxMap+1UL,GetPixelChannels(image)*