#include <math.h>
#include "magick/gem.h"
#include "magick/pixel.h"
Go to the source code of this file.
Defines | |
#define | ClampPixelRed(pixel) ClampToQuantum((pixel)->red) |
#define | ClampPixelGreen(pixel) ClampToQuantum((pixel)->green) |
#define | ClampPixelBlue(pixel) ClampToQuantum((pixel)->blue) |
#define | ClampPixelIndex(indexes) ClampToQuantum(*(indexes)) |
#define | ClampPixelOpacity(pixel) ClampToQuantum((pixel)->opacity) |
#define | GetPixela(pixel) ((pixel)->green) |
#define | GetPixelb(pixel) ((pixel)->blue) |
#define | GetPixelAlpha(pixel) (QuantumRange-(pixel)->opacity) |
#define | GetPixelBlack(indexes) (*(indexes)) |
#define | GetPixelBlue(pixel) ((pixel)->blue) |
#define | GetPixelCb(pixel) ((pixel)->green) |
#define | GetPixelCr(pixel) ((pixel)->blue) |
#define | GetPixelCyan(pixel) ((pixel)->red) |
#define | GetPixelGray(pixel) ((pixel)->red) |
#define | GetPixelGreen(pixel) ((pixel)->green) |
#define | GetPixelIndex(indexes) (*(indexes)) |
#define | GetPixelL(pixel) ((pixel)->red) |
#define | GetPixelLabel(pixel) ((ssize_t) (pixel)->red) |
#define | GetPixelMagenta(pixel) ((pixel)->green) |
#define | GetPixelNext(pixel) ((pixel)+1) |
#define | GetPixelOpacity(pixel) ((pixel)->opacity) |
#define | GetPixelRed(pixel) ((pixel)->red) |
#define | GetPixelRGB(pixel, packet) |
#define | GetPixelRGBO(pixel, packet) |
#define | GetPixelY(pixel) ((pixel)->red) |
#define | GetPixelYellow(pixel) ((pixel)->blue) |
#define | SetPixela(pixel, value) ((pixel)->green=(Quantum) (value)) |
#define | SetPixelAlpha(pixel, value) ((pixel)->opacity=(Quantum) (QuantumRange-(value))) |
#define | SetPixelb(pixel, value) ((pixel)->blue=(Quantum) (value)) |
#define | SetPixelBlack(indexes, value) (*(indexes)=(Quantum) (value)) |
#define | SetPixelBlue(pixel, value) ((pixel)->blue=(Quantum) (value)) |
#define | SetPixelCb(pixel, value) ((pixel)->green=(Quantum) (value)) |
#define | SetPixelCr(pixel, value) ((pixel)->blue=(Quantum) (value)) |
#define | SetPixelCyan(pixel, value) ((pixel)->red=(Quantum) (value)) |
#define | SetPixelGray(pixel, value) ((pixel)->red=(pixel)->green=(pixel)->blue=(Quantum) (value)) |
#define | SetPixelGreen(pixel, value) ((pixel)->green=(Quantum) (value)) |
#define | SetPixelIndex(indexes, value) (*(indexes)=(IndexPacket) (value)) |
#define | SetPixelL(pixel, value) ((pixel)->red=(Quantum) (value)) |
#define | SetPixelMagenta(pixel, value) ((pixel)->green=(Quantum) (value)) |
#define | SetPixelOpacity(pixel, value) ((pixel)->opacity=(Quantum) (value)) |
#define | SetPixelRed(pixel, value) ((pixel)->red=(Quantum) (value)) |
#define | SetPixelRgb(pixel, packet) |
#define | SetPixelRGBA(pixel, packet) |
#define | SetPixelRGBO(pixel, packet) |
#define | SetPixelYellow(pixel, value) ((pixel)->blue=(Quantum) (value)) |
#define | SetPixelY(pixel, value) ((pixel)->red=(Quantum) (value)) |
Functions | |
static MagickRealType | AbsolutePixelValue (const MagickRealType x) |
static Quantum | ClampPixel (const MagickRealType value) |
static double | PerceptibleReciprocal (const double x) |
static MagickRealType | GetPixelLuma (const Image *magick_restrict image, const PixelPacket *magick_restrict pixel) |
static MagickRealType | GetPixelLuminance (const Image *magick_restrict image, const PixelPacket *magick_restrict pixel) |
static MagickBooleanType | IsPixelAtDepth (const Quantum pixel, const QuantumAny range) |
static MagickBooleanType | IsPixelGray (const PixelPacket *pixel) |
static MagickBooleanType | IsPixelMonochrome (const PixelPacket *pixel) |
static Quantum | PixelPacketIntensity (const PixelPacket *pixel) |
static void | SetPixelViaMagickPixel (const Image *magick_restrict image, const MagickPixelPacket *magick_restrict magick_pixel, PixelPacket *magick_restrict pixel) |
#define ClampPixelBlue | ( | pixel | ) | ClampToQuantum((pixel)->blue) |
Referenced by ClutImageChannel().
#define ClampPixelGreen | ( | pixel | ) | ClampToQuantum((pixel)->green) |
Referenced by ClutImageChannel().
#define ClampPixelIndex | ( | indexes | ) | ClampToQuantum(*(indexes)) |
#define ClampPixelOpacity | ( | pixel | ) | ClampToQuantum((pixel)->opacity) |
Referenced by ClutImageChannel().
#define ClampPixelRed | ( | pixel | ) | ClampToQuantum((pixel)->red) |
Referenced by ClutImageChannel().
#define GetPixela | ( | pixel | ) | ((pixel)->green) |
#define GetPixelAlpha | ( | pixel | ) | (QuantumRange-(pixel)->opacity) |
Referenced by AdaptiveBlurImageChannel(), AdaptiveSharpenImageChannel(), AlphaBlendMagickPixelPacket(), BilevelImageChannel(), ClosestColor(), ClutImageChannel(), CompareImageChannels(), EvaluateImageChannel(), EvaluateImages(), ExportAlphaQuantum(), ExportBGRAQuantum(), ExportCharPixel(), ExportCMYKAQuantum(), ExportFloatPixel(), ExportGrayAlphaQuantum(), ExportIndexAlphaQuantum(), ExportIntegerPixel(), ExportLongPixel(), ExportQuantumPixel(), ExportQuantumPixels(), ExportRGBAQuantum(), ExportShortPixel(), FunctionImageChannel(), FxGetSymbol(), GammaImageChannel(), GetAbsoluteDistortion(), GetFuzzDistortion(), GetImageChannelKurtosis(), GetImageChannelStatistics(), GetImageQuantizeError(), GetMeanAbsoluteDistortion(), GetMeanErrorPerPixel(), GetMeanSquaredDistortion(), GetNormalizedCrossCorrelationDistortion(), GetPeakAbsoluteDistortion(), HorizontalFilter(), ImportQuantumPixels(), InterpolatePixelColor(), IsColorSimilar(), IsMagickColorSimilar(), LevelImageChannel(), LevelizeImageChannel(), MotionBlurImageChannel(), RotationalBlurImageChannel(), ScaleImage(), SelectiveBlurImageChannel(), SeparateImageChannel(), SetImageAlphaChannel(), ShadowImage(), StreamImagePixels(), and VerticalFilter().
#define GetPixelb | ( | pixel | ) | ((pixel)->blue) |
#define GetPixelBlack | ( | indexes | ) | (*(indexes)) |
Referenced by DespeckleImage(), and ImportQuantumPixels().
#define GetPixelBlue | ( | pixel | ) | ((pixel)->blue) |
Referenced by AcquireColorCache(), AdaptiveBlurImageChannel(), AdaptiveSharpenImageChannel(), AdaptiveThresholdImage(), AddNoiseImageChannel(), AlphaBlendMagickPixelPacket(), AppendImages(), AssociateAlphaPixel(), BilevelImageChannel(), BlackThresholdImageChannel(), BlueShiftImage(), ClampImageChannel(), Classify(), ClosestColor(), ClutImageChannel(), ColorDecisionListImage(), ColorizeImage(), ColorMatrixImage(), ColorToNodeId(), CompareImageChannels(), CompositeImageChannel(), ContrastImage(), ContrastStretchImageChannel(), DespeckleImage(), EqualizeImageChannel(), EvaluateImageChannel(), EvaluateImages(), ExportBGRAQuantum(), ExportBGROQuantum(), ExportBGRQuantum(), ExportBlueQuantum(), ExportCbYCrYQuantum(), ExportCharPixel(), ExportCMYKAQuantum(), ExportCMYKOQuantum(), ExportCMYKQuantum(), ExportDoublePixel(), ExportFloatPixel(), ExportIntegerPixel(), ExportLongPixel(), ExportQuantumPixel(), ExportQuantumPixels(), ExportRGBAQuantum(), ExportRGBOQuantum(), ExportRGBQuantum(), ExportShortPixel(), FilterImageChannel(), FunctionImageChannel(), FuzzyColorMatch(), GammaImageChannel(), GetAbsoluteDistortion(), GetFuzzDistortion(), GetImageBackgroundColor(), GetImageChannelDepth(), GetImageChannelFeatures(), GetImageChannelKurtosis(), GetImageChannelStatistics(), GetImageDynamicThreshold(), GetImageQuantizeError(), GetImageTotalInkDensity(), GetLocationStatistics(), GetMeanAbsoluteDistortion(), GetMeanErrorPerPixel(), GetMeanSquaredDistortion(), GetNormalizedCrossCorrelationDistortion(), GetPeakAbsoluteDistortion(), GetSimilarityMetric(), HaldClutImageChannel(), HorizontalFilter(), ImportQuantumPixels(), InitializeHistogram(), InsertPixelList(), IsColorSimilar(), IsGrayPixel(), IsImagesEqual(), IsMagickColorSimilar(), IsMonochromePixel(), IsSameColor(), LevelImageChannel(), LevelizeImageChannel(), LocalContrastImage(), MagickCompositeOver(), ModulateImage(), MorphImages(), MorphologyPrimitive(), MorphologyPrimitiveDirect(), NegateImageChannel(), OrderedPosterizeImageChannel(), PerceptibleImageChannel(), PosterizeImageChannel(), ProfileImage(), RadonTransform(), RaiseImage(), RandomThresholdImageChannel(), RGBTransformImage(), ScaleImage(), SelectiveBlurImageChannel(), SeparateImageChannel(), SepiaToneImage(), SetGrayscaleImage(), SetImageAlphaChannel(), SetImageChannelDepth(), SetMagickPixelPacket(), ShadeImage(), SigmoidalContrastImageChannel(), SolarizeImageChannel(), SpliceImage(), SteganoImage(), StereoAnaglyphImage(), StreamImagePixels(), TintImage(), TransformRGBImage(), UnsharpMaskImageChannel(), VerticalFilter(), WaveletDenoiseImage(), WhiteThresholdImageChannel(), XDitherImage(), XMakeImageLSBFirst(), and XMakeImageMSBFirst().
#define GetPixelCb | ( | pixel | ) | ((pixel)->green) |
#define GetPixelCr | ( | pixel | ) | ((pixel)->blue) |
#define GetPixelCyan | ( | pixel | ) | ((pixel)->red) |
#define GetPixelGray | ( | pixel | ) | ((pixel)->red) |
Referenced by TransformRGBImage().
#define GetPixelGreen | ( | pixel | ) | ((pixel)->green) |
Referenced by AcquireColorCache(), AdaptiveBlurImageChannel(), AdaptiveSharpenImageChannel(), AdaptiveThresholdImage(), AddNoiseImageChannel(), AlphaBlendMagickPixelPacket(), AppendImages(), AssociateAlphaPixel(), BilevelImageChannel(), BlackThresholdImageChannel(), BlueShiftImage(), ClampImageChannel(), Classify(), ClosestColor(), ClutImageChannel(), ColorDecisionListImage(), ColorizeImage(), ColorMatrixImage(), ColorToNodeId(), CompareImageChannels(), CompositeImageChannel(), ContrastImage(), ContrastStretchImageChannel(), DespeckleImage(), EqualizeImageChannel(), EvaluateImageChannel(), EvaluateImages(), ExportBGRAQuantum(), ExportBGROQuantum(), ExportBGRQuantum(), ExportCbYCrYQuantum(), ExportCharPixel(), ExportCMYKAQuantum(), ExportCMYKOQuantum(), ExportCMYKQuantum(), ExportDoublePixel(), ExportFloatPixel(), ExportGreenQuantum(), ExportIntegerPixel(), ExportLongPixel(), ExportQuantumPixel(), ExportQuantumPixels(), ExportRGBAQuantum(), ExportRGBOQuantum(), ExportRGBQuantum(), ExportShortPixel(), FilterImageChannel(), FunctionImageChannel(), FuzzyColorMatch(), GammaImageChannel(), GetAbsoluteDistortion(), GetFuzzDistortion(), GetImageBackgroundColor(), GetImageChannelDepth(), GetImageChannelFeatures(), GetImageChannelKurtosis(), GetImageChannelStatistics(), GetImageDynamicThreshold(), GetImageQuantizeError(), GetImageTotalInkDensity(), GetLocationStatistics(), GetMeanAbsoluteDistortion(), GetMeanErrorPerPixel(), GetMeanSquaredDistortion(), GetNormalizedCrossCorrelationDistortion(), GetPeakAbsoluteDistortion(), GetSimilarityMetric(), HaldClutImageChannel(), HorizontalFilter(), ImportQuantumPixels(), InitializeHistogram(), InsertPixelList(), IsColorSimilar(), IsGrayPixel(), IsImagesEqual(), IsMagickColorSimilar(), IsMonochromePixel(), IsSameColor(), LevelImageChannel(), LevelizeImageChannel(), LocalContrastImage(), MagickCompositeOver(), ModulateImage(), MorphImages(), MorphologyPrimitive(), MorphologyPrimitiveDirect(), NegateImageChannel(), OrderedPosterizeImageChannel(), PerceptibleImageChannel(), PosterizeImageChannel(), ProfileImage(), RadonTransform(), RaiseImage(), RandomThresholdImageChannel(), RGBTransformImage(), ScaleImage(), SelectiveBlurImageChannel(), SeparateImageChannel(), SepiaToneImage(), SetGrayscaleImage(), SetImageAlphaChannel(), SetImageChannelDepth(), SetMagickPixelPacket(), ShadeImage(), SigmoidalContrastImageChannel(), SolarizeImageChannel(), SpliceImage(), SteganoImage(), StereoAnaglyphImage(), StreamImagePixels(), TintImage(), TransformRGBImage(), UnsharpMaskImageChannel(), VerticalFilter(), WaveletDenoiseImage(), WhiteThresholdImageChannel(), XDitherImage(), XMakeImageLSBFirst(), and XMakeImageMSBFirst().
#define GetPixelIndex | ( | indexes | ) | (*(indexes)) |
Referenced by AdaptiveBlurImageChannel(), AdaptiveSharpenImageChannel(), AdaptiveThresholdImage(), AddNoiseImageChannel(), AlphaBlendMagickPixelPacket(), AppendImages(), BilevelImageChannel(), BlackThresholdImageChannel(), CheckImageColors(), ChopImage(), ClampImageChannel(), ClassifyImageColors(), ClipPixelCacheNexus(), ClutImageChannel(), ColorMatrixImage(), CompositeImageChannel(), ContrastStretchImageChannel(), CycleColormapImage(), EqualizeImageChannel(), EvaluateImageChannel(), EvaluateImages(), ExportBlackQuantum(), ExportCharPixel(), ExportCMYKAQuantum(), ExportCMYKOQuantum(), ExportCMYKQuantum(), ExportDoublePixel(), ExportFloatPixel(), ExportIndexAlphaQuantum(), ExportIndexQuantum(), ExportIntegerPixel(), ExportLongPixel(), ExportQuantumPixel(), ExportShortPixel(), FilterImageChannel(), FlopImage(), FunctionImageChannel(), GammaImageChannel(), GetFuzzDistortion(), GetImageChannelDepth(), GetImageChannelFeatures(), GetImageChannelKurtosis(), GetImageChannelStatistics(), GetImageQuantizeError(), GetImageTotalInkDensity(), GetLocationStatistics(), GetMeanAbsoluteDistortion(), GetMeanErrorPerPixel(), GetMeanSquaredDistortion(), GetNormalizedCrossCorrelationDistortion(), GetPeakAbsoluteDistortion(), GetSimilarityMetric(), HorizontalFilter(), ImportIndexAlphaQuantum(), ImportIndexQuantum(), InsertPixelList(), IntegralRotateImage(), IsHistogramImage(), IsImagesEqual(), LevelImageChannel(), LevelizeImageChannel(), MaskPixelCacheNexus(), MorphologyPrimitive(), MorphologyPrimitiveDirect(), MotionBlurImageChannel(), NegateImageChannel(), OilPaintImage(), OrderedPosterizeImageChannel(), PerceptibleImageChannel(), PosterizeImageChannel(), ProfileImage(), RandomThresholdImageChannel(), SampleImage(), ScaleImage(), SelectiveBlurImageChannel(), SeparateImageChannel(), SetGrayscaleImage(), SetMagickPixelPacket(), SigmoidalContrastImageChannel(), SortColormapByIntensity(), SpliceImage(), StreamImagePixels(), SyncImage(), TransverseImage(), UnsharpMaskImageChannel(), VerticalFilter(), WhiteThresholdImageChannel(), XMakeImageLSBFirst(), XMakeImageMSBFirst(), and XMakeStandardColormap().
#define GetPixelL | ( | pixel | ) | ((pixel)->red) |
#define GetPixelLabel | ( | pixel | ) | ((ssize_t) (pixel)->red) |
#define GetPixelMagenta | ( | pixel | ) | ((pixel)->green) |
#define GetPixelNext | ( | pixel | ) | ((pixel)+1) |
#define GetPixelOpacity | ( | pixel | ) | ((pixel)->opacity) |
Referenced by AdaptiveBlurImageChannel(), AdaptiveSharpenImageChannel(), AdaptiveThresholdImage(), AddNoiseImageChannel(), AlphaBlendMagickPixelPacket(), AppendImages(), AssociateAlphaPixel(), BilevelImageChannel(), BlackThresholdImageChannel(), ClampImageChannel(), ClipPixelCacheNexus(), ClutImageChannel(), ColorFloodfillImage(), ColorizeImage(), ColorMatrixImage(), ColorToNodeId(), CompareImageChannels(), ComparePixels(), CompositeImageChannel(), ContrastStretchImageChannel(), DespeckleImage(), EqualizeImageChannel(), EvaluateImageChannel(), ExportAlphaQuantum(), ExportBGROQuantum(), ExportCharPixel(), ExportCMYKOQuantum(), ExportDoublePixel(), ExportFloatPixel(), ExportGrayAlphaQuantum(), ExportIndexAlphaQuantum(), ExportIntegerPixel(), ExportLongPixel(), ExportOpacityQuantum(), ExportQuantumPixel(), ExportRGBOQuantum(), ExportShortPixel(), FilterImageChannel(), FloodfillPaintImage(), FunctionImageChannel(), GammaImageChannel(), GetAbsoluteDistortion(), GetFuzzDistortion(), GetImageBackgroundColor(), GetImageChannelDepth(), GetImageChannelFeatures(), GetImageChannelKurtosis(), GetLocationStatistics(), GetMeanAbsoluteDistortion(), GetMeanErrorPerPixel(), GetMeanSquaredDistortion(), GetNormalizedCrossCorrelationDistortion(), GetPeakAbsoluteDistortion(), GetSimilarityMetric(), HorizontalFilter(), IdentifyImage(), InsertPixelList(), IsBoundsCleared(), IsColorSimilar(), IsImagesEqual(), IsMagickColorSimilar(), IsOpacitySimilar(), IsOpaqueImage(), IsSameColor(), MatteFloodfillImage(), MorphImages(), MorphologyPrimitive(), MorphologyPrimitiveDirect(), NegateImageChannel(), OrderedPosterizeImageChannel(), PerceptibleImageChannel(), PosterizeImageChannel(), RandomThresholdImageChannel(), ScaleImage(), SelectiveBlurImageChannel(), SeparateImageChannel(), SepiaToneImage(), SetImageChannelDepth(), SetMagickPixelPacket(), SigmoidalContrastImageChannel(), SmushXGap(), SmushYGap(), SpliceImage(), StereoAnaglyphImage(), StreamImagePixels(), TintImage(), UnsharpMaskImageChannel(), VerticalFilter(), WhiteThresholdImageChannel(), XMakeImageLSBFirst(), XMakeImageMSBFirst(), XShearImage(), and YShearImage().
#define GetPixelRed | ( | pixel | ) | ((pixel)->red) |
Referenced by AcquireColorCache(), AdaptiveBlurImageChannel(), AdaptiveSharpenImageChannel(), AdaptiveThresholdImage(), AddNoiseImageChannel(), AlphaBlendMagickPixelPacket(), AppendImages(), AssociateAlphaPixel(), BilevelImageChannel(), BlackThresholdImageChannel(), BlueShiftImage(), ClampImageChannel(), Classify(), ClosestColor(), ClutImageChannel(), ColorDecisionListImage(), ColorizeImage(), ColorMatrixImage(), ColorToNodeId(), CompareImageChannels(), CompositeImageChannel(), ContrastImage(), ContrastStretchImageChannel(), DespeckleImage(), EqualizeImageChannel(), EvaluateImageChannel(), EvaluateImages(), ExportBGRAQuantum(), ExportBGROQuantum(), ExportBGRQuantum(), ExportCbYCrYQuantum(), ExportCharPixel(), ExportCMYKAQuantum(), ExportCMYKOQuantum(), ExportCMYKQuantum(), ExportDoublePixel(), ExportFloatPixel(), ExportIntegerPixel(), ExportLongPixel(), ExportQuantumPixel(), ExportQuantumPixels(), ExportRedQuantum(), ExportRGBAQuantum(), ExportRGBOQuantum(), ExportRGBQuantum(), ExportShortPixel(), FilterImageChannel(), FunctionImageChannel(), FuzzyColorMatch(), GammaImageChannel(), GetAbsoluteDistortion(), GetFuzzDistortion(), GetImageBackgroundColor(), GetImageChannelDepth(), GetImageChannelFeatures(), GetImageChannelKurtosis(), GetImageChannelStatistics(), GetImageDynamicThreshold(), GetImageQuantizeError(), GetImageTotalInkDensity(), GetLocationStatistics(), GetMeanAbsoluteDistortion(), GetMeanErrorPerPixel(), GetMeanSquaredDistortion(), GetNormalizedCrossCorrelationDistortion(), GetPeakAbsoluteDistortion(), GetSimilarityMetric(), HaldClutImageChannel(), HorizontalFilter(), ImportCharPixel(), ImportDoublePixel(), ImportFloatPixel(), ImportGrayAlphaQuantum(), ImportGrayQuantum(), ImportIndexAlphaQuantum(), ImportIntegerPixel(), ImportLongPixel(), ImportQuantumPixel(), ImportQuantumPixels(), ImportShortPixel(), InitializeHistogram(), InsertPixelList(), IsColorSimilar(), IsGrayPixel(), IsImagesEqual(), IsMonochromePixel(), IsSameColor(), LevelImageChannel(), LevelizeImageChannel(), LocalContrastImage(), MagickCompositeOver(), ModulateImage(), MorphImages(), MorphologyPrimitive(), MorphologyPrimitiveDirect(), NegateImageChannel(), OrderedPosterizeImageChannel(), PerceptibleImageChannel(), PosterizeImageChannel(), ProfileImage(), RadonTransform(), RaiseImage(), RandomThresholdImageChannel(), RGBTransformImage(), ScaleImage(), SelectiveBlurImageChannel(), SeparateImageChannel(), SetGrayscaleImage(), SetImageAlphaChannel(), SetImageChannelDepth(), SetMagickPixelPacket(), ShadeImage(), SigmoidalContrastImageChannel(), SimilarityMetricImage(), SolarizeImageChannel(), SpliceImage(), SteganoImage(), StereoAnaglyphImage(), StreamImagePixels(), TintImage(), TransformRGBImage(), UnsharpMaskImageChannel(), VerticalFilter(), WaveletDenoiseImage(), WhiteThresholdImageChannel(), XDitherImage(), XMakeImageLSBFirst(), and XMakeImageMSBFirst().
#define GetPixelRGB | ( | pixel, | |||
packet | ) |
{ \ (packet)->red=GetPixelRed((pixel)); \ (packet)->green=GetPixelGreen((pixel)); \ (packet)->blue=GetPixelBlue((pixel)); \ }
#define GetPixelRGBO | ( | pixel, | |||
packet | ) |
{ \ (packet)->red=GetPixelRed((pixel)); \ (packet)->green=GetPixelGreen((pixel)); \ (packet)->blue=GetPixelBlue((pixel)); \ (packet)->opacity=GetPixelOpacity((pixel)); \ }
#define GetPixelY | ( | pixel | ) | ((pixel)->red) |
#define GetPixelYellow | ( | pixel | ) | ((pixel)->blue) |
#define SetPixela | ( | pixel, | |||
value | ) | ((pixel)->green=(Quantum) (value)) |
#define SetPixelAlpha | ( | pixel, | |||
value | ) | ((pixel)->opacity=(Quantum) (QuantumRange-(value))) |
Referenced by BilevelImageChannel(), ClutImageChannel(), ColorMatrixImage(), CombineImages(), EvaluateImageChannel(), EvaluateImages(), FunctionImageChannel(), GammaImageChannel(), ImportAlphaQuantum(), ImportBGRAQuantum(), ImportCharPixel(), ImportCMYKAQuantum(), ImportDoublePixel(), ImportFloatPixel(), ImportGrayAlphaQuantum(), ImportIndexAlphaQuantum(), ImportIntegerPixel(), ImportLongPixel(), ImportQuantumPixel(), ImportRGBAQuantum(), ImportShortPixel(), LevelImageChannel(), LevelizeImageChannel(), MorphologyPrimitive(), MorphologyPrimitiveDirect(), PolynomialImageChannel(), RenderPostscript(), and SeparateImageChannel().
#define SetPixelb | ( | pixel, | |||
value | ) | ((pixel)->blue=(Quantum) (value)) |
#define SetPixelBlack | ( | indexes, | |||
value | ) | (*(indexes)=(Quantum) (value)) |
Referenced by ImportQuantumPixels().
#define SetPixelBlue | ( | pixel, | |||
value | ) | ((pixel)->blue=(Quantum) (value)) |
Referenced by AdaptiveBlurImageChannel(), AdaptiveSharpenImageChannel(), AdaptiveThresholdImage(), AddNoiseImageChannel(), AppendImages(), BilevelImageChannel(), BlackThresholdImageChannel(), BlueShiftImage(), ClampImageChannel(), ClipPixelCacheNexus(), ClutImageChannel(), ColorDecisionListImage(), ColorizeImage(), ColorMatrixImage(), CombineImages(), CompositeImageChannel(), ContrastImage(), ContrastStretchImageChannel(), DefineImageColormap(), DespeckleImage(), EnhanceImage(), EqualizeImageChannel(), EvaluateImageChannel(), EvaluateImages(), ExportQuantumPixels(), FilterImageChannel(), FloodfillPaintImage(), FunctionImageChannel(), FxImageChannel(), GammaImageChannel(), GetVirtualPixelCacheNexus(), HaldClutImageChannel(), HorizontalFilter(), ImportBGRAQuantum(), ImportBGROQuantum(), ImportBGRQuantum(), ImportBlueQuantum(), ImportCbYCrYQuantum(), ImportCharPixel(), ImportCMYKAQuantum(), ImportCMYKOQuantum(), ImportCMYKQuantum(), ImportDoublePixel(), ImportFloatPixel(), ImportGrayAlphaQuantum(), ImportGrayQuantum(), ImportIndexAlphaQuantum(), ImportIntegerPixel(), ImportLongPixel(), ImportQuantumPixel(), ImportQuantumPixels(), ImportRGBAQuantum(), ImportRGBOQuantum(), ImportRGBQuantum(), ImportShortPixel(), LevelImageChannel(), LevelizeImageChannel(), LocalContrastImage(), MagickCompositeOver(), MaskPixelCacheNexus(), ModulateImage(), MorphImages(), MorphologyPrimitive(), MorphologyPrimitiveDirect(), MotionBlurImageChannel(), NegateImageChannel(), OpaquePaintImageChannel(), OrderedPosterizeImageChannel(), PerceptibleImageChannel(), PlasmaImageProxy(), PolynomialImageChannel(), PosterizeImageChannel(), ProfileImage(), QueryColorCompliance(), RaiseImage(), RandomThresholdImageChannel(), RenderPostscript(), RGBTransformImage(), RotationalBlurImageChannel(), ScaleImage(), SelectiveBlurImageChannel(), SeparateImageChannel(), SepiaToneImage(), SetImageAlphaChannel(), SetImageChannelDepth(), SetPixelPacket(), ShadeImage(), ShadowImage(), SigmoidalContrastImageChannel(), SimilarityMetricImage(), SolarizeImageChannel(), SpliceImage(), StatisticImageChannel(), StereoAnaglyphImage(), ThresholdImageChannel(), TintImage(), TransformRGBImage(), UnsharpMaskImageChannel(), VerticalFilter(), WaveletDenoiseImage(), WhiteThresholdImageChannel(), XAnnotateImage(), XDrawImage(), XGetWindowImage(), and XMakeStandardColormap().
#define SetPixelCb | ( | pixel, | |||
value | ) | ((pixel)->green=(Quantum) (value)) |
#define SetPixelCr | ( | pixel, | |||
value | ) | ((pixel)->blue=(Quantum) (value)) |
#define SetPixelCyan | ( | pixel, | |||
value | ) | ((pixel)->red=(Quantum) (value)) |
#define SetPixelGray | ( | pixel, | |||
value | ) | ((pixel)->red=(pixel)->green=(pixel)->blue=(Quantum) (value)) |
Referenced by GrayscaleImage(), and RGBTransformImage().
#define SetPixelGreen | ( | pixel, | |||
value | ) | ((pixel)->green=(Quantum) (value)) |
Referenced by AdaptiveBlurImageChannel(), AdaptiveSharpenImageChannel(), AdaptiveThresholdImage(), AddNoiseImageChannel(), AppendImages(), BilevelImageChannel(), BlackThresholdImageChannel(), BlueShiftImage(), ClampImageChannel(), ClipPixelCacheNexus(), ClutImageChannel(), ColorDecisionListImage(), ColorizeImage(), ColorMatrixImage(), CombineImages(), CompositeImageChannel(), ContrastImage(), ContrastStretchImageChannel(), DefineImageColormap(), DespeckleImage(), EnhanceImage(), EqualizeImageChannel(), EvaluateImageChannel(), EvaluateImages(), ExportQuantumPixels(), FilterImageChannel(), FloodfillPaintImage(), FunctionImageChannel(), FxImageChannel(), GammaImageChannel(), GetVirtualPixelCacheNexus(), HaldClutImageChannel(), HorizontalFilter(), ImportBGRAQuantum(), ImportBGROQuantum(), ImportBGRQuantum(), ImportCbYCrYQuantum(), ImportCharPixel(), ImportCMYKAQuantum(), ImportCMYKOQuantum(), ImportCMYKQuantum(), ImportDoublePixel(), ImportFloatPixel(), ImportGrayAlphaQuantum(), ImportGrayQuantum(), ImportGreenQuantum(), ImportIndexAlphaQuantum(), ImportIntegerPixel(), ImportLongPixel(), ImportQuantumPixel(), ImportQuantumPixels(), ImportRGBAQuantum(), ImportRGBOQuantum(), ImportRGBQuantum(), ImportShortPixel(), LevelImageChannel(), LevelizeImageChannel(), LocalContrastImage(), MagickCompositeOver(), MaskPixelCacheNexus(), ModulateImage(), MorphImages(), MorphologyPrimitive(), MorphologyPrimitiveDirect(), MotionBlurImageChannel(), NegateImageChannel(), OpaquePaintImageChannel(), OrderedPosterizeImageChannel(), PerceptibleImageChannel(), PlasmaImageProxy(), PolynomialImageChannel(), PosterizeImageChannel(), ProfileImage(), QueryColorCompliance(), RaiseImage(), RandomThresholdImageChannel(), RenderPostscript(), RGBTransformImage(), RotationalBlurImageChannel(), ScaleImage(), SelectiveBlurImageChannel(), SeparateImageChannel(), SepiaToneImage(), SetImageAlphaChannel(), SetImageChannelDepth(), SetPixelPacket(), ShadeImage(), ShadowImage(), SigmoidalContrastImageChannel(), SimilarityMetricImage(), SolarizeImageChannel(), SpliceImage(), StatisticImageChannel(), StereoAnaglyphImage(), ThresholdImageChannel(), TintImage(), TransformRGBImage(), UnsharpMaskImageChannel(), VerticalFilter(), WaveletDenoiseImage(), WhiteThresholdImageChannel(), XAnnotateImage(), XDrawImage(), XGetWindowImage(), and XMakeStandardColormap().
#define SetPixelIndex | ( | indexes, | |||
value | ) | (*(indexes)=(IndexPacket) (value)) |
Referenced by AdaptiveBlurImageChannel(), AdaptiveSharpenImageChannel(), AdaptiveThresholdImage(), AddNoiseImageChannel(), AppendImages(), AssignImageColors(), BilevelImageChannel(), BlackThresholdImageChannel(), ClampImageChannel(), Classify(), ClipPixelCacheNexus(), ClutImageChannel(), ColorMatrixImage(), CombineImages(), CompositeImageChannel(), ConsolidateCMYKImages(), ContrastStretchImageChannel(), CycleColormapImage(), DespeckleImage(), EqualizeImageChannel(), EvaluateImageChannel(), EvaluateImages(), FilterImageChannel(), FloodfillPaintImage(), FlopImage(), FloydSteinbergDither(), FunctionImageChannel(), FxImageChannel(), GammaImageChannel(), HaldClutImageChannel(), HorizontalFilter(), HuffmanDecodeImage(), ImportBlackQuantum(), ImportCharPixel(), ImportCMYKAQuantum(), ImportCMYKOQuantum(), ImportCMYKQuantum(), ImportDoublePixel(), ImportFloatPixel(), ImportIndexAlphaQuantum(), ImportIndexQuantum(), ImportIntegerPixel(), ImportLongPixel(), ImportQuantumPixel(), ImportShortPixel(), IntegralRotateImage(), LevelImageChannel(), LevelizeImageChannel(), MaskPixelCacheNexus(), MorphologyPrimitive(), MorphologyPrimitiveDirect(), MotionBlurImageChannel(), NegateImageChannel(), OilPaintImage(), OpaquePaintImageChannel(), OrderedPosterizeImageChannel(), PerceptibleImageChannel(), PolynomialImageChannel(), PosterizeImageChannel(), ProfileImage(), RandomChannelThresholdImage(), RandomThresholdImageChannel(), RotationalBlurImageChannel(), SampleImage(), ScaleImage(), SelectiveBlurImageChannel(), SetGrayscaleImage(), SetImage(), SetImageAlphaChannel(), SetImageBackgroundColor(), SetPixelPacket(), SigmoidalContrastImageChannel(), SortColormapByIntensity(), SpliceImage(), StatisticImageChannel(), ThresholdImage(), ThresholdImageChannel(), TransverseImage(), UnsharpMaskImageChannel(), VerticalFilter(), WaveletDenoiseImage(), WhiteThresholdImageChannel(), and XGetWindowImage().
#define SetPixelL | ( | pixel, | |||
value | ) | ((pixel)->red=(Quantum) (value)) |
#define SetPixelMagenta | ( | pixel, | |||
value | ) | ((pixel)->green=(Quantum) (value)) |
#define SetPixelOpacity | ( | pixel, | |||
value | ) | ((pixel)->opacity=(Quantum) (value)) |
Referenced by AdaptiveBlurImageChannel(), AdaptiveSharpenImageChannel(), AdaptiveThresholdImage(), AddNoiseImageChannel(), AppendImages(), AssignImageColors(), BilevelImageChannel(), BlackThresholdImageChannel(), ClampImageChannel(), ClipPixelCacheNexus(), ClutImageChannel(), ColorizeImage(), CompositeImageChannel(), ContrastStretchImageChannel(), DefineImageColormap(), DespeckleImage(), DrawPrimitive(), EnhanceImage(), EqualizeImageChannel(), EvaluateImageChannel(), FilterImageChannel(), FloodfillPaintImage(), FloydSteinbergDither(), FunctionImageChannel(), FxImageChannel(), GammaImageChannel(), GetVirtualPixelCacheNexus(), HaldClutImageChannel(), HorizontalFilter(), ImportBGROQuantum(), ImportBGRQuantum(), ImportCharPixel(), ImportCMYKOQuantum(), ImportDoublePixel(), ImportFloatPixel(), ImportGrayAlphaQuantum(), ImportGrayQuantum(), ImportIndexAlphaQuantum(), ImportIntegerPixel(), ImportLongPixel(), ImportQuantumPixel(), ImportRGBOQuantum(), ImportRGBQuantum(), ImportShortPixel(), MagickCompositeOver(), MaskPixelCacheNexus(), MorphImages(), MorphologyPrimitive(), MotionBlurImageChannel(), NegateImageChannel(), OpaquePaintImageChannel(), OrderedPosterizeImageChannel(), PerceptibleImageChannel(), PolynomialImageChannel(), PosterizeImageChannel(), QueryColorCompliance(), RandomChannelThresholdImage(), RandomThresholdImageChannel(), RiemersmaDither(), RotationalBlurImageChannel(), ScaleImage(), SelectiveBlurImageChannel(), SepiaToneImage(), SetImageChannelDepth(), SetImageOpacity(), SetPixelPacket(), ShadowImage(), SigmoidalContrastImageChannel(), SpliceImage(), StatisticImageChannel(), StereoAnaglyphImage(), ThresholdImageChannel(), TintImage(), UnsharpMaskImageChannel(), VerticalFilter(), WhiteThresholdImageChannel(), XAnnotateImage(), XDrawImage(), and XMakeStandardColormap().
#define SetPixelRed | ( | pixel, | |||
value | ) | ((pixel)->red=(Quantum) (value)) |
Referenced by AdaptiveBlurImageChannel(), AdaptiveSharpenImageChannel(), AdaptiveThresholdImage(), AddNoiseImageChannel(), AppendImages(), BilevelImageChannel(), BlackThresholdImageChannel(), BlueShiftImage(), ClampImageChannel(), ClipPixelCacheNexus(), ClutImageChannel(), ColorDecisionListImage(), ColorizeImage(), ColorMatrixImage(), CombineImages(), CompositeImageChannel(), ConsolidateCMYKImages(), ContrastImage(), ContrastStretchImageChannel(), DefineImageColormap(), DespeckleImage(), EnhanceImage(), EqualizeImageChannel(), EvaluateImageChannel(), EvaluateImages(), ExportQuantumPixels(), FilterImageChannel(), FloodfillPaintImage(), FunctionImageChannel(), FxImageChannel(), GammaImageChannel(), GetVirtualPixelCacheNexus(), HaldClutImageChannel(), HorizontalFilter(), ImportBGRAQuantum(), ImportBGROQuantum(), ImportBGRQuantum(), ImportCbYCrYQuantum(), ImportCharPixel(), ImportCMYKAQuantum(), ImportCMYKOQuantum(), ImportCMYKQuantum(), ImportDoublePixel(), ImportFloatPixel(), ImportGrayAlphaQuantum(), ImportGrayQuantum(), ImportIndexAlphaQuantum(), ImportIntegerPixel(), ImportLongPixel(), ImportQuantumPixel(), ImportQuantumPixels(), ImportRedQuantum(), ImportRGBAQuantum(), ImportRGBOQuantum(), ImportRGBQuantum(), ImportShortPixel(), LevelImageChannel(), LevelizeImageChannel(), LocalContrastImage(), MagickCompositeOver(), MaskPixelCacheNexus(), ModulateImage(), MorphImages(), MorphologyPrimitive(), MorphologyPrimitiveDirect(), MotionBlurImageChannel(), NegateImageChannel(), OpaquePaintImageChannel(), OrderedPosterizeImageChannel(), PerceptibleImageChannel(), PlasmaImageProxy(), PolynomialImageChannel(), PosterizeImageChannel(), ProfileImage(), QueryColorCompliance(), RaiseImage(), RandomThresholdImageChannel(), RenderPostscript(), RGBTransformImage(), RotationalBlurImageChannel(), ScaleImage(), SelectiveBlurImageChannel(), SeparateImageChannel(), SepiaToneImage(), SetImageAlphaChannel(), SetImageChannelDepth(), SetPixelPacket(), ShadeImage(), ShadowImage(), SigmoidalContrastImageChannel(), SimilarityMetricImage(), SolarizeImageChannel(), SpliceImage(), StatisticImageChannel(), StereoAnaglyphImage(), ThresholdImageChannel(), TintImage(), TransformRGBImage(), UnsharpMaskImageChannel(), VerticalFilter(), WaveletDenoiseImage(), WhiteThresholdImageChannel(), XAnnotateImage(), XDrawImage(), XGetWindowImage(), and XMakeStandardColormap().
#define SetPixelRgb | ( | pixel, | |||
packet | ) |
{ \ SetPixelRed(pixel,(packet)->red); \ SetPixelGreen(pixel,(packet)->green); \ SetPixelBlue(pixel,(packet)->blue); \ }
Referenced by AssignImageColors(), FloydSteinbergDither(), RiemersmaDither(), and SyncImage().
#define SetPixelRGBA | ( | pixel, | |||
packet | ) |
{ \ SetPixelRed(pixel,(packet)->red); \ SetPixelGreen(pixel,(packet)->green); \ SetPixelBlue(pixel,(packet)->blue); \ SetPixelAlpha(pixel,(QuantumRange-(packet)->opacity)); \ }
#define SetPixelRGBO | ( | pixel, | |||
packet | ) |
{ \ SetPixelRed(pixel,(packet)->red); \ SetPixelGreen(pixel,(packet)->green); \ SetPixelBlue(pixel,(packet)->blue); \ SetPixelOpacity(pixel,(packet)->opacity); \ }
Referenced by CycleColormapImage(), HuffmanDecodeImage(), ImportIndexAlphaQuantum(), ImportIndexQuantum(), RandomChannelThresholdImage(), RandomThresholdImageChannel(), SetImage(), SortColormapByIntensity(), SyncImage(), ThresholdImage(), and XGetWindowImage().
#define SetPixelY | ( | pixel, | |||
value | ) | ((pixel)->red=(Quantum) (value)) |
#define SetPixelYellow | ( | pixel, | |||
value | ) | ((pixel)->blue=(Quantum) (value)) |
static MagickRealType AbsolutePixelValue | ( | const MagickRealType | x | ) | [inline, static] |
Referenced by IsColorEqual(), IsMagickColorEqual(), IsMagickGray(), IsPixelGray(), and IsPixelMonochrome().
static Quantum ClampPixel | ( | const MagickRealType | value | ) | [inline, static] |
References QuantumRange.
Referenced by CacheOffset(), ClampImageChannel(), ClassifyImageColors(), ColorToNodeId(), CompositeImageChannel(), FloydSteinbergDither(), RiemersmaDither(), SetImageChannelDepth(), and SparseColorImage().
static MagickRealType GetPixelLuma | ( | const Image *magick_restrict | image, | |
const PixelPacket *magick_restrict | pixel | |||
) | [inline, static] |
Referenced by AssignImageColors(), ExportGrayAlphaQuantum(), ExportGrayQuantum(), KuwaharaImageChannel(), and LocalContrastImage().
static MagickRealType GetPixelLuminance | ( | const Image *magick_restrict | image, | |
const PixelPacket *magick_restrict | pixel | |||
) | [inline, static] |
References DecodePixelGamma(), and sRGBColorspace.
static MagickBooleanType IsPixelAtDepth | ( | const Quantum | pixel, | |
const QuantumAny | range | |||
) | [inline, static] |
References MagickFalse, MagickTrue, and QuantumRange.
Referenced by GetImageChannelDepth(), and GetImageChannelStatistics().
static MagickBooleanType IsPixelGray | ( | const PixelPacket * | pixel | ) | [inline, static] |
References AbsolutePixelValue(), _PixelPacket::blue, _PixelPacket::green, MagickEpsilon, MagickFalse, MagickTrue, QuantumScale, and _PixelPacket::red.
Referenced by ColorizeImage(), DistortImage(), DrawPrimitive(), FrameImage(), IdentifyImageGray(), SetImageBackgroundColor(), SetPixelCacheVirtualMethod(), and TintImage().
static MagickBooleanType IsPixelMonochrome | ( | const PixelPacket * | pixel | ) | [inline, static] |
References AbsolutePixelValue(), _PixelPacket::blue, _PixelPacket::green, MagickEpsilon, MagickFalse, MagickTrue, QuantumRange, QuantumScale, and _PixelPacket::red.
Referenced by IdentifyImageGray(), and IdentifyImageMonochrome().
static double PerceptibleReciprocal | ( | const double | x | ) | [inline, static] |
References MagickEpsilon.
Referenced by AcquireResizeFilter(), AdaptiveBlurImageChannel(), AdaptiveSharpenImageChannel(), ApplyPixelCompositeMask(), AutoThresholdImage(), ColorBurn(), ColorDodge(), ComplexImages(), CompositeDarken(), CompositeDifference(), CompositeIn(), CompositeLighten(), CompositeLinearDodge(), CompositeMinus(), CompositeModulusAdd(), CompositeModulusSubtract(), CompositeOut(), CompositeXor(), ConvertRGBToxyY(), ConvertxyYToRGB(), ConvertXYZToLuv(), DefineImageColormap(), DistortImage(), Divide(), DrawDashPolygon(), DrawGradientImage(), EmbossImage(), FilterImageChannel(), FxEvaluateSubexpression(), FxGetSymbol(), GaussJordanElimination(), GetCubeInfo(), GetImageChannelFeatures(), GetImageChannelStatistics(), GetImageQuantizeError(), GetMagickProperty(), GetMeanErrorPerPixel(), GetNormalizedCrossCorrelationDistortion(), GetOpacityPixel(), GetOptimalKernelWidth1D(), GetOptimalKernelWidth2D(), GetStopColorOffset(), HorizontalFilter(), ImportQuantumPixels(), InterpolateMagickPixelPacket(), InterpolatePixelColor(), InverseAffineMatrix(), InvertAffineCoefficients(), InvertPerspectiveCoefficients(), IsImagesEqual(), LevelPixel(), MagickCompositeOver(), MagickPixelCompositeOver(), MagickPixelCompositePlus(), MeanShiftImage(), MorphologyPrimitive(), MotionBlurImageChannel(), ParseGeometry(), ParseMetaGeometry(), PegtopLight(), RGBTransformImage(), RotationalBlurImageChannel(), ScaleAnyToQuantum(), ScaleImage(), SelectiveBlurImageChannel(), SetImageAlphaChannel(), SharpenImageChannel(), SoftLight(), TraceArcPath(), TraceEllipse(), TransformRGBImage(), VerticalFilter(), and VividLight().
static Quantum PixelPacketIntensity | ( | const PixelPacket * | pixel | ) | [inline, static] |
References _PixelPacket::blue, ClampToQuantum(), _PixelPacket::green, and _PixelPacket::red.
Referenced by IntensityCompare(), and TintImage().
static void SetPixelViaMagickPixel | ( | const Image *magick_restrict | image, | |
const MagickPixelPacket *magick_restrict | magick_pixel, | |||
PixelPacket *magick_restrict | pixel | |||
) | [inline, static] |
References ClampToQuantum(), and MagickFalse.