MagickCore
7.0.0
|
#include "MagickCore/studio.h"
#include "MagickCore/artifact.h"
#include "MagickCore/attribute.h"
#include "MagickCore/cache.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 | EnhancePixel(weight) |
#define | EnhanceImageTag "Enhance/Image" |
#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) |
static MagickRealType | MagickMax (const MagickRealType x, const MagickRealType y) |
static MagickRealType | MagickMin (const MagickRealType x, const MagickRealType y) |
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 3686 of file enhance.c.
Referenced by InverseScaledSigmoidal().
#define SigmoidalContrastImageTag "SigmoidalContrast/Image" |
Referenced by SigmoidalContrastImage().
MagickExport MagickBooleanType AutoGammaImage | ( | Image * | image, |
ExceptionInfo * | exception | ||
) |
Definition at line 109 of file enhance.c.
References _Image::channel_mask, DefaultChannels, GetImageMean(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), IfMagickFalse, LevelImage(), MagickTrue, QuantumRange, QuantumScale, SetImageChannelMask(), and UpdatePixelTrait.
MagickExport MagickBooleanType AutoLevelImage | ( | Image * | image, |
ExceptionInfo * | exception | ||
) |
Definition at line 183 of file enhance.c.
References MinMaxStretchImage().
MagickExport MagickBooleanType BrightnessContrastImage | ( | Image * | image, |
const double | brightness, | ||
const double | contrast, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 220 of file enhance.c.
References _Image::debug, _Image::filename, FunctionImage(), GetMagickModule, IfMagickTrue, LogMagickEvent(), MagickPI, MagickSignature, PolynomialFunction, _Image::signature, and TraceEvent.
MagickExport MagickBooleanType ClutImage | ( | Image * | image, |
const Image * | clut_image, | ||
const PixelInterpolateMethod | method, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 297 of file enhance.c.
References AcquireAuthenticCacheView(), AcquireQuantumMemory(), AcquireVirtualCacheView(), ActivateAlphaChannel, _PixelInfo::alpha, _Image::alpha_trait, _PixelInfo::black, BlendPixelTrait, _PixelInfo::blue, ClampToQuantum(), ClutImageTag, _Image::colorspace, _Image::columns, _Image::debug, DestroyCacheView(), DirectClass, _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelAlphaTraits(), GetPixelChannels(), GetPixelInfo(), GetPixelInfoPixel(), GetPixelReadMask(), _PixelInfo::green, IfMagickFalse, IfMagickTrue, IntegerInterpolatePixel, _Image::interpolate, InterpolatePixelInfo(), IsGrayColorspace(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, MaxMap, _Image::progress_monitor, QuantumScale, _PixelInfo::red, RelinquishMagickMemory(), ResourceLimitError, _Image::rows, SetImageAlphaChannel(), SetImageColorspace(), SetImageProgress(), SetImageStorageClass(), SetPixelInfoPixel(), _Image::signature, sRGBColorspace, SyncCacheViewAuthenticPixels(), ThrowBinaryException, TraceEvent, and UpdatePixelTrait.
MagickExport MagickBooleanType ColorDecisionListImage | ( | Image * | image, |
const char * | color_correction_collection, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 465 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, GetMagickToken(), GetPixelBlue(), GetPixelChannels(), GetPixelGreen(), GetPixelRed(), GetXMLTreeChild(), GetXMLTreeContent(), _PixelInfo::green, IfMagickFalse, IfMagickTrue, LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, MaxMap, MaxTextExtent, 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 824 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 851 of file enhance.c.
References AcquireAuthenticCacheView(), ClampToQuantum(), _Image::colormap, _Image::colors, _Image::columns, Contrast(), ContrastImageTag, _Image::debug, DestroyCacheView(), _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelBlue(), GetPixelChannels(), GetPixelGreen(), GetPixelRed(), IfMagickFalse, IfMagickTrue, LogMagickEvent(), MagickFalse, MagickSignature, 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 995 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(), GetPixelChannels(), GetPixelChannelTraits(), GetPixelGreenTraits(), GetPixelIntensity(), GetPixelReadMask(), GetPixelRedTraits(), GRAYColorspace, _PixelInfo::green, GreenPixelChannel, IfMagickFalse, IfMagickTrue, IsImageGray(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, MaxMap, MaxRange, _Image::progress_monitor, PseudoClass, QuantumRange, _PixelInfo::red, RedPixelChannel, RelinquishMagickMemory(), ResetMagickMemory(), ResourceLimitError, _Image::rows, SetImageColorspace(), 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 1288 of file enhance.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), ClampToQuantum(), CloneImage(), _Image::columns, CopyPixelTrait, _Image::debug, DestroyCacheView(), DestroyImage(), DirectClass, EnhanceImageTag, EnhancePixel, _Image::filename, GetCacheViewVirtualPixels(), GetMagickModule, GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), GetPixelReadMask(), IfMagickFalse, IfMagickTrue, LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _Image::progress_monitor, QueueCacheViewAuthenticPixels(), _Image::rows, SetImageProgress(), SetImageStorageClass(), SetPixelChannel(), _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), TraceEvent, and UndefinedPixelTrait.
MagickExport MagickBooleanType EqualizeImage | ( | Image * | image, |
ExceptionInfo * | exception | ||
) |
Definition at line 1477 of file enhance.c.
References AcquireAuthenticCacheView(), AcquireQuantumMemory(), AcquireVirtualCacheView(), _PixelInfo::alpha, AlphaPixelChannel, _PixelInfo::blue, BluePixelChannel, ClampToQuantum(), _Image::colormap, _Image::colors, _Image::columns, CompositePixelChannel, _Image::debug, DestroyCacheView(), EqualizeImageTag, _Image::filename, GetCacheViewAuthenticPixels(), GetCacheViewVirtualPixels(), GetMagickModule, GetPixelAlphaTraits(), GetPixelBlueTraits(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), GetPixelGreenTraits(), GetPixelReadMask(), GetPixelRedTraits(), _PixelInfo::green, GreenPixelChannel, IfMagickFalse, IfMagickTrue, LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, MaxMap, _Image::progress_monitor, PseudoClass, _PixelInfo::red, RedPixelChannel, RelinquishMagickMemory(), ResetMagickMemory(), ResourceLimitError, _Image::rows, SetImageProgress(), _Image::signature, _Image::storage_class, SyncCacheViewAuthenticPixels(), ThrowBinaryException, TraceEvent, and UpdatePixelTrait.
Referenced by EmbossImage().
|
inlinestatic |
Definition at line 1750 of file enhance.c.
Referenced by GammaImage(), and LevelPixel().
MagickExport MagickBooleanType GammaImage | ( | Image * | image, |
const double | gamma, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1755 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(), GetPixelReadMask(), GetPixelRedTraits(), _PixelInfo::green, IfMagickFalse, IfMagickTrue, LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, MaxMap, _Image::progress_monitor, PseudoClass, QuantumRange, QuantumScale, _PixelInfo::red, RelinquishMagickMemory(), ResetMagickMemory(), 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 1947 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(), GetPixelReadMask(), GetPixelRed(), GRAYColorspace, GrayscaleImageTag, GrayscaleType, IfMagickFalse, IfMagickTrue, _Image::intensity, LightnessPixelIntensityMethod, LogMagickEvent(), MagickFalse, MagickMax(), MagickMin(), MagickSignature, MagickTrue, MSPixelIntensityMethod, _Image::progress_monitor, PseudoClass, Rec601LumaPixelIntensityMethod, Rec601LuminancePixelIntensityMethod, Rec709LumaPixelIntensityMethod, Rec709LuminancePixelIntensityMethod, RGBColorspace, RMSPixelIntensityMethod, _Image::rows, SetImageColorspace(), SetImageProgress(), SetImageStorageClass(), SetPixelGray(), _Image::signature, sRGBColorspace, _Image::storage_class, SyncCacheViewAuthenticPixels(), SyncImage(), TraceEvent, _Image::type, and UndefinedPixelIntensityMethod.
Referenced by CharcoalImage().
MagickExport MagickBooleanType HaldClutImage | ( | Image * | image, |
const Image * | hald_image, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 2168 of file enhance.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), _PixelInfo::alpha, _Image::alpha_trait, _PixelInfo::black, BlendPixelTrait, _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, IfMagickFalse, IfMagickTrue, _Image::interpolate, InterpolatePixelInfo(), LogMagickEvent(), MagickFalse, MagickMin(), MagickSignature, MagickTrue, OpaqueAlphaChannel, _Image::progress_monitor, QuantumScale, _PixelInfo::red, _Image::rows, SetImageAlphaChannel(), SetImageProgress(), SetImageStorageClass(), SetPixelAlpha(), SetPixelBlack(), SetPixelBlue(), SetPixelGreen(), SetPixelRed(), _Image::signature, SyncCacheViewAuthenticPixels(), TraceEvent, and UpdatePixelTrait.
|
inlinestatic |
Definition at line 3717 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 2382 of file enhance.c.
References AcquireAuthenticCacheView(), _PixelInfo::alpha, _PixelInfo::blue, ClampToQuantum(), _Image::colormap, _Image::colors, _Image::columns, _Image::debug, DestroyCacheView(), _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelAlphaTraits(), GetPixelBlueTraits(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), GetPixelGreenTraits(), GetPixelReadMask(), GetPixelRedTraits(), _PixelInfo::green, IfMagickFalse, IfMagickTrue, LevelImageTag, LevelPixel(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _Image::progress_monitor, PseudoClass, _PixelInfo::red, _Image::rows, SetImageProgress(), _Image::signature, _Image::storage_class, SyncCacheViewAuthenticPixels(), TraceEvent, and UpdatePixelTrait.
Referenced by AdaptiveLevelImage(), 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 2689 of file enhance.c.
References _PixelInfo::alpha, _Image::alpha_trait, AlphaChannel, _PixelInfo::black, BlackChannel, BlendPixelTrait, _PixelInfo::blue, BlueChannel, CMYKColorspace, _Image::colorspace, _PixelInfo::colorspace, _Image::debug, _Image::filename, GetMagickModule, GetPixelAlphaTraits(), GetPixelBlackTraits(), GetPixelBlueTraits(), GetPixelGreenTraits(), GetPixelRedTraits(), _PixelInfo::green, GreenChannel, IfMagickFalse, IfMagickTrue, IsGrayColorspace(), LevelImage(), LevelizeImage(), LogMagickEvent(), MagickFalse, MagickSignature, _PixelInfo::red, RedChannel, SetImageChannelMask(), SetImageColorspace(), _Image::signature, sRGBColorspace, TraceEvent, 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 2536 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(), GetPixelReadMask(), GetPixelRedTraits(), _PixelInfo::green, IfMagickFalse, IfMagickTrue, LevelizeImageTag, LevelizeValue, LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _Image::progress_monitor, PseudoClass, _PixelInfo::red, _Image::rows, SetImageProgress(), _Image::signature, _Image::storage_class, SyncCacheViewAuthenticPixels(), TraceEvent, and UpdatePixelTrait.
Referenced by AdaptiveLevelImage(), and LevelImageColors().
|
inlinestatic |
Definition at line 2369 of file enhance.c.
References gamma_pow(), and QuantumRange.
Referenced by LevelImage().
MagickExport MagickBooleanType LinearStretchImage | ( | Image * | image, |
const double | black_point, | ||
const double | white_point, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 2825 of file enhance.c.
References AcquireQuantumMemory(), AcquireVirtualCacheView(), ClampToQuantum(), _Image::columns, DestroyCacheView(), _Image::filename, GetCacheViewVirtualPixels(), GetPixelChannels(), GetPixelIntensity(), LevelImage(), MagickSignature, MaxMap, RelinquishMagickMemory(), ResetMagickMemory(), ResourceLimitError, _Image::rows, _Image::signature, and ThrowBinaryException.
|
inlinestatic |
Definition at line 1931 of file enhance.c.
Referenced by GrayscaleImage().
|
inlinestatic |
Definition at line 1939 of file enhance.c.
Referenced by GrayscaleImage(), and HaldClutImage().
|
inlinestatic |
Definition at line 2935 of file enhance.c.
References ConvertHCLToRGB(), and ConvertRGBToHCL().
Referenced by ModulateImage().
|
inlinestatic |
Definition at line 2958 of file enhance.c.
References ConvertHCLpToRGB(), and ConvertRGBToHCLp().
Referenced by ModulateImage().
|
inlinestatic |
Definition at line 2981 of file enhance.c.
References ConvertHSBToRGB(), and ConvertRGBToHSB().
Referenced by ModulateImage().
|
inlinestatic |
Definition at line 3004 of file enhance.c.
References ConvertHSIToRGB(), and ConvertRGBToHSI().
Referenced by ModulateImage().
|
inlinestatic |
Definition at line 3027 of file enhance.c.
References ConvertHSLToRGB(), and ConvertRGBToHSL().
Referenced by ModulateImage().
|
inlinestatic |
Definition at line 3050 of file enhance.c.
References ConvertHSVToRGB(), and ConvertRGBToHSV().
Referenced by ModulateImage().
|
inlinestatic |
Definition at line 3073 of file enhance.c.
References ConvertHWBToRGB(), and ConvertRGBToHWB().
Referenced by ModulateImage().
MagickExport MagickBooleanType ModulateImage | ( | Image * | image, |
const char * | modulate, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 3142 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(), _PixelInfo::green, HCLColorspace, HCLpColorspace, HSBColorspace, HSIColorspace, HSLColorspace, HSVColorspace, HWBColorspace, IfMagickFalse, IfMagickTrue, IssRGBCompatibleColorspace(), LCHabColorspace, LCHColorspace, LCHuvColorspace, LogMagickEvent(), MagickColorspaceOptions, MagickFalse, MagickSignature, MagickTrue, ModulateHCL(), ModulateHCLp(), ModulateHSB(), ModulateHSI(), ModulateHSL(), ModulateHSV(), ModulateHWB(), ModulateImageTag, ModulateLCHab(), ModulateLCHuv(), ParseCommandOption(), ParseGeometry(), _Image::progress_monitor, PseudoClass, _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 3096 of file enhance.c.
References ConvertLCHabToRGB(), and ConvertRGBToLCHab().
Referenced by ModulateImage().
|
inlinestatic |
Definition at line 3119 of file enhance.c.
References ConvertLCHuvToRGB(), and ConvertRGBToLCHuv().
Referenced by ModulateImage().
MagickExport MagickBooleanType NegateImage | ( | Image * | image, |
const MagickBooleanType | grayscale, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 3409 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(), GetPixelReadMask(), GetPixelRedTraits(), _PixelInfo::green, IfMagickFalse, IfMagickTrue, IsPixelGray(), LogMagickEvent(), MagickFalse, MagickSignature, 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(), DrawClipPath(), MontageImageList(), RenderPostscript(), and SketchImage().
MagickExport MagickBooleanType NormalizeImage | ( | Image * | image, |
ExceptionInfo * | exception | ||
) |
Definition at line 3607 of file enhance.c.
References _Image::columns, ContrastStretchImage(), and _Image::rows.
Referenced by CharcoalImage(), SepiaToneImage(), and SketchImage().
MagickExport MagickBooleanType SigmoidalContrastImage | ( | Image * | image, |
const MagickBooleanType | sharpen, | ||
const double | contrast, | ||
const double | midpoint, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 3744 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(), GetPixelReadMask(), GetPixelRedTraits(), _PixelInfo::green, IfMagickFalse, IfMagickTrue, InverseScaledSig, LogMagickEvent(), MagickEpsilon, MagickFalse, MagickSignature, MagickTrue, _Image::progress_monitor, PseudoClass, _PixelInfo::red, _Image::rows, ScaledSig, SetImageProgress(), SigmoidalContrastImageTag, _Image::signature, _Image::storage_class, SyncCacheViewAuthenticPixels(), TraceEvent, and UpdatePixelTrait.