"-encoding type text encoding type",
"-endian type endianness (MSB or LSB) of the image",
"-family name render text with this font family",
+ "-features distance analyze image features (e.g. contrast, correlation)",
"-fill color color to use when filling a graphic primitive",
"-filter type use this filter when resizing an image",
"-font name render text with this font",
ThrowConvertException(OptionError,"MissingArgument",option);
break;
}
+ if (LocaleCompare("features",option+1) == 0)
+ {
+ if (*option == '+')
+ break;
+ i++;
+ if (i == (ssize_t) (argc-1))
+ ThrowConvertException(OptionError,"MissingArgument",option);
+ if (IsGeometry(argv[i]) == MagickFalse)
+ ThrowConvertInvalidArgumentException(option,argv[i]);
+ break;
+ }
if (LocaleCompare("fft",option+1) == 0)
break;
if (LocaleCompare("fill",option+1) == 0)
"-density geometry horizontal and vertical density of the image",
"-depth value image depth",
"-extract geometry extract area from image",
- "-features distance display image features (e.g. contrast, correlation)",
+ "-features distance analyze image features (e.g. contrast, correlation)",
"-format \"string\" output formatted image characteristics",
"-fuzz distance colors within this distance are considered equal",
"-gamma value of gamma correction",
"-encoding type text encoding type",
"-endian type endianness (MSB or LSB) of the image",
"-family name render text with this font family",
+ "-features distance analyze image features (e.g. contrast, correlation)",
"-fill color color to use when filling a graphic primitive",
"-filter type use this filter when resizing an image",
"-font name render text with this font",
ThrowMogrifyException(OptionError,"MissingArgument",option);
break;
}
+ if (LocaleCompare("features",option+1) == 0)
+ {
+ if (*option == '+')
+ break;
+ i++;
+ if (i == (ssize_t) (argc-1))
+ ThrowMogrifyException(OptionError,"MissingArgument",option);
+ if (IsGeometry(argv[i]) == MagickFalse)
+ ThrowMogrifyInvalidArgumentException(option,argv[i]);
+ break;
+ }
if (LocaleCompare("fill",option+1) == 0)
{
if (*option == '+')
continue;
}
difference_image=DestroyImage(difference_image);
- if ((distortion/QuantumRange) > fuzz)
+ if ((QuantumScale*distortion) > fuzz)
{
(void) FormatLocaleFile(stdout,"... fail (with distortion %g).\n",
- distortion/QuantumRange);
+ QuantumScale*distortion);
(*fail)++;
continue;
}
continue;
}
difference_image=DestroyImage(difference_image);
- if ((distortion/QuantumRange) > fuzz)
+ if ((QuantumScale*distortion) > fuzz)
{
(void) FormatLocaleFile(stdout,"... fail (with distortion %g).\n",
- distortion/QuantumRange);
+ QuantumScale*distortion);
(*fail)++;
continue;
}
continue;
}
difference_image=DestroyImage(difference_image);
- if ((distortion/QuantumRange) > 0.0)
+ if ((QuantumScale*distortion) > 0.0)
{
(void) FormatLocaleFile(stdout,"... fail (with distortion %g).\n",
- distortion/QuantumRange);
+ QuantumScale*distortion);
(*fail)++;
continue;
}
\-encoding type text encoding type
\-endian type endianness (MSB or LSB) of the image
\-family name render text with this font family
+ \-features distance analyze image features (e.g. contrast, correlation)
\-fill color color to use when filling a graphic primitive
\-filter type use this filter when resizing an image
\-flatten flatten a sequence of images
\-density geometry horizontal and vertical density of the image
\-depth value image depth
\-extract geometry extract area from image
- \-features distance display image features (e.g. contrast, correlation)
+ \-features distance analyze image features (e.g. contrast, correlation)
\-format "string" output formatted image characteristics
\-fuzz distance colors within this distance are considered equal
\-interlace type type of image interlacing scheme
\-encoding type text encoding type
\-endian type endianness (MSB or LSB) of the image
\-family name render text with this font family
+ \-features distance analyze image features (e.g. contrast, correlation)
\-fill color color to use when filling a graphic primitive
\-filter type use this filter when resizing an image
\-flatten flatten a sequence of images