~vcs-imports/imagemagick/trunk

« back to all changes in this revision

Viewing changes to magick/identify.c

  • Committer: cristy
  • Date: 2010-01-17 00:39:37 UTC
  • Revision ID: svn-v4:aa41f4f7-0bf4-0310-aa73-e5a19afd5a74:ImageMagick/trunk:994

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
  const MagickBooleanType verbose)
134
134
{
135
135
#define IdentifyFormat "    %s:\n      min: " QuantumFormat  \
136
 
  " (%.15g)\n      max: " QuantumFormat " (%.15g)\n"  \
137
 
  "      mean: %.15g (%.15g)\n      standard deviation: %.15g (%.15g)\n"  \
138
 
  "      kurtosis: %.15g\n      skewness: %.15g\n"
 
136
  " (%g)\n      max: " QuantumFormat " (%g)\n"  \
 
137
  "      mean: %g (%g)\n      standard deviation: %g (%g)\n"  \
 
138
  "      kurtosis: %g\n      skewness: %g\n"
139
139
 
140
140
  char
141
141
    color[MaxTextExtent],
288
288
        image->magick_rows);
289
289
  if ((image->x_resolution != 0.0) && (image->y_resolution != 0.0))
290
290
    {
291
 
      (void) fprintf(file,"  Resolution: %.15gx%.15g\n",image->x_resolution,
 
291
      (void) fprintf(file,"  Resolution: %gx%g\n",image->x_resolution,
292
292
        image->y_resolution);
293
 
      (void) fprintf(file,"  Print size: %.15gx%.15g\n",(double) image->columns/
 
293
      (void) fprintf(file,"  Print size: %gx%g\n",(double) image->columns/
294
294
        image->x_resolution,(double) image->rows/image->y_resolution);
295
295
    }
296
296
  (void) fprintf(file,"  Units: %s\n",MagickOptionToMnemonic(
616
616
        }
617
617
    }
618
618
  if (image->error.mean_error_per_pixel != 0.0)
619
 
    (void) fprintf(file,"  Mean error per pixel: %.15g\n",
 
619
    (void) fprintf(file,"  Mean error per pixel: %g\n",
620
620
      image->error.mean_error_per_pixel);
621
621
  if (image->error.normalized_mean_error != 0.0)
622
 
    (void) fprintf(file,"  Normalized mean error: %.15g\n",
 
622
    (void) fprintf(file,"  Normalized mean error: %g\n",
623
623
      image->error.normalized_mean_error);
624
624
  if (image->error.normalized_maximum_error != 0.0)
625
 
    (void) fprintf(file,"  Normalized maximum error: %.15g\n",
 
625
    (void) fprintf(file,"  Normalized maximum error: %g\n",
626
626
      image->error.normalized_maximum_error);
627
627
  (void) fprintf(file,"  Rendering intent: %s\n",MagickOptionToMnemonic(
628
628
    MagickIntentOptions,(long) image->rendering_intent));
629
629
  if (image->gamma != 0.0)
630
 
    (void) fprintf(file,"  Gamma: %.15g\n",image->gamma);
 
630
    (void) fprintf(file,"  Gamma: %g\n",image->gamma);
631
631
  if ((image->chromaticity.red_primary.x != 0.0) ||
632
632
      (image->chromaticity.green_primary.x != 0.0) ||
633
633
      (image->chromaticity.blue_primary.x != 0.0) ||
637
637
        Display image chromaticity.
638
638
      */
639
639
      (void) fprintf(file,"  Chromaticity:\n");
640
 
      (void) fprintf(file,"    red primary: (%.15g,%.15g)\n",
 
640
      (void) fprintf(file,"    red primary: (%g,%g)\n",
641
641
        image->chromaticity.red_primary.x,image->chromaticity.red_primary.y);
642
 
      (void) fprintf(file,"    green primary: (%.15g,%.15g)\n",
 
642
      (void) fprintf(file,"    green primary: (%g,%g)\n",
643
643
        image->chromaticity.green_primary.x,
644
644
        image->chromaticity.green_primary.y);
645
 
      (void) fprintf(file,"    blue primary: (%.15g,%.15g)\n",
 
645
      (void) fprintf(file,"    blue primary: (%g,%g)\n",
646
646
        image->chromaticity.blue_primary.x,image->chromaticity.blue_primary.y);
647
 
      (void) fprintf(file,"    white point: (%.15g,%.15g)\n",
 
647
      (void) fprintf(file,"    white point: (%g,%g)\n",
648
648
        image->chromaticity.white_point.x,image->chromaticity.white_point.y);
649
649
    }
650
650
  if ((image->extract_info.width*image->extract_info.height) != 0)