MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
effect.c File Reference
#include "MagickCore/studio.h"
#include "MagickCore/accelerate-private.h"
#include "MagickCore/blob.h"
#include "MagickCore/cache-view.h"
#include "MagickCore/color.h"
#include "MagickCore/color-private.h"
#include "MagickCore/colorspace.h"
#include "MagickCore/constitute.h"
#include "MagickCore/decorate.h"
#include "MagickCore/distort.h"
#include "MagickCore/draw.h"
#include "MagickCore/enhance.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/effect.h"
#include "MagickCore/fx.h"
#include "MagickCore/gem.h"
#include "MagickCore/gem-private.h"
#include "MagickCore/geometry.h"
#include "MagickCore/image-private.h"
#include "MagickCore/list.h"
#include "MagickCore/log.h"
#include "MagickCore/matrix.h"
#include "MagickCore/memory_.h"
#include "MagickCore/memory-private.h"
#include "MagickCore/monitor.h"
#include "MagickCore/monitor-private.h"
#include "MagickCore/montage.h"
#include "MagickCore/morphology.h"
#include "MagickCore/morphology-private.h"
#include "MagickCore/paint.h"
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/property.h"
#include "MagickCore/quantize.h"
#include "MagickCore/quantum.h"
#include "MagickCore/quantum-private.h"
#include "MagickCore/random_.h"
#include "MagickCore/random-private.h"
#include "MagickCore/resample.h"
#include "MagickCore/resample-private.h"
#include "MagickCore/resize.h"
#include "MagickCore/resource_.h"
#include "MagickCore/segment.h"
#include "MagickCore/shear.h"
#include "MagickCore/signature-private.h"
#include "MagickCore/statistic.h"
#include "MagickCore/string_.h"
#include "MagickCore/thread-private.h"
#include "MagickCore/transform.h"
#include "MagickCore/threshold.h"
Include dependency graph for effect.c:

Go to the source code of this file.

Macros

#define AdaptiveBlurImageTag   "Convolve/Image"
 
#define MagickSigma   (fabs(sigma) < MagickEpsilon ? MagickEpsilon : sigma)
 
#define AdaptiveSharpenImageTag   "Convolve/Image"
 
#define MagickSigma   (fabs(sigma) < MagickEpsilon ? MagickEpsilon : sigma)
 
#define MaxIntensity   (255)
 
#define BilateralBlurImageTag   "Blur/Image"
 
#define DespeckleImageTag   "Despeckle/Image"
 
#define KuwaharaImageTag   "Kuwahara/Image"
 
#define LocalContrastImageTag   "LocalContrast/Image"
 
#define BlurImageTag   "Blur/Image"
 
#define NumberTiles   9
 
#define PreviewImageTag   "Preview/Image"
 
#define DefaultPreviewGeometry   "204x204+10+10"
 
#define SelectiveBlurImageTag   "SelectiveBlur/Image"
 
#define GetShadeIntensity(image, pixel)    ClampPixel(GetPixelIntensity((image),(pixel)))
 
#define ShadeImageTag   "Shade/Image"
 
#define SpreadImageTag   "Spread/Image"
 
#define SharpenImageTag   "Sharpen/Image"
 

Functions

MagickExport ImageAdaptiveBlurImage (const Image *image, const double radius, const double sigma, ExceptionInfo *exception)
 
MagickExport ImageAdaptiveSharpenImage (const Image *image, const double radius, const double sigma, ExceptionInfo *exception)
 
MagickExport ImageBlurImage (const Image *image, const double radius, const double sigma, ExceptionInfo *exception)
 
static double BlurDistance (const ssize_t x, const ssize_t y, const ssize_t u, const ssize_t v)
 
static double BlurGaussian (const double x, const double sigma)
 
static double ** DestroyBilateralTLS (const ssize_t number_threads, double **weights)
 
static double ** AcquireBilateralTLS (const size_t number_threads, const size_t width, const size_t height)
 
MagickExport ImageBilateralBlurImage (const Image *image, const size_t width, const size_t height, const double intensity_sigma, const double spatial_sigma, ExceptionInfo *exception)
 
MagickExport ImageConvolveImage (const Image *image, const KernelInfo *kernel_info, ExceptionInfo *exception)
 
static void Hull (const Image *image, const ssize_t x_offset, const ssize_t y_offset, const size_t columns, const size_t rows, const int polarity, Quantum *magick_restrict f, Quantum *magick_restrict g)
 
MagickExport ImageDespeckleImage (const Image *image, ExceptionInfo *exception)
 
MagickExport ImageEdgeImage (const Image *image, const double radius, ExceptionInfo *exception)
 
MagickExport ImageEmbossImage (const Image *image, const double radius, const double sigma, ExceptionInfo *exception)
 
MagickExport ImageGaussianBlurImage (const Image *image, const double radius, const double sigma, ExceptionInfo *exception)
 
static MagickRealType GetMeanLuma (const Image *magick_restrict image, const double *magick_restrict pixel)
 
MagickExport ImageKuwaharaImage (const Image *image, const double radius, const double sigma, ExceptionInfo *exception)
 
MagickExport ImageLocalContrastImage (const Image *image, const double radius, const double strength, ExceptionInfo *exception)
 
static MagickRealTypeGetMotionBlurKernel (const size_t width, const double sigma)
 
MagickExport ImageMotionBlurImage (const Image *image, const double radius, const double sigma, const double angle, ExceptionInfo *exception)
 
MagickExport ImagePreviewImage (const Image *image, const PreviewType preview, ExceptionInfo *exception)
 
MagickExport ImageRotationalBlurImage (const Image *image, const double angle, ExceptionInfo *exception)
 
MagickExport ImageSelectiveBlurImage (const Image *image, const double radius, const double sigma, const double threshold, ExceptionInfo *exception)
 
MagickExport ImageShadeImage (const Image *image, const MagickBooleanType gray, const double azimuth, const double elevation, ExceptionInfo *exception)
 
MagickExport ImageSharpenImage (const Image *image, const double radius, const double sigma, ExceptionInfo *exception)
 
MagickExport ImageSpreadImage (const Image *image, const PixelInterpolateMethod method, const double radius, ExceptionInfo *exception)
 
MagickExport ImageUnsharpMaskImage (const Image *image, const double radius, const double sigma, const double gain, const double threshold, ExceptionInfo *exception)
 

Macro Definition Documentation

◆ AdaptiveBlurImageTag

#define AdaptiveBlurImageTag   "Convolve/Image"

◆ AdaptiveSharpenImageTag

#define AdaptiveSharpenImageTag   "Convolve/Image"

◆ BilateralBlurImageTag

#define BilateralBlurImageTag   "Blur/Image"

◆ BlurImageTag

#define BlurImageTag   "Blur/Image"

◆ DefaultPreviewGeometry

#define DefaultPreviewGeometry   "204x204+10+10"

◆ DespeckleImageTag

#define DespeckleImageTag   "Despeckle/Image"

◆ GetShadeIntensity

#define GetShadeIntensity (   image,
  pixel 
)     ClampPixel(GetPixelIntensity((image),(pixel)))

◆ KuwaharaImageTag

#define KuwaharaImageTag   "Kuwahara/Image"

◆ LocalContrastImageTag

#define LocalContrastImageTag   "LocalContrast/Image"

◆ MagickSigma [1/2]

#define MagickSigma   (fabs(sigma) < MagickEpsilon ? MagickEpsilon : sigma)

◆ MagickSigma [2/2]

#define MagickSigma   (fabs(sigma) < MagickEpsilon ? MagickEpsilon : sigma)

◆ MaxIntensity

#define MaxIntensity   (255)

◆ NumberTiles

#define NumberTiles   9

◆ PreviewImageTag

#define PreviewImageTag   "Preview/Image"

◆ SelectiveBlurImageTag

#define SelectiveBlurImageTag   "SelectiveBlur/Image"

◆ ShadeImageTag

#define ShadeImageTag   "Shade/Image"

◆ SharpenImageTag

#define SharpenImageTag   "Sharpen/Image"

◆ SpreadImageTag

#define SpreadImageTag   "Spread/Image"

Function Documentation

◆ AcquireBilateralTLS()

static double ** AcquireBilateralTLS ( const size_t  number_threads,
const size_t  width,
const size_t  height 
)
static

Definition at line 876 of file effect.c.

References AcquireQuantumMemory(), and DestroyBilateralTLS().

Referenced by BilateralBlurImage().

◆ AdaptiveBlurImage()

◆ AdaptiveSharpenImage()

◆ BilateralBlurImage()

◆ BlurDistance()

static double BlurDistance ( const ssize_t  x,
const ssize_t  y,
const ssize_t  u,
const ssize_t  v 
)
inlinestatic

Definition at line 850 of file effect.c.

Referenced by BilateralBlurImage().

◆ BlurGaussian()

static double BlurGaussian ( const double  x,
const double  sigma 
)
inlinestatic

Definition at line 856 of file effect.c.

References Magick2PI, and PerceptibleReciprocal().

Referenced by BilateralBlurImage().

◆ BlurImage()

◆ ConvolveImage()

MagickExport Image * ConvolveImage ( const Image image,
const KernelInfo kernel_info,
ExceptionInfo exception 
)

◆ DespeckleImage()

◆ DestroyBilateralTLS()

static double ** DestroyBilateralTLS ( const ssize_t  number_threads,
double **  weights 
)
static

Definition at line 862 of file effect.c.

References RelinquishMagickMemory().

Referenced by AcquireBilateralTLS(), and BilateralBlurImage().

◆ EdgeImage()

◆ EmbossImage()

◆ GaussianBlurImage()

◆ GetMeanLuma()

static MagickRealType GetMeanLuma ( const Image *magick_restrict  image,
const double *magick_restrict  pixel 
)
inlinestatic

Definition at line 1776 of file effect.c.

References BluePixelChannel, GreenPixelChannel, and RedPixelChannel.

Referenced by KuwaharaImage().

◆ GetMotionBlurKernel()

static MagickRealType * GetMotionBlurKernel ( const size_t  width,
const double  sigma 
)
static

◆ Hull()

static void Hull ( const Image image,
const ssize_t  x_offset,
const ssize_t  y_offset,
const size_t  columns,
const size_t  rows,
const int  polarity,
Quantum *magick_restrict  f,
Quantum *magick_restrict  g 
)
static

◆ KuwaharaImage()

◆ LocalContrastImage()

◆ MotionBlurImage()

◆ PreviewImage()

MagickExport Image * PreviewImage ( const Image image,
const PreviewType  preview,
ExceptionInfo exception 
)

Definition at line 2606 of file effect.c.

References AcquireImageInfo(), AcquireUniqueFileResource(), AddNoisePreview, AllCompliance, _Image::alpha_trait, AppendImageToList(), BilevelImage(), BlurImage(), BlurPreview, BrightnessPreview, CharcoalDrawingPreview, CharcoalImage(), CloneImage(), CloneMontageInfo(), CloneString(), _QuantizeInfo::colorspace, _Image::columns, ContrastImage(), CopyMagickString(), DefaultPreviewGeometry, DefaultTileFrame, DefaultTileLabel, DeleteImageProperty(), DespeckleImage(), DespecklePreview, DestroyImage(), DestroyImageInfo(), DestroyImageList(), DestroyMontageInfo(), _Image::directory, DullPreview, EdgeDetectPreview, EdgeImage(), _Image::filename, _ImageInfo::filename, _MontageInfo::filename, FormatLocaleString(), _MontageInfo::frame, GammaImage(), GammaPreview, _MontageInfo::geometry, GetBlobSize(), GetMagickModule, GetQuantizeInfo(), GRAYColorspace, GrayscalePreview, _RectangleInfo::height, HuePreview, ImplodeImage(), ImplodePreview, _Image::interpolate, IsEventLogging(), JPEGPreview, LogMagickEvent(), _Image::magick, MagickCoreSignature, MagickFalse, MagickPathExtent, MagickTrue, _Image::matte_color, ModulateImage(), _Image::montage, MontageImages(), NewImageList(), NonpeakStatistic, _QuantizeInfo::number_colors, NumberTiles, OilPaintImage(), OilPaintPreview, ParseMetaGeometry(), PreviewImageTag, _ImageInfo::quality, QuantizeImage(), QuantizePreview, QuantumRange, QueryColorCompliance(), RaiseImage(), RaisePreview, ReadImage(), ReduceNoisePreview, RelinquishMagickMemory(), RelinquishUniqueFileResource(), ResourceLimitError, RollImage(), RollPreview, RotateImage(), RotatePreview, _Image::rows, SaturationPreview, SegmentImage(), SegmentPreview, SetGeometry(), SetImageProgress(), SetImageProgressMonitor(), SetImageProperty(), ShadeImage(), ShadePreview, _MontageInfo::shadow, SharpenImage(), SharpenPreview, ShearImage(), ShearPreview, _Image::signature, SolarizeImage(), SolarizePreview, SpiffPreview, SpreadImage(), SpreadPreview, sRGBColorspace, StatisticImage(), SwirlImage(), SwirlPreview, ThresholdPreview, ThrowImageException, ThumbnailImage(), _MontageInfo::tile, TraceEvent, UndefinedPixelTrait, WaveImage(), WavePreview, _RectangleInfo::width, WriteImage(), _RectangleInfo::x, and _RectangleInfo::y.

◆ RotationalBlurImage()

◆ SelectiveBlurImage()

◆ ShadeImage()

◆ SharpenImage()

◆ SpreadImage()

◆ UnsharpMaskImage()