MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
|
#include "MagickCore/studio.h"
#include "MagickCore/artifact.h"
#include "MagickCore/cache.h"
#include "MagickCore/cache-private.h"
#include "MagickCore/cache-view.h"
#include "MagickCore/channel.h"
#include "MagickCore/client.h"
#include "MagickCore/color.h"
#include "MagickCore/color-private.h"
#include "MagickCore/colorspace.h"
#include "MagickCore/colorspace-private.h"
#include "MagickCore/composite.h"
#include "MagickCore/composite-private.h"
#include "MagickCore/constitute.h"
#include "MagickCore/draw.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/fx.h"
#include "MagickCore/gem.h"
#include "MagickCore/geometry.h"
#include "MagickCore/image.h"
#include "MagickCore/image-private.h"
#include "MagickCore/list.h"
#include "MagickCore/log.h"
#include "MagickCore/memory_.h"
#include "MagickCore/monitor.h"
#include "MagickCore/monitor-private.h"
#include "MagickCore/morphology.h"
#include "MagickCore/option.h"
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/property.h"
#include "MagickCore/quantum.h"
#include "MagickCore/resample.h"
#include "MagickCore/resource_.h"
#include "MagickCore/string_.h"
#include "MagickCore/thread-private.h"
#include "MagickCore/threshold.h"
#include "MagickCore/token.h"
#include "MagickCore/transform.h"
#include "MagickCore/utility.h"
#include "MagickCore/utility-private.h"
#include "MagickCore/version.h"
Go to the source code of this file.
Macros | |
#define | FreeDivergentResources() |
#define | CompositeImageTag "Composite/Image" |
#define | CompositeImageTag "Composite/Image" |
#define | TextureImageTag "Texture/Image" |
Functions | |
static Image * | BlendConvolveImage (const Image *image, const char *kernel, ExceptionInfo *exception) |
static Image * | BlendMagnitudeImage (const Image *dx_image, const Image *dy_image, ExceptionInfo *exception) |
static Image * | BlendMaxMagnitudeImage (const Image *alpha_image, const Image *beta_image, const Image *dx_image, const Image *dy_image, ExceptionInfo *exception) |
static Image * | BlendSumImage (const Image *alpha_image, const Image *beta_image, const double attenuate, const double sign, ExceptionInfo *exception) |
static Image * | BlendDivergentImage (const Image *alpha_image, const Image *beta_image, ExceptionInfo *exception) |
static MagickBooleanType | BlendMaskAlphaChannel (Image *image, const Image *mask_image, ExceptionInfo *exception) |
static Image * | BlendMeanImage (Image *image, const Image *mask_image, ExceptionInfo *exception) |
static MagickBooleanType | BlendRMSEResidual (const Image *alpha_image, const Image *beta_image, double *residual, ExceptionInfo *exception) |
static void | CompositeHCL (const MagickRealType red, const MagickRealType green, const MagickRealType blue, MagickRealType *hue, MagickRealType *chroma, MagickRealType *luma) |
static MagickBooleanType | CompositeOverImage (Image *image, const Image *source_image, const MagickBooleanType clip_to_self, const ssize_t x_offset, const ssize_t y_offset, ExceptionInfo *exception) |
static void | HCLComposite (const MagickRealType hue, const MagickRealType chroma, const MagickRealType luma, MagickRealType *red, MagickRealType *green, MagickRealType *blue) |
static MagickBooleanType | SaliencyBlendImage (Image *image, const Image *source_image, const ssize_t x_offset, const ssize_t y_offset, const double iterations, const double residual_threshold, const size_t tick, ExceptionInfo *exception) |
static MagickBooleanType | SeamlessBlendImage (Image *image, const Image *source_image, const ssize_t x_offset, const ssize_t y_offset, const double iterations, const double residual_threshold, const size_t tick, ExceptionInfo *exception) |
MagickExport MagickBooleanType | CompositeImage (Image *image, const Image *composite, const CompositeOperator compose, const MagickBooleanType clip_to_self, const ssize_t x_offset, const ssize_t y_offset, ExceptionInfo *exception) |
MagickExport MagickBooleanType | TextureImage (Image *image, const Image *texture, ExceptionInfo *exception) |
#define CompositeImageTag "Composite/Image" |
#define CompositeImageTag "Composite/Image" |
#define FreeDivergentResources | ( | ) |
#define TextureImageTag "Texture/Image" |
|
static |
Definition at line 184 of file composite.c.
References AcquireKernelInfo(), CloneImage(), ConvolveImage(), DestroyImage(), DestroyKernelInfo(), MagickTrue, OffAlphaChannel, and SetImageAlphaChannel().
Referenced by BlendDivergentImage().
|
static |
Definition at line 489 of file composite.c.
References BlendConvolveImage(), BlendMagnitudeImage(), BlendMaxMagnitudeImage(), BlendSumImage(), DestroyImage(), and FreeDivergentResources.
Referenced by SaliencyBlendImage().
|
static |
Definition at line 213 of file composite.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), ClampToQuantum(), CloneImage(), _Image::columns, DestroyCacheView(), DestroyImage(), GetCacheViewAuthenticPixels(), GetCacheViewVirtualPixels(), GetPixelChannel(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), magick_restrict, MagickFalse, MagickTrue, _Image::rows, SyncCacheViewAuthenticPixels(), UndefinedPixelTrait, and UpdatePixelTrait.
Referenced by BlendDivergentImage().
|
static |
Definition at line 615 of file composite.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), AlphaPixelChannel, _Image::columns, DestroyCacheView(), GetCacheViewAuthenticPixels(), GetCacheViewVirtualPixels(), GetPixelAlpha(), GetPixelChannelOffset(), GetPixelChannels(), magick_restrict, MagickEpsilon, MagickFalse, MagickTrue, OpaqueAlpha, _Image::rows, SetImageAlpha(), and SyncCacheViewAuthenticPixels().
Referenced by SaliencyBlendImage(), and SeamlessBlendImage().
|
static |
Definition at line 299 of file composite.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), CloneImage(), _Image::columns, DestroyCacheView(), DestroyImage(), GetCacheViewAuthenticPixels(), GetCacheViewVirtualPixels(), GetPixelChannel(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), magick_restrict, MagickFalse, MagickTrue, _Image::rows, SyncCacheViewAuthenticPixels(), UndefinedPixelTrait, and UpdatePixelTrait.
Referenced by BlendDivergentImage().
|
static |
Definition at line 680 of file composite.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), ClampToQuantum(), CloneImage(), _Image::columns, DestroyCacheView(), DestroyImage(), GetCacheViewAuthenticPixels(), GetCacheViewVirtualPixels(), GetPixelAlpha(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), GetPixelReadMask(), magick_restrict, MagickEpsilon, MagickFalse, MagickTrue, MaxPixelChannels, QuantumRange, QuantumScale, _Image::rows, SyncCacheViewAuthenticPixels(), and UndefinedPixelTrait.
Referenced by SaliencyBlendImage(), and SeamlessBlendImage().
|
static |
Definition at line 807 of file composite.c.
References AcquireVirtualCacheView(), AlphaPixelChannel, _Image::columns, DestroyCacheView(), GetCacheViewVirtualPixels(), GetImageChannels(), GetPixelAlpha(), GetPixelChannel(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), GetPixelReadMask(), magick_restrict, MagickFalse, MagickMax, MagickTrue, PerceptibleReciprocal(), QuantumRange, QuantumScale, _Image::rows, UndefinedPixelTrait, and UpdatePixelTrait.
Referenced by SaliencyBlendImage(), and SeamlessBlendImage().
|
static |
Definition at line 402 of file composite.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), ClampToQuantum(), CloneImage(), _Image::columns, DestroyCacheView(), DestroyImage(), GetCacheViewAuthenticPixels(), GetCacheViewVirtualPixels(), GetPixelChannel(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), magick_restrict, MagickFalse, MagickTrue, _Image::rows, SyncCacheViewAuthenticPixels(), UndefinedPixelTrait, and UpdatePixelTrait.
Referenced by BlendDivergentImage(), SaliencyBlendImage(), and SeamlessBlendImage().
|
static |
Definition at line 915 of file composite.c.
References MagickMax, MagickMin, and QuantumScale.
Referenced by CompositeImage().
MagickExport MagickBooleanType CompositeImage | ( | Image * | image, |
const Image * | composite, | ||
const CompositeOperator | compose, | ||
const MagickBooleanType | clip_to_self, | ||
const ssize_t | x_offset, | ||
const ssize_t | y_offset, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1525 of file composite.c.
References AcquireAuthenticCacheView(), AcquireResampleFilter(), AcquireVirtualCacheView(), _PixelInfo::alpha, _Image::alpha_trait, AlphaCompositeOp, AlphaPixelChannel, AspectValue, AtopCompositeOp, BlackPixelChannel, BlendCompositeOp, _PixelInfo::blue, BluePixelChannel, BlurCompositeOp, BumpmapCompositeOp, ChangeMaskCompositeOp, ClampPixel(), ClampToQuantum(), ClearCompositeOp, CloneImage(), ColorBurnCompositeOp, ColorDodgeCompositeOp, ColorizeCompositeOp, _Image::colorspace, _Image::columns, CompositeHCL(), CompositeImageTag, CompositeOverImage(), CopyAlphaCompositeOp, CopyBlackCompositeOp, CopyBlueCompositeOp, CopyCompositeOp, CopyCyanCompositeOp, CopyGreenCompositeOp, CopyMagentaCompositeOp, CopyPixelTrait, CopyRedCompositeOp, CopyYellowCompositeOp, DarkenCompositeOp, DarkenIntensityCompositeOp, DegreesToRadians(), DestroyCacheView(), DestroyImage(), DestroyResampleFilter(), DifferenceCompositeOp, DirectClass, DisplaceCompositeOp, DissolveCompositeOp, DistortCompositeOp, DivideDstCompositeOp, DivideSrcCompositeOp, DstAtopCompositeOp, DstCompositeOp, DstInCompositeOp, DstOutCompositeOp, DstOverCompositeOp, ExclusionCompositeOp, _Image::filename, FreezeCompositeOp, GaussianFilter, GetCacheViewAuthenticPixels(), GetCacheViewVirtualPixels(), GetImageArtifact(), GetMagickModule, GetOneVirtualPixel(), GetPixelAlpha(), GetPixelBlack(), GetPixelBlue(), GetPixelChannel(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), GetPixelGreen(), GetPixelInfo(), GetPixelInfoPixel(), GetPixelIntensity(), GetPixelReadMask(), GetPixelRed(), _PixelInfo::green, GreenPixelChannel, HardLightCompositeOp, HardMixCompositeOp, HCLComposite(), HeightValue, HueCompositeOp, InCompositeOp, IntensityCompositeOp, InterpolateCompositeOp, InterpolatePixelInfo(), IsEventLogging(), IsFuzzyEquivalencePixel(), IsStringTrue(), LightenCompositeOp, LightenIntensityCompositeOp, LinearBurnCompositeOp, LinearDodgeCompositeOp, LinearLightCompositeOp, LogMagickEvent(), LuminizeCompositeOp, magick_restrict, MagickCoreSignature, MagickEpsilon, MagickFalse, MagickMax, MagickMin, MagickPI, MagickTrue, MathematicsCompositeOp, MaxPixelChannels, MinusDstCompositeOp, MinusSrcCompositeOp, ModulateCompositeOp, ModulusAddCompositeOp, ModulusSubtractCompositeOp, MultiplyCompositeOp, NegateCompositeOp, NoCompositeOp, NoValue, OpaqueAlphaChannel, OptionError, OptionWarning, OutCompositeOp, OverCompositeOp, OverlayCompositeOp, ParseGeometry(), PegtopLightCompositeOp, PercentValue, PerceptibleReciprocal(), PinLightCompositeOp, PlusCompositeOp, _Image::progress_monitor, _GeometryInfo::psi, QuantumRange, QuantumScale, QueueCacheViewAuthenticPixels(), _PixelInfo::red, RedPixelChannel, ReflectCompositeOp, ReplaceCompositeOp, ResamplePixelColor(), _GeometryInfo::rho, RMSECompositeOp, RoundToUnity(), _Image::rows, SaliencyBlendCompositeOp, SaliencyBlendImage(), SaturateCompositeOp, ScaleResampleFilter(), ScreenCompositeOp, SeamlessBlendCompositeOp, SeamlessBlendImage(), SetGeometryInfo(), SetImageAlphaChannel(), SetImageColorspace(), SetImageProgress(), SetImageStorageClass(), SetPixelAlpha(), SetPixelChannel(), SetPixelViaPixelInfo(), SetResampleFilter(), _GeometryInfo::sigma, SigmaValue, _Image::signature, SoftBurnCompositeOp, SoftDodgeCompositeOp, SoftLightCompositeOp, SrcAtopCompositeOp, SrcCompositeOp, SrcInCompositeOp, SrcOutCompositeOp, SrcOverCompositeOp, StampCompositeOp, StereoCompositeOp, SyncCacheViewAuthenticPixels(), ThresholdCompositeOp, ThrowMagickException(), TraceEvent, TransparentAlpha, UndefinedInterpolatePixel, UndefinedPixelTrait, UpdatePixelTrait, VividLightCompositeOp, WidthValue, _PointInfo::x, _SegmentInfo::x1, _SegmentInfo::x2, _GeometryInfo::xi, XiValue, XorCompositeOp, XValue, _PointInfo::y, _SegmentInfo::y1, _SegmentInfo::y2, and YValue.
Referenced by CoalesceImages(), CompareImages(), CompareImagesLayers(), CompositeCanvas(), DisposeImages(), DistortResizeImage(), DrawPrimitive(), ExtentImage(), FrameImage(), MergeImageLayers(), MontageImageList(), MorphologyApply(), OptimizeImageTransparency(), PolaroidImage(), RenderPostscript(), SetImageAlphaChannel(), SketchImage(), SmushImages(), TextureImage(), and VignetteImage().
|
static |
Definition at line 955 of file composite.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), AlphaPixelChannel, ClampPixel(), ClampToQuantum(), _Image::columns, CompositeImageTag, CopyPixelTrait, DestroyCacheView(), GetCacheViewAuthenticPixels(), GetCacheViewVirtualPixels(), GetImageArtifact(), GetOneVirtualPixel(), GetPixelAlpha(), GetPixelChannel(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), GetPixelInfo(), IsStringTrue(), magick_restrict, MagickFalse, MagickTrue, MaxPixelChannels, PerceptibleReciprocal(), _Image::progress_monitor, QuantumRange, QuantumScale, _Image::rows, SetImageProgress(), SyncCacheViewAuthenticPixels(), TransparentAlpha, and UndefinedPixelTrait.
Referenced by CompositeImage(), SaliencyBlendImage(), and SeamlessBlendImage().
|
static |
Definition at line 1196 of file composite.c.
References QuantumRange.
Referenced by CompositeImage().
|
static |
Definition at line 1262 of file composite.c.
References AcquireKernelInfo(), BlendDivergentImage(), BlendMaskAlphaChannel(), BlendMeanImage(), BlendRMSEResidual(), BlendSumImage(), CloneImage(), _Image::columns, CompositeOverImage(), ConvolveImage(), CropImage(), DestroyImage(), DestroyKernelInfo(), FormatLocaleFile(), GetImageArtifact(), IsStringTrue(), MagickFalse, MagickMax, MagickTrue, ResetImagePage(), _Image::rows, and SetImageArtifact().
Referenced by CompositeImage().
|
static |
Definition at line 1392 of file composite.c.
References AcquireKernelInfo(), BlendMaskAlphaChannel(), BlendMeanImage(), BlendRMSEResidual(), BlendSumImage(), CloneImage(), _Image::columns, CompositeOverImage(), ConvolveImage(), CropImage(), DestroyImage(), DestroyKernelInfo(), FormatLocaleFile(), GetImageArtifact(), IsStringTrue(), MagickFalse, MagickMax, MagickTrue, ReadPixelMask, ResetImagePage(), _Image::rows, SetImageArtifact(), and SetImageMask().
Referenced by CompositeImage().
MagickExport MagickBooleanType TextureImage | ( | Image * | image, |
const Image * | texture, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 3652 of file composite.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), _Image::alpha_trait, CloneImage(), _Image::colorspace, _Image::columns, _Image::compose, CompositeImage(), CopyCompositeOp, DestroyCacheView(), DestroyImage(), DirectClass, GetCacheViewVirtualPixels(), GetMagickModule, GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, OverCompositeOp, _Image::progress_monitor, QueueCacheViewAuthenticPixels(), _Image::rows, SetImageProgress(), SetImageStorageClass(), SetImageVirtualPixelMethod(), SetPixelChannel(), _Image::signature, SyncCacheViewAuthenticPixels(), TextureImageTag, _Image::tile_offset, TileVirtualPixelMethod, TraceEvent, TransformImageColorspace(), UndefinedPixelTrait, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by MontageImageList().