ChannelStatistics
*channel_statistics;
- ColorspaceType
- colorspace;
-
const char
*artifact,
*locate,
if (channel_statistics == (ChannelStatistics *) NULL)
return(MagickFalse);
(void) FormatLocaleFile(file,"Channel %s locations:\n",locate);
- colorspace=GetImageColorspaceType(image,exception);
- switch (colorspace)
+ switch (image->colorspace)
{
case RGBColorspace:
case sRGBColorspace:
}
(void) FormatLocaleFile(file," Units: %s\n",CommandOptionToMnemonic(
MagickResolutionOptions,(ssize_t) image->units));
- colorspace=GetImageColorspaceType(image,exception);
(void) FormatLocaleFile(file," Colorspace: %s\n",CommandOptionToMnemonic(
- MagickColorspaceOptions,(ssize_t) colorspace));
- if (colorspace != image->colorspace)
- (void) FormatLocaleFile(file," Base colorspace: %s\n",
- CommandOptionToMnemonic(MagickColorspaceOptions,(ssize_t)
- image->colorspace));
+ MagickColorspaceOptions,(ssize_t) image->colorspace));
type=GetImageType(image);
(void) FormatLocaleFile(file," Type: %s\n",CommandOptionToMnemonic(
MagickTypeOptions,(ssize_t) type));
(void) FormatLocaleFile(file," Depth: %.20g/%.20g-bit\n",(double)
image->depth,(double) depth);
(void) FormatLocaleFile(file," Channel depth:\n");
- switch (colorspace)
+ switch (image->colorspace)
{
case RGBColorspace:
case sRGBColorspace:
(void) FormatLocaleFile(file," Channel statistics:\n");
(void) FormatLocaleFile(file," Pixels: %.20g\n",(double)
image->columns*image->rows);
- switch (colorspace)
+ switch (image->colorspace)
{
case RGBColorspace:
case sRGBColorspace:
if (image->alpha_trait != UndefinedPixelTrait)
(void) PrintChannelStatistics(file,AlphaPixelChannel,"Alpha",1.0/
scale,channel_statistics);
- if (colorspace != GRAYColorspace)
+ if (image->colorspace != GRAYColorspace)
{
(void) FormatLocaleFile(file," Image statistics:\n");
(void) PrintChannelStatistics(file,CompositePixelChannel,"Overall",
{
scale=(double) ((1UL << image->depth)-1);
(void) FormatLocaleFile(file," Channel moments:\n");
- switch (colorspace)
+ switch (image->colorspace)
{
case RGBColorspace:
case sRGBColorspace:
if (image->alpha_trait != UndefinedPixelTrait)
(void) PrintChannelMoments(file,AlphaPixelChannel,"Alpha",scale,
channel_moments);
- if (colorspace != GRAYColorspace)
+ if (image->colorspace != GRAYColorspace)
{
(void) FormatLocaleFile(file," Image moments:\n");
(void) PrintChannelMoments(file,CompositePixelChannel,"Overall",scale,
{
(void) FormatLocaleFile(file," Channel features (horizontal, vertical, "
"left and right diagonals, average):\n");
- switch (colorspace)
+ switch (image->colorspace)
{
case RGBColorspace:
case sRGBColorspace:
char
*url;
- ColorspaceType
- colorspace;
-
const char
*artifact,
*locate,
if (image->alpha_trait != UndefinedPixelTrait)
(void) PrintChannelLocations(file,image,AlphaPixelChannel,"Alpha",
type,max_locations,MagickTrue,channel_statistics);
- colorspace=GetImageColorspaceType(image,exception);
- switch (colorspace)
+ switch (image->colorspace)
{
case RGBColorspace:
default:
/*
Detail channel depth and extrema.
*/
- colorspace=GetImageColorspaceType(image,exception);
JSONFormatLocaleFile(file," \"colorspace\": %s,\n",
- CommandOptionToMnemonic(MagickColorspaceOptions,(ssize_t) colorspace));
- if (image->colorspace != colorspace)
- JSONFormatLocaleFile(file," \"baseColorspace\": %s,\n",
- CommandOptionToMnemonic(MagickColorspaceOptions,(ssize_t)
- image->colorspace));
+ CommandOptionToMnemonic(MagickColorspaceOptions,(ssize_t)
+ image->colorspace));
channel_statistics=(ChannelStatistics *) NULL;
channel_moments=(ChannelMoments *) NULL;
channel_phash=(ChannelPerceptualHash *) NULL;
if (image->alpha_trait != UndefinedPixelTrait)
(void) FormatLocaleFile(file," \"alpha\": %.20g,\n",(double)
channel_statistics[AlphaPixelChannel].depth);
- switch (colorspace)
+ switch (image->colorspace)
{
case RGBColorspace:
default:
{
(void) FormatLocaleFile(file," \"pixels\": %.20g,\n",
channel_statistics[CompositePixelChannel].area);
- if (colorspace != GRAYColorspace)
+ if (image->colorspace != GRAYColorspace)
{
(void) FormatLocaleFile(file," \"imageStatistics\": {\n");
(void) PrintChannelStatistics(file,(PixelChannel) MaxPixelChannels,
if (image->alpha_trait != UndefinedPixelTrait)
(void) PrintChannelStatistics(file,AlphaPixelChannel,"Alpha",1.0/scale,
MagickTrue,channel_statistics);
- switch (colorspace)
+ switch (image->colorspace)
{
case RGBColorspace:
default:
if (image->alpha_trait != UndefinedPixelTrait)
(void) PrintChannelMoments(file,AlphaPixelChannel,"Alpha",MagickTrue,
channel_moments);
- switch (colorspace)
+ switch (image->colorspace)
{
case RGBColorspace:
default:
if (image->alpha_trait != UndefinedPixelTrait)
(void) PrintChannelFeatures(file,AlphaPixelChannel,"Alpha",MagickTrue,
channel_features);
- switch (colorspace)
+ switch (image->colorspace)
{
case RGBColorspace:
default: