|
MagickCore
6.7.5
|
#include "MagickCore/studio.h"#include "MagickCore/annotate.h"#include "MagickCore/artifact.h"#include "MagickCore/attribute.h"#include "MagickCore/blob.h"#include "MagickCore/cache.h"#include "MagickCore/client.h"#include "MagickCore/coder.h"#include "MagickCore/color.h"#include "MagickCore/configure.h"#include "MagickCore/constitute.h"#include "MagickCore/decorate.h"#include "MagickCore/delegate.h"#include "MagickCore/draw.h"#include "MagickCore/effect.h"#include "MagickCore/exception.h"#include "MagickCore/exception-private.h"#include "MagickCore/feature.h"#include "MagickCore/gem.h"#include "MagickCore/geometry.h"#include "MagickCore/histogram.h"#include "MagickCore/identify.h"#include "MagickCore/image.h"#include "MagickCore/image-private.h"#include "MagickCore/list.h"#include "MagickCore/locale_.h"#include "MagickCore/log.h"#include "MagickCore/magic.h"#include "MagickCore/magick.h"#include "MagickCore/memory_.h"#include "MagickCore/module.h"#include "MagickCore/monitor.h"#include "MagickCore/montage.h"#include "MagickCore/option.h"#include "MagickCore/pixel-accessor.h"#include "MagickCore/prepress.h"#include "MagickCore/profile.h"#include "MagickCore/property.h"#include "MagickCore/quantize.h"#include "MagickCore/quantum.h"#include "MagickCore/random_.h"#include "MagickCore/registry.h"#include "MagickCore/resize.h"#include "MagickCore/resource_.h"#include "MagickCore/signature.h"#include "MagickCore/statistic.h"#include "MagickCore/string_.h"#include "MagickCore/string-private.h"#include "MagickCore/timer.h"#include "MagickCore/utility.h"#include "MagickCore/utility-private.h"#include "MagickCore/version.h"Go to the source code of this file.
Defines | |
| #define | PrintFeature(feature) |
| #define | FeaturesFormat |
| #define | StatisticsFormat |
Functions | |
| static ssize_t | PrintChannelFeatures (FILE *file, const PixelChannel channel, const char *name, const ChannelFeatures *channel_features) |
| static ssize_t | PrintChannelStatistics (FILE *file, const PixelChannel channel, const char *name, const double scale, const ChannelStatistics *channel_statistics) |
| MagickExport MagickBooleanType | IdentifyImage (Image *image, FILE *file, const MagickBooleanType verbose, ExceptionInfo *exception) |
| #define FeaturesFormat |
" %s:\n" \ " Angular Second Moment:\n" \ " %.*g, %.*g, %.*g, %.*g, %.*g\n" \ " Contrast:\n" \ " %.*g, %.*g, %.*g, %.*g, %.*g\n" \ " Correlation:\n" \ " %.*g, %.*g, %.*g, %.*g, %.*g\n" \ " Sum of Squares: Variance:\n" \ " %.*g, %.*g, %.*g, %.*g, %.*g\n" \ " Inverse Difference Moment:\n" \ " %.*g, %.*g, %.*g, %.*g, %.*g\n" \ " Sum Average:\n" \ " %.*g, %.*g, %.*g, %.*g, %.*g\n" \ " Sum Variance:\n" \ " %.*g, %.*g, %.*g, %.*g, %.*g\n" \ " Sum Entropy:\n" \ " %.*g, %.*g, %.*g, %.*g, %.*g\n" \ " Entropy:\n" \ " %.*g, %.*g, %.*g, %.*g, %.*g\n" \ " Difference Variance:\n" \ " %.*g, %.*g, %.*g, %.*g, %.*g\n" \ " Difference Entropy:\n" \ " %.*g, %.*g, %.*g, %.*g, %.*g\n" \ " Information Measure of Correlation 1:\n" \ " %.*g, %.*g, %.*g, %.*g, %.*g\n" \ " Information Measure of Correlation 2:\n" \ " %.*g, %.*g, %.*g, %.*g, %.*g\n" \ " Maximum Correlation Coefficient:\n" \ " %.*g, %.*g, %.*g, %.*g, %.*g\n"
Referenced by PrintChannelFeatures().
| #define PrintFeature | ( | feature | ) |
GetMagickPrecision(),(feature)[0], \ GetMagickPrecision(),(feature)[1], \ GetMagickPrecision(),(feature)[2], \ GetMagickPrecision(),(feature)[3], \ GetMagickPrecision(),((feature)[0]+(feature)[1]+(feature)[2]+(feature)[3])/4.0 \
Referenced by PrintChannelFeatures().
| #define StatisticsFormat |
" %s:\n min: " QuantumFormat \ " (%g)\n max: " QuantumFormat " (%g)\n" \ " mean: %g (%g)\n standard deviation: %g (%g)\n" \ " kurtosis: %g\n skewness: %g\n"
Referenced by PrintChannelStatistics().
| MagickExport MagickBooleanType IdentifyImage | ( | Image * | image, |
| FILE * | file, | ||
| const MagickBooleanType | verbose, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 235 of file identify.c.
References MaxTextExtent, registry, _Image::signature, MagickSignature, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, GetElapsedTime(), _Image::timer, GetUserTime(), GetTimerInfo(), _Image::magick_filename, LocaleCompare(), FormatLocaleFile(), GetPreviousImageInList(), GetNextImageInList(), _Image::scene, _Image::magick, _Image::magick_columns, _Image::magick_rows, _Image::columns, _Image::rows, _Image::page, _RectangleInfo::width, _RectangleInfo::height, _RectangleInfo::x, _RectangleInfo::y, _Image::depth, _Image::type, UndefinedType, CommandOptionToMnemonic(), MagickTypeOptions, _Image::storage_class, DirectClass, _Image::total_colors, FormatMagickSize(), _Image::colors, _Image::error, _ErrorInfo::mean_error_per_pixel, _ErrorInfo::normalized_mean_error, _ErrorInfo::normalized_maximum_error, GetBlobSize(), MagickTrue, GetVirtualPixels(), GetImageType(), SignatureImage(), GetPathComponent(), TailPath, GetMagickInfo(), GetMagickDescription(), MagickClassOptions, _Image::tile_offset, _Image::resolution, _PointInfo::x, _PointInfo::y, MagickResolutionOptions, _Image::units, MagickEndianOptions, _Image::endian, MagickColorspaceOptions, _Image::colorspace, GetImageStatistics(), GetImageArtifact(), StringToUnsignedLong(), GetImageFeatures(), GetImageDepth(), IsImageGray(), GRAYColorspace, RGBColorspace, RedPixelChannel, _ChannelStatistics::depth, GreenPixelChannel, BluePixelChannel, CMYKColorspace, CyanPixelChannel, MagentaPixelChannel, YellowPixelChannel, BlackPixelChannel, GrayPixelChannel, _Image::matte, AlphaPixelChannel, MAGICKCORE_QUANTUM_DEPTH, QuantumRange, PrintChannelStatistics(), MaxPixelChannels, RelinquishMagickMemory(), PrintChannelFeatures(), GetImageTotalInkDensity(), GetPixelAlpha(), TransparentAlpha, GetPixelChannels(), GetPixelInfo(), GetPixelInfoPixel(), QueryColorname(), SVGCompliance, GetColorTuple(), IsHistogramImage(), GetNumberColors(), IsMagickTrue(), PseudoClass, _Image::colormap, CopyMagickString(), ConcatenateColorComponent(), X11Compliance, ConcatenateMagickString(), _PixelInfo::colorspace, _PixelInfo::matte, MagickIntentOptions, _Image::rendering_intent, _Image::gamma, _Image::chromaticity, _ChromaticityInfo::red_primary, _PrimaryInfo::x, _ChromaticityInfo::green_primary, _ChromaticityInfo::blue_primary, _ChromaticityInfo::white_point, _PrimaryInfo::y, _Image::extract_info, MagickInterlaceOptions, _Image::interlace, _Image::background_color, _Image::border_color, _Image::matte_color, _Image::transparent_color, MagickComposeOptions, _Image::compose, MagickDisposeOptions, _Image::dispose, _Image::delay, _Image::ticks_per_second, _Image::iterations, _Image::next, _Image::previous, GetImageListLength(), MagickCompressOptions, _Image::compression, _Image::quality, UndefinedCompressionQuality, MagickOrientationOptions, _Image::orientation, _Image::montage, _Image::directory, AcquireImageInfo(), CloneString(), _ImageInfo::size, _ImageInfo::filename, SetWarningHandler(), ReadImage(), ResetImagePropertyIterator(), GetNextImageProperty(), GetImageProperty(), DestroyImage(), DestroyImageInfo(), FormatLocaleString(), ResetImageProfileIterator(), GetNextImageProfile(), GetImageProfile(), GetStringInfoLength(), GetStringInfoDatum(), cmsUInt32Number, sentinel, AcquireQuantumMemory(), StringToList(), DestroyString(), PrintStringInfo(), ResetImageArtifactIterator(), GetNextImageArtifact(), ResetImageRegistryIterator(), GetNextImageRegistry(), GetImageRegistry(), StringRegistryType, MagickBooleanOptions, _Image::taint, and GetMagickVersion().
Referenced by PingImage(), ReadImage(), and WriteImage().
| static ssize_t PrintChannelFeatures | ( | FILE * | file, |
| const PixelChannel | channel, | ||
| const char * | name, | ||
| const ChannelFeatures * | channel_features | ||
| ) | [static] |
Definition at line 150 of file identify.c.
References FormatLocaleFile(), FeaturesFormat, and PrintFeature.
Referenced by IdentifyImage().
| static ssize_t PrintChannelStatistics | ( | FILE * | file, |
| const PixelChannel | channel, | ||
| const char * | name, | ||
| const double | scale, | ||
| const ChannelStatistics * | channel_statistics | ||
| ) | [static] |
Definition at line 211 of file identify.c.
References FormatLocaleFile(), StatisticsFormat, ClampToQuantum(), and QuantumRange.
Referenced by IdentifyImage().