![]() |
MagickCore
7.0.7
Convert, Edit, Or Compose Bitmap Images
|
#include "MagickCore/studio.h"
#include "MagickCore/accelerate-private.h"
#include "MagickCore/artifact.h"
#include "MagickCore/attribute.h"
#include "MagickCore/cache.h"
#include "MagickCore/cache-private.h"
#include "MagickCore/cache-view.h"
#include "MagickCore/channel.h"
#include "MagickCore/color.h"
#include "MagickCore/color-private.h"
#include "MagickCore/colorspace.h"
#include "MagickCore/colorspace-private.h"
#include "MagickCore/composite-private.h"
#include "MagickCore/enhance.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/fx.h"
#include "MagickCore/gem.h"
#include "MagickCore/gem-private.h"
#include "MagickCore/geometry.h"
#include "MagickCore/histogram.h"
#include "MagickCore/image.h"
#include "MagickCore/image-private.h"
#include "MagickCore/memory_.h"
#include "MagickCore/monitor.h"
#include "MagickCore/monitor-private.h"
#include "MagickCore/option.h"
#include "MagickCore/pixel.h"
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/quantum.h"
#include "MagickCore/quantum-private.h"
#include "MagickCore/resample.h"
#include "MagickCore/resample-private.h"
#include "MagickCore/resource_.h"
#include "MagickCore/statistic.h"
#include "MagickCore/string_.h"
#include "MagickCore/string-private.h"
#include "MagickCore/thread-private.h"
#include "MagickCore/threshold.h"
#include "MagickCore/token.h"
#include "MagickCore/xml-tree.h"
#include "MagickCore/xml-tree-private.h"
Go to the source code of this file.
Macros | |
#define | BrightnessContastImageTag "BrightnessContast/Image" |
#define | ClutImageTag "Clut/Image" |
#define | ColorDecisionListCorrectImageTag "ColorDecisionList/Image" |
#define | ContrastImageTag "Contrast/Image" |
#define | MaxRange(color) ((double) ScaleQuantumToMap((Quantum) (color))) |
#define | ContrastStretchImageTag "ContrastStretch/Image" |
#define | EnhanceImageTag "Enhance/Image" |
#define | EnhancePixel(weight) |
#define | EqualizeImageTag "Equalize/Image" |
#define | GammaCorrectImageTag "GammaCorrect/Image" |
#define | GrayscaleImageTag "Grayscale/Image" |
#define | HaldClutImageTag "Clut/Image" |
#define | LevelImageTag "Level/Image" |
#define | LevelizeImageTag "Levelize/Image" |
#define | LevelizeValue(x) |
#define | LinearStretchImageTag "LinearStretch/Image" |
#define | ModulateImageTag "Modulate/Image" |
#define | NegateImageTag "Negate/Image" |
#define | Sigmoidal(a, b, x) ( 1.0/(1.0+exp((a)*((b)-(x)))) ) |
#define | ScaledSigmoidal(a, b, x) |
#define | SigmoidalContrastImageTag "SigmoidalContrast/Image" |
#define | ScaledSig(x) |
#define | InverseScaledSig(x) |
Functions | |
MagickExport MagickBooleanType | AutoGammaImage (Image *image, ExceptionInfo *exception) |
MagickExport MagickBooleanType | AutoLevelImage (Image *image, ExceptionInfo *exception) |
MagickExport MagickBooleanType | BrightnessContrastImage (Image *image, const double brightness, const double contrast, ExceptionInfo *exception) |
MagickExport MagickBooleanType | ClutImage (Image *image, const Image *clut_image, const PixelInterpolateMethod method, ExceptionInfo *exception) |
MagickExport MagickBooleanType | ColorDecisionListImage (Image *image, const char *color_correction_collection, ExceptionInfo *exception) |
static void | Contrast (const int sign, double *red, double *green, double *blue) |
MagickExport MagickBooleanType | ContrastImage (Image *image, const MagickBooleanType sharpen, ExceptionInfo *exception) |
MagickExport MagickBooleanType | ContrastStretchImage (Image *image, const double black_point, const double white_point, ExceptionInfo *exception) |
MagickExport Image * | EnhanceImage (const Image *image, ExceptionInfo *exception) |
MagickExport MagickBooleanType | EqualizeImage (Image *image, ExceptionInfo *exception) |
static double | gamma_pow (const double value, const double gamma) |
MagickExport MagickBooleanType | GammaImage (Image *image, const double gamma, ExceptionInfo *exception) |
MagickExport MagickBooleanType | GrayscaleImage (Image *image, const PixelIntensityMethod method, ExceptionInfo *exception) |
MagickExport MagickBooleanType | HaldClutImage (Image *image, const Image *hald_image, ExceptionInfo *exception) |
static double | LevelPixel (const double black_point, const double white_point, const double gamma, const double pixel) |
MagickExport MagickBooleanType | LevelImage (Image *image, const double black_point, const double white_point, const double gamma, ExceptionInfo *exception) |
MagickExport MagickBooleanType | LevelizeImage (Image *image, const double black_point, const double white_point, const double gamma, ExceptionInfo *exception) |
MagickExport MagickBooleanType | LevelImageColors (Image *image, const PixelInfo *black_color, const PixelInfo *white_color, const MagickBooleanType invert, ExceptionInfo *exception) |
MagickExport MagickBooleanType | LinearStretchImage (Image *image, const double black_point, const double white_point, ExceptionInfo *exception) |
static void | ModulateHCL (const double percent_hue, const double percent_chroma, const double percent_luma, double *red, double *green, double *blue) |
static void | ModulateHCLp (const double percent_hue, const double percent_chroma, const double percent_luma, double *red, double *green, double *blue) |
static void | ModulateHSB (const double percent_hue, const double percent_saturation, const double percent_brightness, double *red, double *green, double *blue) |
static void | ModulateHSI (const double percent_hue, const double percent_saturation, const double percent_intensity, double *red, double *green, double *blue) |
static void | ModulateHSL (const double percent_hue, const double percent_saturation, const double percent_lightness, double *red, double *green, double *blue) |
static void | ModulateHSV (const double percent_hue, const double percent_saturation, const double percent_value, double *red, double *green, double *blue) |
static void | ModulateHWB (const double percent_hue, const double percent_whiteness, const double percent_blackness, double *red, double *green, double *blue) |
static void | ModulateLCHab (const double percent_luma, const double percent_chroma, const double percent_hue, double *red, double *green, double *blue) |
static void | ModulateLCHuv (const double percent_luma, const double percent_chroma, const double percent_hue, double *red, double *green, double *blue) |
MagickExport MagickBooleanType | ModulateImage (Image *image, const char *modulate, ExceptionInfo *exception) |
MagickExport MagickBooleanType | NegateImage (Image *image, const MagickBooleanType grayscale, ExceptionInfo *exception) |
MagickExport MagickBooleanType | NormalizeImage (Image *image, ExceptionInfo *exception) |
static double | InverseScaledSigmoidal (const double a, const double b, const double x) |
MagickExport MagickBooleanType | SigmoidalContrastImage (Image *image, const MagickBooleanType sharpen, const double contrast, const double midpoint, ExceptionInfo *exception) |
#define BrightnessContastImageTag "BrightnessContast/Image" |
#define ClutImageTag "Clut/Image" |
Referenced by ClutImage().
#define ColorDecisionListCorrectImageTag "ColorDecisionList/Image" |
Referenced by ColorDecisionListImage().
#define ContrastImageTag "Contrast/Image" |
Referenced by ContrastImage().
#define ContrastStretchImageTag "ContrastStretch/Image" |
Referenced by ContrastStretchImage().
#define EnhanceImageTag "Enhance/Image" |
Referenced by EnhanceImage().
#define EnhancePixel | ( | weight | ) |
Referenced by EnhanceImage().
#define EqualizeImageTag "Equalize/Image" |
Referenced by EqualizeImage().
#define GammaCorrectImageTag "GammaCorrect/Image" |
Referenced by GammaImage().
#define GrayscaleImageTag "Grayscale/Image" |
Referenced by GrayscaleImage().
#define HaldClutImageTag "Clut/Image" |
Referenced by HaldClutImage().
#define InverseScaledSig | ( | x | ) |
Referenced by SigmoidalContrastImage().
#define LevelImageTag "Level/Image" |
Referenced by LevelImage().
#define LevelizeImageTag "Levelize/Image" |
Referenced by LevelizeImage().
#define LevelizeValue | ( | x | ) |
Referenced by LevelizeImage().
#define LinearStretchImageTag "LinearStretch/Image" |
#define MaxRange | ( | color | ) | ((double) ScaleQuantumToMap((Quantum) (color))) |
Referenced by ContrastStretchImage().
#define ModulateImageTag "Modulate/Image" |
Referenced by ModulateImage().
#define NegateImageTag "Negate/Image" |
Referenced by NegateImage().
#define ScaledSig | ( | x | ) |
Referenced by SigmoidalContrastImage().
#define ScaledSigmoidal | ( | a, | |
b, | |||
x | |||
) |
#define Sigmoidal | ( | a, | |
b, | |||
x | |||
) | ( 1.0/(1.0+exp((a)*((b)-(x)))) ) |
Definition at line 3697 of file enhance.c.
Referenced by InverseScaledSigmoidal().
#define SigmoidalContrastImageTag "SigmoidalContrast/Image" |
Referenced by SigmoidalContrastImage().
MagickExport MagickBooleanType AutoGammaImage | ( | Image * | image, |
ExceptionInfo * | exception | ||
) |
Definition at line 111 of file enhance.c.
References _Image::channel_mask, DefaultChannels, GetImageMean(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), LevelImage(), MagickFalse, MagickTrue, QuantumRange, QuantumScale, SetImageChannelMask(), and UpdatePixelTrait.
MagickExport MagickBooleanType AutoLevelImage | ( | Image * | image, |
ExceptionInfo * | exception | ||
) |
Definition at line 185 of file enhance.c.
References MinMaxStretchImage().
Referenced by AdaptiveBlurImage(), and AdaptiveSharpenImage().
MagickExport MagickBooleanType BrightnessContrastImage | ( | Image * | image, |
const double | brightness, | ||
const double | contrast, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 222 of file enhance.c.
References _Image::debug, _Image::filename, FunctionImage(), GetMagickModule, LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickPI, PolynomialFunction, _Image::signature, and TraceEvent.
MagickExport MagickBooleanType ClutImage | ( | Image * | image, |
const Image * | clut_image, | ||
const PixelInterpolateMethod | method, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 299 of file enhance.c.
References AcquireAuthenticCacheView(), AcquireQuantumMemory(), AcquireVirtualCacheView(), ActivateAlphaChannel, _PixelInfo::alpha, _Image::alpha_trait, AlphaPixelChannel, _PixelInfo::black, BlackPixelChannel, _PixelInfo::blue, BluePixelChannel, ClampToQuantum(), ClutImageTag, _Image::colorspace, _Image::columns, _Image::debug, DestroyCacheView(), DirectClass, _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelAlphaTraits(), GetPixelChannels(), GetPixelChannelTraits(), GetPixelInfo(), GetPixelInfoPixel(), GetPixelWriteMask(), _PixelInfo::green, GreenPixelChannel, IntegerInterpolatePixel, _Image::interpolate, InterpolatePixelInfo(), IsGrayColorspace(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, MaxMap, _Image::progress_monitor, QuantumRange, _PixelInfo::red, RedPixelChannel, RelinquishMagickMemory(), ResourceLimitError, _Image::rows, SetImageAlphaChannel(), SetImageColorspace(), SetImageProgress(), SetImageStorageClass(), SetPixelViaPixelInfo(), _Image::signature, sRGBColorspace, SyncCacheViewAuthenticPixels(), ThrowBinaryException, TraceEvent, UndefinedPixelTrait, and UpdatePixelTrait.
MagickExport MagickBooleanType ColorDecisionListImage | ( | Image * | image, |
const char * | color_correction_collection, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 482 of file enhance.c.
References AcquireAuthenticCacheView(), AcquireQuantumMemory(), _PixelInfo::blue, ClampToQuantum(), ColorDecisionListCorrectImageTag, _Image::colormap, _Image::colors, _Image::columns, _Image::debug, DestroyCacheView(), DestroyXMLTree(), _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, GetNextToken(), GetPixelBlue(), GetPixelChannels(), GetPixelGreen(), GetPixelRed(), GetXMLTreeChild(), GetXMLTreeContent(), _PixelInfo::green, LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickPathExtent, MagickTrue, MaxMap, NewXMLTree(), _Image::progress_monitor, PseudoClass, _PixelInfo::red, RelinquishMagickMemory(), ResourceLimitError, _Image::rows, SetImageProgress(), SetPixelBlue(), SetPixelGreen(), SetPixelRed(), _Image::signature, _Image::storage_class, StringToDouble(), SyncCacheViewAuthenticPixels(), ThrowBinaryException, TraceEvent, and TransformEvent.
|
static |
Definition at line 841 of file enhance.c.
References ConvertHSBToRGB(), ConvertRGBToHSB(), and MagickPI.
Referenced by ContrastImage().
MagickExport MagickBooleanType ContrastImage | ( | Image * | image, |
const MagickBooleanType | sharpen, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 868 of file enhance.c.
References AcquireAuthenticCacheView(), _PixelInfo::blue, ClampToQuantum(), _Image::colormap, _Image::colors, _Image::columns, Contrast(), ContrastImageTag, _Image::debug, DestroyCacheView(), _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelBlue(), GetPixelChannels(), GetPixelGreen(), GetPixelRed(), _PixelInfo::green, LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, _Image::progress_monitor, PseudoClass, _PixelInfo::red, _Image::rows, SetImageProgress(), SetPixelBlue(), SetPixelGreen(), SetPixelRed(), _Image::signature, _Image::storage_class, SyncCacheViewAuthenticPixels(), and TraceEvent.
Referenced by PreviewImage(), and SepiaToneImage().
MagickExport MagickBooleanType ContrastStretchImage | ( | Image * | image, |
const double | black_point, | ||
const double | white_point, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1019 of file enhance.c.
References AcquireAuthenticCacheView(), AcquireQuantumMemory(), AcquireVirtualCacheView(), _PixelInfo::alpha, AlphaPixelChannel, _PixelInfo::blue, BluePixelChannel, _Image::channel_mask, ClampToQuantum(), _Image::colormap, _Image::colors, _Image::columns, ContrastStretchImageTag, _Image::debug, DefaultChannels, DestroyCacheView(), _Image::filename, GetCacheViewAuthenticPixels(), GetCacheViewVirtualPixels(), GetMagickModule, GetPixelAlphaTraits(), GetPixelBlueTraits(), GetPixelChannelChannel(), GetPixelChannelOffset(), GetPixelChannels(), GetPixelChannelTraits(), GetPixelGreenTraits(), GetPixelIntensity(), GetPixelRedTraits(), GetPixelWriteMask(), GRAYColorspace, _PixelInfo::green, GreenPixelChannel, LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, MaxMap, MaxPixelChannels, MaxRange, PerceptibleReciprocal(), _Image::progress_monitor, PseudoClass, QuantumRange, _PixelInfo::red, RedPixelChannel, RelinquishMagickMemory(), ResourceLimitError, _Image::rows, SetImageColorspace(), SetImageGray(), SetImageProgress(), _Image::signature, _Image::storage_class, SyncCacheViewAuthenticPixels(), ThrowBinaryException, TraceEvent, and UpdatePixelTrait.
Referenced by NormalizeImage().
MagickExport Image* EnhanceImage | ( | const Image * | image, |
ExceptionInfo * | exception | ||
) |
Definition at line 1306 of file enhance.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), _PixelInfo::alpha, _PixelInfo::black, _PixelInfo::blue, CloneImage(), _Image::columns, _Image::debug, DestroyCacheView(), DestroyImage(), DirectClass, EnhanceImageTag, EnhancePixel, _Image::filename, GetCacheViewVirtualPixels(), GetMagickModule, GetPixelChannels(), GetPixelInfo(), GetPixelInfoPixel(), GetPixelWriteMask(), _PixelInfo::green, LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickEpsilon, MagickFalse, MagickTrue, _Image::progress_monitor, QuantumRange, QueueCacheViewAuthenticPixels(), _PixelInfo::red, _Image::rows, SetImageProgress(), SetImageStorageClass(), SetPixelBackgoundColor(), SetPixelViaPixelInfo(), _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), and TraceEvent.
MagickExport MagickBooleanType EqualizeImage | ( | Image * | image, |
ExceptionInfo * | exception | ||
) |
Definition at line 1507 of file enhance.c.
References AcquireAuthenticCacheView(), AcquireQuantumMemory(), AcquireVirtualCacheView(), _PixelInfo::alpha, AlphaPixelChannel, _PixelInfo::blue, BluePixelChannel, _Image::channel_mask, ClampToQuantum(), _Image::colormap, _Image::colors, _Image::columns, CompositePixelChannel, _Image::debug, DestroyCacheView(), EqualizeImageTag, _Image::filename, GetCacheViewAuthenticPixels(), GetCacheViewVirtualPixels(), GetMagickModule, GetPixelAlphaTraits(), GetPixelBlueTraits(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), GetPixelGreenTraits(), GetPixelIntensity(), GetPixelRedTraits(), GetPixelWriteMask(), _PixelInfo::green, GreenPixelChannel, LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, MaxMap, MaxPixelChannels, _Image::progress_monitor, PseudoClass, QuantumRange, _PixelInfo::red, RedPixelChannel, RelinquishMagickMemory(), ResourceLimitError, _Image::rows, SetImageProgress(), _Image::signature, _Image::storage_class, SyncCacheViewAuthenticPixels(), SyncChannels, ThrowBinaryException, TraceEvent, and UpdatePixelTrait.
Referenced by EmbossImage().
|
inlinestatic |
Definition at line 1786 of file enhance.c.
Referenced by GammaImage(), and LevelPixel().
MagickExport MagickBooleanType GammaImage | ( | Image * | image, |
const double | gamma, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1791 of file enhance.c.
References AcquireAuthenticCacheView(), AcquireQuantumMemory(), _PixelInfo::alpha, _PixelInfo::blue, ClampToQuantum(), _Image::colormap, _Image::colors, _Image::columns, _Image::debug, DestroyCacheView(), _Image::filename, _Image::gamma, gamma_pow(), GammaCorrectImageTag, GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelAlphaTraits(), GetPixelBlueTraits(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), GetPixelGreenTraits(), GetPixelRedTraits(), GetPixelWriteMask(), _PixelInfo::green, LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, MaxMap, _Image::progress_monitor, PseudoClass, QuantumRange, QuantumScale, _PixelInfo::red, RelinquishMagickMemory(), ResourceLimitError, _Image::rows, SetImageProgress(), _Image::signature, _Image::storage_class, SyncCacheViewAuthenticPixels(), ThrowBinaryException, TraceEvent, and UpdatePixelTrait.
Referenced by PreviewImage().
MagickExport MagickBooleanType GrayscaleImage | ( | Image * | image, |
const PixelIntensityMethod | method, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1966 of file enhance.c.
References AcquireAuthenticCacheView(), AveragePixelIntensityMethod, BrightnessPixelIntensityMethod, ClampToQuantum(), _Image::colorspace, _Image::columns, _Image::debug, DecodePixelGamma(), DestroyCacheView(), DirectClass, EncodePixelGamma(), _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelBlue(), GetPixelChannels(), GetPixelGreen(), GetPixelRed(), GetPixelWriteMask(), GRAYColorspace, GrayscaleImageTag, GrayscaleType, _Image::intensity, LightnessPixelIntensityMethod, LinearGRAYColorspace, LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickMax, MagickMin, MagickTrue, MSPixelIntensityMethod, _Image::progress_monitor, PseudoClass, QuantumRange, Rec601LumaPixelIntensityMethod, Rec601LuminancePixelIntensityMethod, Rec709LumaPixelIntensityMethod, Rec709LuminancePixelIntensityMethod, RGBColorspace, RMSPixelIntensityMethod, _Image::rows, SetImageColorspace(), SetImageProgress(), SetImageStorageClass(), SetPixelGray(), _Image::signature, sRGBColorspace, _Image::storage_class, SyncCacheViewAuthenticPixels(), SyncImage(), TraceEvent, and _Image::type.
Referenced by CharcoalImage(), and TransformImageColorspace().
MagickExport MagickBooleanType HaldClutImage | ( | Image * | image, |
const Image * | hald_image, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 2183 of file enhance.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), _PixelInfo::alpha, _Image::alpha_trait, _PixelInfo::black, _PixelInfo::blue, ClampToQuantum(), CMYKColorspace, _Image::colorspace, _Image::columns, CompositePixelInfoAreaBlend(), _Image::debug, DestroyCacheView(), DirectClass, _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelAlphaTraits(), GetPixelBlackTraits(), GetPixelBlue(), GetPixelBlueTraits(), GetPixelChannels(), GetPixelGreen(), GetPixelGreenTraits(), GetPixelInfo(), GetPixelRed(), GetPixelRedTraits(), _PixelInfo::green, HaldClutImageTag, _Image::interpolate, InterpolatePixelInfo(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickMin, MagickTrue, OpaqueAlphaChannel, _Image::progress_monitor, QuantumScale, _PixelInfo::red, _Image::rows, SetImageAlphaChannel(), SetImageProgress(), SetImageStorageClass(), SetPixelAlpha(), SetPixelBlack(), SetPixelBlue(), SetPixelGreen(), SetPixelRed(), _Image::signature, SyncCacheViewAuthenticPixels(), TraceEvent, UndefinedPixelTrait, and UpdatePixelTrait.
|
inlinestatic |
Definition at line 3728 of file enhance.c.
References MagickEpsilon, and Sigmoidal.
MagickExport MagickBooleanType LevelImage | ( | Image * | image, |
const double | black_point, | ||
const double | white_point, | ||
const double | gamma, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 2407 of file enhance.c.
References AcquireAuthenticCacheView(), _PixelInfo::alpha, _PixelInfo::blue, ClampImage(), ClampToQuantum(), _Image::colormap, _Image::colors, _Image::columns, _Image::debug, DestroyCacheView(), _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelAlphaTraits(), GetPixelBlueTraits(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), GetPixelGreenTraits(), GetPixelRedTraits(), GetPixelWriteMask(), _PixelInfo::green, LevelImageTag, LevelPixel(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, _Image::progress_monitor, PseudoClass, QuantumRange, _PixelInfo::red, _Image::rows, SetImageProgress(), _Image::signature, _Image::storage_class, SyncCacheViewAuthenticPixels(), TraceEvent, and UpdatePixelTrait.
Referenced by AutoGammaImage(), LevelImageColors(), LinearStretchImage(), and MinMaxStretchImage().
MagickExport MagickBooleanType LevelImageColors | ( | Image * | image, |
const PixelInfo * | black_color, | ||
const PixelInfo * | white_color, | ||
const MagickBooleanType | invert, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 2715 of file enhance.c.
References _PixelInfo::alpha, _Image::alpha_trait, AlphaChannel, _PixelInfo::black, BlackChannel, _PixelInfo::blue, BlueChannel, CMYKColorspace, _Image::colorspace, _PixelInfo::colorspace, _Image::debug, _Image::filename, GetMagickModule, GetPixelAlphaTraits(), GetPixelBlackTraits(), GetPixelBlueTraits(), GetPixelGreenTraits(), GetPixelRedTraits(), _PixelInfo::green, GreenChannel, IsGrayColorspace(), LevelImage(), LevelizeImage(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, _PixelInfo::red, RedChannel, SetImageChannelMask(), SetImageColorspace(), _Image::signature, sRGBColorspace, TraceEvent, UndefinedPixelTrait, and UpdatePixelTrait.
Referenced by SetImageAlphaChannel().
MagickExport MagickBooleanType LevelizeImage | ( | Image * | image, |
const double | black_point, | ||
const double | white_point, | ||
const double | gamma, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 2562 of file enhance.c.
References AcquireAuthenticCacheView(), _PixelInfo::alpha, _PixelInfo::blue, _Image::colormap, _Image::colors, _Image::columns, _Image::debug, DestroyCacheView(), _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelAlphaTraits(), GetPixelBlueTraits(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), GetPixelGreenTraits(), GetPixelRedTraits(), GetPixelWriteMask(), _PixelInfo::green, LevelizeImageTag, LevelizeValue, LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, _Image::progress_monitor, PseudoClass, QuantumRange, _PixelInfo::red, _Image::rows, SetImageProgress(), _Image::signature, _Image::storage_class, SyncCacheViewAuthenticPixels(), TraceEvent, and UpdatePixelTrait.
Referenced by LevelImageColors().
|
inlinestatic |
Definition at line 2392 of file enhance.c.
References gamma_pow(), MagickEpsilon, and QuantumRange.
Referenced by LevelImage().
MagickExport MagickBooleanType LinearStretchImage | ( | Image * | image, |
const double | black_point, | ||
const double | white_point, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 2851 of file enhance.c.
References AcquireQuantumMemory(), AcquireVirtualCacheView(), ClampToQuantum(), _Image::columns, DestroyCacheView(), _Image::filename, GetCacheViewVirtualPixels(), GetPixelChannels(), GetPixelIntensity(), LevelImage(), magick_restrict, MagickCoreSignature, MaxMap, RelinquishMagickMemory(), ResourceLimitError, _Image::rows, _Image::signature, and ThrowBinaryException.
|
inlinestatic |
Definition at line 2960 of file enhance.c.
References ConvertHCLToRGB(), and ConvertRGBToHCL().
Referenced by ModulateImage().
|
inlinestatic |
Definition at line 2979 of file enhance.c.
References ConvertHCLpToRGB(), and ConvertRGBToHCLp().
Referenced by ModulateImage().
|
inlinestatic |
Definition at line 2998 of file enhance.c.
References ConvertHSBToRGB(), and ConvertRGBToHSB().
Referenced by ModulateImage().
|
inlinestatic |
Definition at line 3017 of file enhance.c.
References ConvertHSIToRGB(), and ConvertRGBToHSI().
Referenced by ModulateImage().
|
inlinestatic |
Definition at line 3036 of file enhance.c.
References ConvertHSLToRGB(), and ConvertRGBToHSL().
Referenced by ModulateImage().
|
inlinestatic |
Definition at line 3055 of file enhance.c.
References ConvertHSVToRGB(), and ConvertRGBToHSV().
Referenced by ModulateImage().
|
inlinestatic |
Definition at line 3074 of file enhance.c.
References ConvertHWBToRGB(), and ConvertRGBToHWB().
Referenced by ModulateImage().
MagickExport MagickBooleanType ModulateImage | ( | Image * | image, |
const char * | modulate, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 3131 of file enhance.c.
References AcquireAuthenticCacheView(), _PixelInfo::blue, ClampToQuantum(), _Image::colormap, _Image::colors, _Image::colorspace, _Image::columns, _Image::debug, DestroyCacheView(), _Image::filename, GetCacheViewAuthenticPixels(), GetImageArtifact(), GetMagickModule, GetPixelBlue(), GetPixelChannels(), GetPixelGreen(), GetPixelRed(), GetPixelWriteMask(), _PixelInfo::green, HCLColorspace, HCLpColorspace, HSBColorspace, HSIColorspace, HSLColorspace, HSVColorspace, HWBColorspace, IssRGBCompatibleColorspace(), LCHabColorspace, LCHColorspace, LCHuvColorspace, LogMagickEvent(), magick_restrict, MagickColorspaceOptions, MagickCoreSignature, MagickFalse, MagickTrue, ModulateHCL(), ModulateHCLp(), ModulateHSB(), ModulateHSI(), ModulateHSL(), ModulateHSV(), ModulateHWB(), ModulateImageTag, ModulateLCHab(), ModulateLCHuv(), ParseCommandOption(), ParseGeometry(), _Image::progress_monitor, PseudoClass, QuantumRange, _PixelInfo::red, _GeometryInfo::rho, _Image::rows, SetImageColorspace(), SetImageProgress(), SetPixelBlue(), SetPixelGreen(), SetPixelRed(), _GeometryInfo::sigma, SigmaValue, _Image::signature, sRGBColorspace, _Image::storage_class, SyncCacheViewAuthenticPixels(), TraceEvent, UndefinedColorspace, _GeometryInfo::xi, and XiValue.
Referenced by PreviewImage().
|
inlinestatic |
Definition at line 3093 of file enhance.c.
References ConvertLCHabToRGB(), and ConvertRGBToLCHab().
Referenced by ModulateImage().
|
inlinestatic |
Definition at line 3112 of file enhance.c.
References ConvertLCHuvToRGB(), and ConvertRGBToLCHuv().
Referenced by ModulateImage().
MagickExport MagickBooleanType NegateImage | ( | Image * | image, |
const MagickBooleanType | grayscale, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 3420 of file enhance.c.
References AcquireAuthenticCacheView(), _PixelInfo::blue, _Image::colormap, _Image::colors, _Image::columns, _Image::debug, DestroyCacheView(), _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelBlueTraits(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), GetPixelGreenTraits(), GetPixelRedTraits(), GetPixelWriteMask(), _PixelInfo::green, IsPixelGray(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, NegateImageTag, _Image::progress_monitor, PseudoClass, QuantumRange, _PixelInfo::red, _Image::rows, SetImageProgress(), _Image::signature, _Image::storage_class, SyncCacheViewAuthenticPixels(), TraceEvent, and UpdatePixelTrait.
Referenced by CharcoalImage(), ClipImagePath(), MontageImageList(), RenderPostscript(), and SketchImage().
MagickExport MagickBooleanType NormalizeImage | ( | Image * | image, |
ExceptionInfo * | exception | ||
) |
Definition at line 3618 of file enhance.c.
References _Image::columns, ContrastStretchImage(), and _Image::rows.
Referenced by CharcoalImage(), SepiaToneImage(), SetImageType(), and SketchImage().
MagickExport MagickBooleanType SigmoidalContrastImage | ( | Image * | image, |
const MagickBooleanType | sharpen, | ||
const double | contrast, | ||
const double | midpoint, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 3755 of file enhance.c.
References AcquireAuthenticCacheView(), _PixelInfo::alpha, _PixelInfo::blue, _Image::colormap, _Image::colors, _Image::columns, _Image::debug, DestroyCacheView(), _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelAlphaTraits(), GetPixelBlueTraits(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), GetPixelGreenTraits(), GetPixelRedTraits(), GetPixelWriteMask(), _PixelInfo::green, InverseScaledSig, LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickEpsilon, MagickFalse, MagickTrue, _Image::progress_monitor, PseudoClass, QuantumRange, _PixelInfo::red, _Image::rows, ScaledSig, SetImageProgress(), SigmoidalContrastImageTag, _Image::signature, _Image::storage_class, SyncCacheViewAuthenticPixels(), TraceEvent, and UpdatePixelTrait.