MagickCore  7.0.3
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/pixel-private.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 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 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)
 
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

#define AdaptiveBlurImageTag   "Convolve/Image"

Referenced by AdaptiveBlurImage().

#define AdaptiveSharpenImageTag   "Convolve/Image"

Referenced by AdaptiveSharpenImage().

#define BlurImageTag   "Blur/Image"
#define DefaultPreviewGeometry   "204x204+10+10"

Referenced by PreviewImage().

#define DespeckleImageTag   "Despeckle/Image"

Referenced by DespeckleImage().

#define KuwaharaImageTag   "Kuwahara/Image"

Referenced by KuwaharaImage().

#define LocalContrastImageTag   "LocalContrast/Image"
#define MagickSigma   (fabs(sigma) < MagickEpsilon ? MagickEpsilon : sigma)
#define NumberTiles   9

Referenced by PreviewImage().

#define PreviewImageTag   "Preview/Image"

Referenced by PreviewImage().

#define SelectiveBlurImageTag   "SelectiveBlur/Image"

Referenced by SelectiveBlurImage().

#define ShadeImageTag   "Shade/Image"

Referenced by ShadeImage().

#define SharpenImageTag   "Sharpen/Image"

Referenced by UnsharpMaskImage().

#define SpreadImageTag   "Spread/Image"

Referenced by SpreadImage().

Function Documentation

MagickExport Image* ConvolveImage ( const Image image,
const KernelInfo kernel_info,
ExceptionInfo exception 
)
static MagickRealType GetMeanLuma ( const Image *magick_restrict  image,
const double *magick_restrict  pixel 
)
inlinestatic

Definition at line 1432 of file effect.c.

References BluePixelChannel, GreenPixelChannel, and RedPixelChannel.

Referenced by KuwaharaImage().

static MagickRealType* GetMotionBlurKernel ( const size_t  width,
const double  sigma 
)
static
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
MagickExport Image* PreviewImage ( const Image image,
const PreviewType  preview,
ExceptionInfo exception 
)

Definition at line 2240 of file effect.c.

References AcquireImageInfo(), AcquireUniqueFileResource(), AddNoisePreview, AllCompliance, _Image::alpha_color, AppendImageToList(), BilevelImage(), BlurImage(), BlurPreview, BrightnessPreview, CharcoalDrawingPreview, CharcoalImage(), CloneImage(), CloneMontageInfo(), CloneString(), _QuantizeInfo::colorspace, _Image::columns, ContrastImage(), CopyMagickString(), _Image::debug, DefaultPreviewGeometry, DefaultTileFrame, DefaultTileLabel, DeleteImageProperty(), DespeckleImage(), DespecklePreview, DestroyImage(), DestroyImageInfo(), DestroyImageList(), DestroyMontageInfo(), _Image::directory, DullPreview, EdgeDetectPreview, EdgeImage(), _MontageInfo::filename, _Image::filename, _ImageInfo::filename, FormatLocaleString(), _MontageInfo::frame, GammaImage(), GammaPreview, _MontageInfo::geometry, GetBlobSize(), GetMagickModule, GetQuantizeInfo(), GRAYColorspace, GrayscalePreview, _RectangleInfo::height, HuePreview, ImplodeImage(), ImplodePreview, _Image::interpolate, JPEGPreview, LogMagickEvent(), _Image::magick, MagickCoreSignature, MagickFalse, MagickPathExtent, MagickTrue, 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, WaveImage(), WavePreview, _RectangleInfo::width, WriteImage(), _RectangleInfo::x, and _RectangleInfo::y.