assert(image->signature == MagickSignature);
if (image->debug != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
+ if (IsImageGray(image,exception) != MagickFalse)
+ (void) SetImageColorspace(image,GRAYColorspace,exception);
number_channels=GetPixelChannels(image);
black=(double *) AcquireQuantumMemory(number_channels,sizeof(*black));
white=(double *) AcquireQuantumMemory(number_channels,sizeof(*white));
/*
Form histogram.
*/
- if (IsImageGray(image,exception) != MagickFalse)
- (void) SetImageColorspace(image,GRAYColorspace,exception);
status=MagickTrue;
(void) ResetMagickMemory(histogram,0,(MaxMap+1)*number_channels*
sizeof(*histogram));