switch (colorspace)
{
case RGBColorspace:
- default:
+ case sRGBColorspace:
{
(void) FormatLocaleFile(file," Red: %.20g-bit\n",(double)
channel_statistics[RedPixelChannel].depth);
channel_statistics[GrayPixelChannel].depth);
break;
}
+ default:
+ {
+ ssize_t
+ number_channels;
+
+ number_channels=image->number_channels+image->number_meta_channels;
+ for (i=0; i < (ssize_t) number_channels; i++)
+ (void) FormatLocaleFile(file," Channel %.20g: %.20g-bit\n",
+ (double) i,(double) channel_statistics[i].depth);
+ break;
+ }
}
if (image->alpha_trait != UndefinedPixelTrait)
(void) FormatLocaleFile(file," Alpha: %.20g-bit\n",(double)
switch (colorspace)
{
case RGBColorspace:
- default:
+ case sRGBColorspace:
{
(void) PrintChannelStatistics(file,RedPixelChannel,"Red",1.0/
scale,channel_statistics);
scale,channel_statistics);
break;
}
+ default:
+ {
+ ssize_t
+ number_channels;
+
+ number_channels=image->number_channels+image->number_meta_channels;
+ for (i=0; i < (ssize_t) number_channels; i++)
+ {
+ char
+ channel[MagickPathExtent];
+
+ (void) FormatLocaleString(channel,MagickPathExtent,"Channel %.20g",
+ (double) i);
+ (void) PrintChannelStatistics(file,GrayPixelChannel,channel,1.0/
+ scale,channel_statistics);
+ }
+ break;
+ }
}
if (image->alpha_trait != UndefinedPixelTrait)
(void) PrintChannelStatistics(file,AlphaPixelChannel,"Alpha",1.0/
scale,channel_statistics);
- if (image->number_meta_channels != 0)
- for (i=0; i < (ssize_t) image->number_meta_channels; i++)
- (void) PrintChannelStatistics(file,(PixelChannel)
- image->number_channels-image->number_meta_channels+i,"Meta",1.0/
- scale,channel_statistics);
if (colorspace != GRAYColorspace)
{
(void) FormatLocaleFile(file," Image statistics:\n");
switch (colorspace)
{
case RGBColorspace:
- default:
+ case sRGBColorspace:
{
(void) PrintChannelMoments(file,RedPixelChannel,"Red",scale,
channel_moments);
channel_moments);
break;
}
+ default:
+ {
+ ssize_t
+ number_channels;
+
+ number_channels=image->number_channels+image->number_meta_channels;
+ for (i=0; i < (ssize_t) number_channels; i++)
+ {
+ char
+ channel[MagickPathExtent];
+
+ (void) FormatLocaleString(channel,MagickPathExtent,"Channel %.20g",
+ (double) i);
+ (void) PrintChannelMoments(file,GrayPixelChannel,"channel",scale,
+ channel_moments);
+ }
+ break;
+ }
}
if (image->alpha_trait != UndefinedPixelTrait)
(void) PrintChannelMoments(file,AlphaPixelChannel,"Alpha",scale,
switch (colorspace)
{
case RGBColorspace:
- default:
+ case sRGBColorspace:
{
(void) PrintChannelFeatures(file,RedPixelChannel,"Red",
channel_features);
channel_features);
break;
}
+ default:
+ {
+ ssize_t
+ number_channels;
+
+ number_channels=image->number_channels+image->number_meta_channels;
+ for (i=0; i < (ssize_t) number_channels; i++)
+ {
+ char
+ channel[MagickPathExtent];
+
+ (void) FormatLocaleString(channel,MagickPathExtent,"Channel %.20g",
+ (double) i);
+ (void) PrintChannelFeatures(file,GrayPixelChannel,channel,
+ channel_features);
+ }
+ break;
+ }
}
if (image->alpha_trait != UndefinedPixelTrait)
(void) PrintChannelFeatures(file,AlphaPixelChannel,"Alpha",
CommandOptionToMnemonic(MagickTypeOptions,image->type));
(void) WriteBlobString(image,buffer);
}
- if (image->colorspace != UndefinedColorspace)
- {
- (void) FormatLocaleString(buffer,MagickPathExtent,"colorspace=%s\n",
- CommandOptionToMnemonic(MagickColorspaceOptions,image->colorspace));
- (void) WriteBlobString(image,buffer);
- }
+ (void) FormatLocaleString(buffer,MagickPathExtent,"colorspace=%s\n",
+ CommandOptionToMnemonic(MagickColorspaceOptions,image->colorspace));
+ (void) WriteBlobString(image,buffer);
if (image->intensity != UndefinedPixelIntensityMethod)
{
(void) FormatLocaleString(buffer,MagickPathExtent,