#include "magick/studio.h"#include "magick/artifact.h"#include "magick/cache.h"#include "magick/cache-view.h"#include "magick/color.h"#include "magick/color-private.h"#include "magick/colorspace.h"#include "magick/composite-private.h"#include "magick/enhance.h"#include "magick/exception.h"#include "magick/exception-private.h"#include "magick/gem.h"#include "magick/geometry.h"#include "magick/histogram.h"#include "magick/image.h"#include "magick/image-private.h"#include "magick/memory_.h"#include "magick/monitor.h"#include "magick/monitor-private.h"#include "magick/option.h"#include "magick/quantum.h"#include "magick/quantum-private.h"#include "magick/resample.h"#include "magick/resample-private.h"#include "magick/statistic.h"#include "magick/string_.h"#include "magick/thread-private.h"#include "magick/token.h"#include "magick/xml-tree.h"
Go to the source code of this file.
Defines | |
| #define | ColorDecisionListCorrectImageTag "ColorDecisionList/Image" |
| #define | ClutImageTag "Clut/Image" |
| #define | ContrastImageTag "Contrast/Image" |
| #define | MaxRange(color) ((MagickRealType) ScaleQuantumToMap((Quantum) (color))) |
| #define | ContrastStretchImageTag "ContrastStretch/Image" |
| #define | Enhance(weight) |
| #define | EnhanceImageTag "Enhance/Image" |
| #define | EqualizeImageTag "Equalize/Image" |
| #define | GammaCorrectImageTag "GammaCorrect/Image" |
| #define | HaldClutImageTag "Clut/Image" |
| #define | LevelImageTag "Level/Image" |
| #define | LevelValue(x) |
| #define | LevelizeImageTag "Levelize/Image" |
| #define | LevelizeValue(x) |
| #define | LinearStretchImageTag "LinearStretch/Image" |
| #define | ModulateImageTag "Modulate/Image" |
| #define | NegateImageTag "Negate/Image" |
| #define | SigmoidalContrastImageTag "SigmoidalContrast/Image" |
Functions | |
| MagickExport MagickBooleanType | AutoGammaImage (Image *image) |
| MagickExport MagickBooleanType | AutoGammaImageChannel (Image *image, const ChannelType channel) |
| MagickExport MagickBooleanType | AutoLevelImage (Image *image) |
| MagickExport MagickBooleanType | AutoLevelImageChannel (Image *image, const ChannelType channel) |
| MagickExport MagickBooleanType | ColorDecisionListImage (Image *image, const char *color_correction_collection) |
| MagickExport MagickBooleanType | ClutImage (Image *image, const Image *clut_image) |
| MagickExport MagickBooleanType | ClutImageChannel (Image *image, const ChannelType channel, const Image *clut_image) |
| static void | Contrast (const int sign, Quantum *red, Quantum *green, Quantum *blue) |
| MagickExport MagickBooleanType | ContrastImage (Image *image, const MagickBooleanType sharpen) |
| MagickExport MagickBooleanType | ContrastStretchImage (Image *image, const char *levels) |
| MagickExport MagickBooleanType | ContrastStretchImageChannel (Image *image, const ChannelType channel, const double black_point, const double white_point) |
| MagickExport Image * | EnhanceImage (const Image *image, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | EqualizeImage (Image *image) |
| MagickExport MagickBooleanType | EqualizeImageChannel (Image *image, const ChannelType channel) |
| MagickExport MagickBooleanType | GammaImage (Image *image, const char *level) |
| MagickExport MagickBooleanType | GammaImageChannel (Image *image, const ChannelType channel, const double gamma) |
| static size_t | MagickMin (const size_t x, const size_t y) |
| MagickExport MagickBooleanType | HaldClutImage (Image *image, const Image *hald_image) |
| MagickExport MagickBooleanType | HaldClutImageChannel (Image *image, const ChannelType channel, const Image *hald_image) |
| MagickExport MagickBooleanType | LevelImage (Image *image, const char *levels) |
| MagickExport MagickBooleanType | LevelizeImage (Image *image, const double black_point, const double white_point, const double gamma) |
| MagickExport MagickBooleanType | LevelImageChannel (Image *image, const ChannelType channel, const double black_point, const double white_point, const double gamma) |
| MagickExport MagickBooleanType | LevelizeImageChannel (Image *image, const ChannelType channel, const double black_point, const double white_point, const double gamma) |
| MagickExport MagickBooleanType | LevelColorsImage (Image *image, const MagickPixelPacket *black_color, const MagickPixelPacket *white_color, const MagickBooleanType invert) |
| MagickExport MagickBooleanType | LevelColorsImageChannel (Image *image, const ChannelType channel, const MagickPixelPacket *black_color, const MagickPixelPacket *white_color, const MagickBooleanType invert) |
| MagickExport MagickBooleanType | LinearStretchImage (Image *image, const double black_point, const double white_point) |
| static void | ModulateHSB (const double percent_hue, const double percent_saturation, const double percent_brightness, Quantum *red, Quantum *green, Quantum *blue) |
| static void | ModulateHSL (const double percent_hue, const double percent_saturation, const double percent_lightness, Quantum *red, Quantum *green, Quantum *blue) |
| static void | ModulateHWB (const double percent_hue, const double percent_whiteness, const double percent_blackness, Quantum *red, Quantum *green, Quantum *blue) |
| MagickExport MagickBooleanType | ModulateImage (Image *image, const char *modulate) |
| MagickExport MagickBooleanType | NegateImage (Image *image, const MagickBooleanType grayscale) |
| MagickExport MagickBooleanType | NegateImageChannel (Image *image, const ChannelType channel, const MagickBooleanType grayscale) |
| MagickExport MagickBooleanType | NormalizeImage (Image *image) |
| MagickExport MagickBooleanType | NormalizeImageChannel (Image *image, const ChannelType channel) |
| MagickExport MagickBooleanType | SigmoidalContrastImage (Image *image, const MagickBooleanType sharpen, const char *levels) |
| MagickExport MagickBooleanType | SigmoidalContrastImageChannel (Image *image, const ChannelType channel, const MagickBooleanType sharpen, const double contrast, const double midpoint) |
| #define ClutImageTag "Clut/Image" |
Referenced by ClutImageChannel().
| #define ColorDecisionListCorrectImageTag "ColorDecisionList/Image" |
Referenced by ColorDecisionListImage().
| #define ContrastImageTag "Contrast/Image" |
Referenced by ContrastImage().
| #define ContrastStretchImageTag "ContrastStretch/Image" |
Referenced by ContrastStretchImageChannel().
| #define Enhance | ( | weight | ) |
mean=((MagickRealType) r->red+pixel.red)/2; \ distance=(MagickRealType) r->red-(MagickRealType) pixel.red; \ distance_squared=QuantumScale*(2.0*((MagickRealType) QuantumRange+1.0)+ \ mean)*distance*distance; \ mean=((MagickRealType) r->green+pixel.green)/2; \ distance=(MagickRealType) r->green-(MagickRealType) pixel.green; \ distance_squared+=4.0*distance*distance; \ mean=((MagickRealType) r->blue+pixel.blue)/2; \ distance=(MagickRealType) r->blue-(MagickRealType) pixel.blue; \ distance_squared+=QuantumScale*(3.0*((MagickRealType) \ QuantumRange+1.0)-1.0-mean)*distance*distance; \ mean=((MagickRealType) r->opacity+pixel.opacity)/2; \ distance=(MagickRealType) r->opacity-(MagickRealType) pixel.opacity; \ distance_squared+=QuantumScale*(3.0*((MagickRealType) \ QuantumRange+1.0)-1.0-mean)*distance*distance; \ if (distance_squared < ((MagickRealType) QuantumRange*(MagickRealType) \ QuantumRange/25.0f)) \ { \ aggregate.red+=(weight)*r->red; \ aggregate.green+=(weight)*r->green; \ aggregate.blue+=(weight)*r->blue; \ aggregate.opacity+=(weight)*r->opacity; \ total_weight+=(weight); \ } \ r++;
Referenced by EnhanceImage().
| #define EnhanceImageTag "Enhance/Image" |
Referenced by EnhanceImage().
| #define EqualizeImageTag "Equalize/Image" |
Referenced by EqualizeImageChannel().
| #define GammaCorrectImageTag "GammaCorrect/Image" |
Referenced by GammaImageChannel().
| #define HaldClutImageTag "Clut/Image" |
Referenced by HaldClutImageChannel().
| #define LevelImageTag "Level/Image" |
Referenced by LevelImageChannel().
| #define LevelizeImageTag "Levelize/Image" |
Referenced by LevelizeImageChannel().
| #define LevelizeValue | ( | x | ) |
(RoundToQuantum(((MagickRealType) \ pow((double)(QuantumScale*(x)),1.0/gamma))*(white_point-black_point)+ \ black_point))
Referenced by LevelizeImageChannel().
| #define LevelValue | ( | x | ) |
(RoundToQuantum((MagickRealType) QuantumRange* \ pow(((double) (x)-black_point)/(white_point-black_point),1.0/gamma)))
Referenced by LevelImageChannel().
| #define LinearStretchImageTag "LinearStretch/Image" |
| #define MaxRange | ( | color | ) | ((MagickRealType) ScaleQuantumToMap((Quantum) (color))) |
Referenced by ContrastStretchImageChannel().
| #define ModulateImageTag "Modulate/Image" |
Referenced by ModulateImage().
| #define NegateImageTag "Negate/Image" |
Referenced by NegateImageChannel().
| #define SigmoidalContrastImageTag "SigmoidalContrast/Image" |
Referenced by SigmoidalContrastImageChannel().
| MagickExport MagickBooleanType AutoGammaImage | ( | Image * | image | ) |
Definition at line 103 of file enhance.c.
References AutoGammaImageChannel(), and DefaultChannels.
| MagickExport MagickBooleanType AutoGammaImageChannel | ( | Image * | image, | |
| const ChannelType | channel | |||
| ) |
Definition at line 108 of file enhance.c.
References BlueChannel, CMYKColorspace, _Image::colorspace, _Image::exception, GetImageChannelMean(), GreenChannel, IndexChannel, LevelImageChannel(), MagickFalse, MagickTrue, _Image::matte, OpacityChannel, QuantumRange, QuantumScale, RedChannel, and SyncChannels.
Referenced by AutoGammaImage().
| MagickExport MagickBooleanType AutoLevelImage | ( | Image * | image | ) |
Definition at line 210 of file enhance.c.
References AutoLevelImageChannel(), and DefaultChannels.
| MagickExport MagickBooleanType AutoLevelImageChannel | ( | Image * | image, | |
| const ChannelType | channel | |||
| ) |
Definition at line 215 of file enhance.c.
References MinMaxStretchImage().
Referenced by AutoLevelImage().
| MagickExport MagickBooleanType ClutImage | ( | Image * | image, | |
| const Image * | clut_image | |||
| ) |
Definition at line 607 of file enhance.c.
References ClutImageChannel(), and DefaultChannels.
| MagickExport MagickBooleanType ClutImageChannel | ( | Image * | image, | |
| const ChannelType | channel, | |||
| const Image * | clut_image | |||
| ) |
Definition at line 612 of file enhance.c.
References AcquireCacheView(), AcquireResampleFilterThreadSet(), ActivateAlphaChannel, _MagickPixelPacket::blue, BlueChannel, ClutImageTag, CMYKColorspace, _Image::colorspace, _Image::columns, _Image::debug, DestroyCacheView(), DestroyResampleFilterThreadSet(), DirectClass, _Image::exception, _Image::filename, GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetMagickModule, GetMagickPixelPacket(), GetOpenMPThreadId(), _MagickPixelPacket::green, GreenChannel, _MagickPixelPacket::index, IndexChannel, IntegerInterpolatePixel, _Image::interpolate, LogMagickEvent(), MagickFalse, MagickPixelIntensityToQuantum(), MagickSignature, MagickTrue, _Image::matte, _MagickPixelPacket::opacity, OpacityChannel, PixelIntensity(), _Image::progress_monitor, QuantumRange, QuantumScale, _MagickPixelPacket::red, RedChannel, ResamplePixelColor(), RoundToQuantum(), _Image::rows, SetImageAlphaChannel(), SetImageProgress(), SetImageStorageClass(), _Image::signature, SyncCacheViewAuthenticPixels(), and TraceEvent.
Referenced by ClutImage().
| MagickExport MagickBooleanType ColorDecisionListImage | ( | Image * | image, | |
| const char * | color_correction_collection | |||
| ) |
Definition at line 267 of file enhance.c.
References AcquireCacheView(), AcquireQuantumMemory(), _PixelPacket::blue, ColorDecisionListCorrectImageTag, _Image::colormap, _Image::colors, _Image::columns, _Image::debug, DestroyCacheView(), DestroyXMLTree(), _Image::exception, _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, GetMagickToken(), GetXMLTreeChild(), GetXMLTreeContent(), _PixelPacket::green, LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, MaxMap, MaxTextExtent, NewXMLTree(), _Image::progress_monitor, PseudoClass, _PixelPacket::red, RelinquishMagickMemory(), ResourceLimitError, RoundToQuantum(), _Image::rows, ScaleMapToQuantum(), ScaleQuantumToMap(), SetImageProgress(), _Image::signature, _Image::storage_class, SyncCacheViewAuthenticPixels(), ThrowBinaryException, TraceEvent, and TransformEvent.
Definition at line 818 of file enhance.c.
References ConvertHSBToRGB(), ConvertRGBToHSB(), and MagickPI.
Referenced by ContrastImage().
| MagickExport MagickBooleanType ContrastImage | ( | Image * | image, | |
| const MagickBooleanType | sharpen | |||
| ) |
Definition at line 844 of file enhance.c.
References AcquireCacheView(), _PixelPacket::blue, _Image::colormap, _Image::colors, _Image::columns, Contrast(), ContrastImageTag, _Image::debug, DestroyCacheView(), _Image::exception, _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, _PixelPacket::green, LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _Image::progress_monitor, PseudoClass, _PixelPacket::red, _Image::rows, SetImageProgress(), _Image::signature, _Image::storage_class, SyncCacheViewAuthenticPixels(), and TraceEvent.
Referenced by PreviewImage(), and SepiaToneImage().
| MagickExport MagickBooleanType ContrastStretchImage | ( | Image * | image, | |
| const char * | levels | |||
| ) |
Definition at line 973 of file enhance.c.
References _Image::columns, ContrastStretchImageChannel(), DefaultChannels, MagickFalse, ParseGeometry(), PercentValue, QuantumRange, _GeometryInfo::rho, _Image::rows, _GeometryInfo::sigma, and SigmaValue.
| MagickExport MagickBooleanType ContrastStretchImageChannel | ( | Image * | image, | |
| const ChannelType | channel, | |||
| const double | black_point, | |||
| const double | white_point | |||
| ) |
Definition at line 1011 of file enhance.c.
References AcquireCacheView(), AcquireQuantumMemory(), _PixelPacket::blue, _MagickPixelPacket::blue, BlueChannel, CMYKColorspace, _Image::colormap, _Image::colors, _Image::colorspace, _Image::columns, ContrastStretchImageTag, _Image::debug, DefaultChannels, DestroyCacheView(), DirectClass, _Image::exception, _Image::filename, GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetCacheViewVirtualPixels(), GetMagickModule, _PixelPacket::green, _MagickPixelPacket::green, GreenChannel, _MagickPixelPacket::index, IndexChannel, LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, MaxMap, MaxRange, _PixelPacket::opacity, _MagickPixelPacket::opacity, OpacityChannel, PixelIntensityToQuantum(), _Image::progress_monitor, PseudoClass, QuantumRange, _PixelPacket::red, _MagickPixelPacket::red, RedChannel, RelinquishMagickMemory(), ResetMagickMemory(), ResourceLimitError, RoundToQuantum(), _Image::rows, ScaleMapToQuantum(), ScaleQuantumToMap(), SetImageProgress(), _Image::signature, _Image::storage_class, SyncCacheViewAuthenticPixels(), ThrowBinaryException, and TraceEvent.
Referenced by ContrastStretchImage(), and NormalizeImageChannel().
| MagickExport Image* EnhanceImage | ( | const Image * | image, | |
| ExceptionInfo * | exception | |||
| ) |
Definition at line 1448 of file enhance.c.
References AcquireCacheView(), _MagickPixelPacket::blue, CloneImage(), _Image::columns, _Image::debug, DestroyCacheView(), DestroyImage(), DirectClass, Enhance, EnhanceImageTag, _Image::exception, _Image::filename, GetCacheViewVirtualPixels(), GetMagickModule, _MagickPixelPacket::green, InheritException(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _MagickPixelPacket::opacity, _Image::progress_monitor, QueueCacheViewAuthenticPixels(), _MagickPixelPacket::red, ResetMagickMemory(), _Image::rows, SetImageProgress(), SetImageStorageClass(), _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), and TraceEvent.
| MagickExport MagickBooleanType EqualizeImage | ( | Image * | image | ) |
Definition at line 1640 of file enhance.c.
References DefaultChannels, and EqualizeImageChannel().
Referenced by EmbossImage().
| MagickExport MagickBooleanType EqualizeImageChannel | ( | Image * | image, | |
| const ChannelType | channel | |||
| ) |
Definition at line 1645 of file enhance.c.
References AcquireCacheView(), AcquireQuantumMemory(), _PixelPacket::blue, _MagickPixelPacket::blue, BlueChannel, CMYKColorspace, _Image::colormap, _Image::colors, _Image::colorspace, _Image::columns, _Image::debug, DestroyCacheView(), EqualizeImageTag, _Image::exception, _Image::filename, GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetMagickModule, GetVirtualIndexQueue(), GetVirtualPixels(), _PixelPacket::green, _MagickPixelPacket::green, GreenChannel, _MagickPixelPacket::index, IndexChannel, LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, MaxMap, _PixelPacket::opacity, _MagickPixelPacket::opacity, OpacityChannel, _Image::progress_monitor, PseudoClass, _PixelPacket::red, _MagickPixelPacket::red, RedChannel, RelinquishMagickMemory(), ResetMagickMemory(), ResourceLimitError, RoundToQuantum(), _Image::rows, ScaleMapToQuantum(), ScaleQuantumToMap(), SetImageProgress(), _Image::signature, _Image::storage_class, SyncCacheViewAuthenticPixels(), ThrowBinaryException, and TraceEvent.
Referenced by EqualizeImage().
| MagickExport MagickBooleanType GammaImage | ( | Image * | image, | |
| const char * | level | |||
| ) |
Definition at line 1912 of file enhance.c.
References _MagickPixelPacket::blue, BlueChannel, _Image::debug, _Image::filename, GammaImageChannel(), GetMagickModule, _MagickPixelPacket::green, GreenChannel, LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, ParseGeometry(), _MagickPixelPacket::red, RedChannel, _GeometryInfo::rho, _GeometryInfo::sigma, SigmaValue, _Image::signature, TraceEvent, _GeometryInfo::xi, and XiValue.
| MagickExport MagickBooleanType GammaImageChannel | ( | Image * | image, | |
| const ChannelType | channel, | |||
| const double | gamma | |||
| ) |
Definition at line 1952 of file enhance.c.
References AcquireCacheView(), AcquireQuantumMemory(), _PixelPacket::blue, BlueChannel, CMYKColorspace, _Image::colormap, _Image::colors, _Image::colorspace, _Image::columns, _Image::debug, DefaultChannels, DestroyCacheView(), _Image::exception, _Image::filename, _Image::gamma, GammaCorrectImageTag, GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetMagickModule, _PixelPacket::green, GreenChannel, IndexChannel, LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _Image::matte, MaxMap, _PixelPacket::opacity, OpacityChannel, _Image::progress_monitor, PseudoClass, QuantumRange, _PixelPacket::red, RedChannel, RelinquishMagickMemory(), ResetMagickMemory(), ResourceLimitError, RoundToQuantum(), _Image::rows, ScaleMapToQuantum(), ScaleQuantumToMap(), SetImageProgress(), _Image::signature, _Image::storage_class, SyncCacheViewAuthenticPixels(), ThrowBinaryException, and TraceEvent.
Referenced by GammaImage(), and PreviewImage().
| MagickExport MagickBooleanType HaldClutImage | ( | Image * | image, | |
| const Image * | hald_image | |||
| ) |
Definition at line 2152 of file enhance.c.
References DefaultChannels, and HaldClutImageChannel().
| MagickExport MagickBooleanType HaldClutImageChannel | ( | Image * | image, | |
| const ChannelType | channel, | |||
| const Image * | hald_image | |||
| ) |
Definition at line 2158 of file enhance.c.
References AcquireCacheView(), AcquireResampleFilterThreadSet(), _MagickPixelPacket::blue, BlueChannel, CMYKColorspace, _Image::colorspace, _Image::columns, _Image::debug, DestroyCacheView(), DestroyResampleFilterThreadSet(), DirectClass, _Image::exception, _Image::filename, GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetMagickModule, GetMagickPixelPacket(), GetOpenMPThreadId(), _MagickPixelPacket::green, GreenChannel, HaldClutImageTag, _MagickPixelPacket::index, IndexChannel, LogMagickEvent(), MagickFalse, MagickMin(), MagickPixelCompositeAreaBlend(), MagickSignature, MagickTrue, _Image::matte, _MagickPixelPacket::opacity, OpacityChannel, OpaqueAlphaChannel, _Image::progress_monitor, QuantumScale, _MagickPixelPacket::red, RedChannel, ResamplePixelColor(), RoundToQuantum(), _Image::rows, SetImageAlphaChannel(), SetImageProgress(), SetImageStorageClass(), _Image::signature, SyncCacheViewAuthenticPixels(), and TraceEvent.
Referenced by HaldClutImage().
| MagickExport MagickBooleanType LevelColorsImage | ( | Image * | image, | |
| const MagickPixelPacket * | black_color, | |||
| const MagickPixelPacket * | white_color, | |||
| const MagickBooleanType | invert | |||
| ) |
Definition at line 2777 of file enhance.c.
References DefaultChannels, and LevelColorsImageChannel().
Referenced by SetImageAlphaChannel().
| MagickExport MagickBooleanType LevelColorsImageChannel | ( | Image * | image, | |
| const ChannelType | channel, | |||
| const MagickPixelPacket * | black_color, | |||
| const MagickPixelPacket * | white_color, | |||
| const MagickBooleanType | invert | |||
| ) |
Definition at line 2789 of file enhance.c.
References _MagickPixelPacket::blue, BlueChannel, CMYKColorspace, _Image::colorspace, _Image::debug, _Image::filename, GetMagickModule, _MagickPixelPacket::green, GreenChannel, _MagickPixelPacket::index, IndexChannel, LevelImageChannel(), LevelizeImageChannel(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _Image::matte, _MagickPixelPacket::opacity, OpacityChannel, _MagickPixelPacket::red, RedChannel, _Image::signature, and TraceEvent.
Referenced by LevelColorsImage(), and LevelImageColors().
| MagickExport MagickBooleanType LevelImage | ( | Image * | image, | |
| const char * | levels | |||
| ) |
Definition at line 2364 of file enhance.c.
References AspectValue, _Image::columns, DefaultChannels, LevelImageChannel(), LevelizeImage(), MagickFalse, ParseGeometry(), PercentValue, QuantumRange, _GeometryInfo::rho, _Image::rows, _GeometryInfo::sigma, SigmaValue, _GeometryInfo::xi, and XiValue.
Referenced by AdaptiveBlurImageChannel(), and AdaptiveSharpenImageChannel().
| MagickExport MagickBooleanType LevelImageChannel | ( | Image * | image, | |
| const ChannelType | channel, | |||
| const double | black_point, | |||
| const double | white_point, | |||
| const double | gamma | |||
| ) |
Definition at line 2462 of file enhance.c.
References AcquireCacheView(), _PixelPacket::blue, BlueChannel, CMYKColorspace, _Image::colormap, _Image::colors, _Image::colorspace, _Image::columns, _Image::debug, DestroyCacheView(), _Image::exception, _Image::filename, GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetMagickModule, _PixelPacket::green, GreenChannel, IndexChannel, LevelImageTag, LevelValue, LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _Image::matte, _PixelPacket::opacity, OpacityChannel, _Image::progress_monitor, PseudoClass, _PixelPacket::red, RedChannel, _Image::rows, SetImageProgress(), _Image::signature, _Image::storage_class, SyncCacheViewAuthenticPixels(), and TraceEvent.
Referenced by AutoGammaImageChannel(), LevelColorsImageChannel(), LevelImage(), LinearStretchImage(), and MinMaxStretchImage().
| MagickExport MagickBooleanType LevelizeImage | ( | Image * | image, | |
| const double | black_point, | |||
| const double | white_point, | |||
| const double | gamma | |||
| ) |
Definition at line 2451 of file enhance.c.
References DefaultChannels, and LevelizeImageChannel().
Referenced by LevelImage().
| MagickExport MagickBooleanType LevelizeImageChannel | ( | Image * | image, | |
| const ChannelType | channel, | |||
| const double | black_point, | |||
| const double | white_point, | |||
| const double | gamma | |||
| ) |
Definition at line 2618 of file enhance.c.
References AcquireCacheView(), _PixelPacket::blue, BlueChannel, CMYKColorspace, _Image::colormap, _Image::colors, _Image::colorspace, _Image::columns, _Image::debug, _Image::exception, _Image::filename, GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetMagickModule, _PixelPacket::green, GreenChannel, IndexChannel, LevelizeImageTag, LevelizeValue, LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _Image::matte, _PixelPacket::opacity, OpacityChannel, _Image::progress_monitor, PseudoClass, _PixelPacket::red, RedChannel, _Image::rows, SetImageProgress(), _Image::signature, _Image::storage_class, SyncCacheViewAuthenticPixels(), and TraceEvent.
Referenced by LevelColorsImageChannel(), and LevelizeImage().
| MagickExport MagickBooleanType LinearStretchImage | ( | Image * | image, | |
| const double | black_point, | |||
| const double | white_point | |||
| ) |
Definition at line 2875 of file enhance.c.
References AcquireQuantumMemory(), _Image::columns, DefaultChannels, _Image::exception, _Image::filename, GetVirtualPixels(), LevelImageChannel(), MagickSignature, MaxMap, PixelIntensityToQuantum(), RelinquishMagickMemory(), ResetMagickMemory(), ResourceLimitError, _Image::rows, ScaleQuantumToMap(), _Image::signature, and ThrowBinaryException.
| static size_t MagickMin | ( | const size_t | x, | |
| const size_t | y | |||
| ) | [inline, static] |
Definition at line 2145 of file enhance.c.
Referenced by HaldClutImageChannel().
| static void ModulateHSB | ( | const double | percent_hue, | |
| const double | percent_saturation, | |||
| const double | percent_brightness, | |||
| Quantum * | red, | |||
| Quantum * | green, | |||
| Quantum * | blue | |||
| ) | [static] |
Definition at line 2984 of file enhance.c.
References ConvertHSBToRGB(), and ConvertRGBToHSB().
Referenced by ModulateImage().
| static void ModulateHSL | ( | const double | percent_hue, | |
| const double | percent_saturation, | |||
| const double | percent_lightness, | |||
| Quantum * | red, | |||
| Quantum * | green, | |||
| Quantum * | blue | |||
| ) | [static] |
Definition at line 3010 of file enhance.c.
References ConvertHSLToRGB(), and ConvertRGBToHSL().
Referenced by ModulateImage().
| static void ModulateHWB | ( | const double | percent_hue, | |
| const double | percent_whiteness, | |||
| const double | percent_blackness, | |||
| Quantum * | red, | |||
| Quantum * | green, | |||
| Quantum * | blue | |||
| ) | [static] |
Definition at line 3036 of file enhance.c.
References ConvertHWBToRGB(), and ConvertRGBToHWB().
Referenced by ModulateImage().
| MagickExport MagickBooleanType ModulateImage | ( | Image * | image, | |
| const char * | modulate | |||
| ) |
Definition at line 3060 of file enhance.c.
References AcquireCacheView(), _PixelPacket::blue, _Image::colormap, _Image::colors, _Image::columns, _Image::debug, DestroyCacheView(), _Image::exception, _Image::filename, GetCacheViewAuthenticPixels(), GetImageArtifact(), GetMagickModule, _PixelPacket::green, HSBColorspace, HSLColorspace, HWBColorspace, LogMagickEvent(), MagickColorspaceOptions, MagickFalse, MagickSignature, MagickTrue, ModulateHSB(), ModulateHSL(), ModulateHWB(), ModulateImageTag, ParseGeometry(), ParseMagickOption(), _Image::progress_monitor, PseudoClass, _PixelPacket::red, _GeometryInfo::rho, _Image::rows, SetImageProgress(), _GeometryInfo::sigma, SigmaValue, _Image::signature, _Image::storage_class, SyncCacheViewAuthenticPixels(), TraceEvent, UndefinedColorspace, _GeometryInfo::xi, and XiValue.
Referenced by PreviewImage().
| MagickExport MagickBooleanType NegateImage | ( | Image * | image, | |
| const MagickBooleanType | grayscale | |||
| ) |
Definition at line 3256 of file enhance.c.
References DefaultChannels, and NegateImageChannel().
Referenced by CharcoalImage(), ClipImagePath(), DrawClipPath(), and SketchImage().
| MagickExport MagickBooleanType NegateImageChannel | ( | Image * | image, | |
| const ChannelType | channel, | |||
| const MagickBooleanType | grayscale | |||
| ) |
Definition at line 3266 of file enhance.c.
References AcquireCacheView(), _PixelPacket::blue, BlueChannel, CMYKColorspace, _Image::colormap, _Image::colors, _Image::colorspace, _Image::columns, _Image::debug, DestroyCacheView(), _Image::exception, _Image::filename, GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetMagickModule, _PixelPacket::green, GreenChannel, IndexChannel, LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, NegateImageTag, OpacityChannel, _Image::progress_monitor, PseudoClass, QuantumRange, _PixelPacket::red, RedChannel, _Image::rows, SetImageProgress(), _Image::signature, _Image::storage_class, SyncCacheViewAuthenticPixels(), and TraceEvent.
Referenced by MontageImageList(), and NegateImage().
| MagickExport MagickBooleanType NormalizeImage | ( | Image * | image | ) |
Definition at line 3481 of file enhance.c.
References DefaultChannels, and NormalizeImageChannel().
Referenced by CharcoalImage(), SepiaToneImage(), and SketchImage().
| MagickExport MagickBooleanType NormalizeImageChannel | ( | Image * | image, | |
| const ChannelType | channel | |||
| ) |
Definition at line 3490 of file enhance.c.
References _Image::columns, ContrastStretchImageChannel(), and _Image::rows.
Referenced by NormalizeImage().
| MagickExport MagickBooleanType SigmoidalContrastImage | ( | Image * | image, | |
| const MagickBooleanType | sharpen, | |||
| const char * | levels | |||
| ) |
Definition at line 3544 of file enhance.c.
References DefaultChannels, ParseGeometry(), PercentValue, QuantumRange, _GeometryInfo::rho, _GeometryInfo::sigma, SigmaValue, and SigmoidalContrastImageChannel().
| MagickExport MagickBooleanType SigmoidalContrastImageChannel | ( | Image * | image, | |
| const ChannelType | channel, | |||
| const MagickBooleanType | sharpen, | |||
| const double | contrast, | |||
| const double | midpoint | |||
| ) |
Definition at line 3566 of file enhance.c.
References AcquireCacheView(), AcquireQuantumMemory(), _PixelPacket::blue, BlueChannel, CMYKColorspace, _Image::colormap, _Image::colors, _Image::colorspace, _Image::columns, _Image::debug, DestroyCacheView(), _Image::exception, _Image::filename, GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetMagickModule, _PixelPacket::green, GreenChannel, IndexChannel, LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, MaxMap, _PixelPacket::opacity, OpacityChannel, _Image::progress_monitor, PseudoClass, QuantumRange, QuantumScale, _PixelPacket::red, RedChannel, RelinquishMagickMemory(), ResetMagickMemory(), ResourceLimitError, RoundToQuantum(), _Image::rows, ScaleMapToQuantum(), ScaleQuantumToMap(), SetImageProgress(), SigmoidalContrastImageTag, _Image::signature, _Image::storage_class, SyncCacheViewAuthenticPixels(), ThrowBinaryException, and TraceEvent.
Referenced by SigmoidalContrastImage().
1.6.1