MagickCore  6.9.10
Convert, Edit, Or Compose Bitmap Images
pixel-accessor.h File Reference
#include <math.h>
#include "magick/gem.h"
#include "magick/pixel.h"
Include dependency graph for pixel-accessor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#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)
 

Macro Definition Documentation

#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 GetPixelb (   pixel)    ((pixel)->blue)
#define GetPixelBlack (   indexes)    (*(indexes))
#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(), and WhiteThresholdImageChannel().

#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)

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(), and WhiteThresholdImageChannel().

#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(), and WhiteThresholdImageChannel().

#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(), 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(), and WhiteThresholdImageChannel().

#define GetPixelRGB (   pixel,
  packet 
)
Value:
{ \
(packet)->red=GetPixelRed((pixel)); \
(packet)->green=GetPixelGreen((pixel)); \
(packet)->blue=GetPixelBlue((pixel)); \
}
#define GetPixelBlue(pixel)
Definition: pixel-accessor.h:38
#define GetPixelGreen(pixel)
Definition: pixel-accessor.h:43
#define GetPixelRed(pixel)
Definition: pixel-accessor.h:50
#define GetPixelRGBO (   pixel,
  packet 
)
Value:
{ \
(packet)->red=GetPixelRed((pixel)); \
(packet)->green=GetPixelGreen((pixel)); \
(packet)->blue=GetPixelBlue((pixel)); \
(packet)->opacity=GetPixelOpacity((pixel)); \
}
#define GetPixelBlue(pixel)
Definition: pixel-accessor.h:38
#define GetPixelOpacity(pixel)
Definition: pixel-accessor.h:49
#define GetPixelGreen(pixel)
Definition: pixel-accessor.h:43
#define GetPixelRed(pixel)
Definition: pixel-accessor.h:50
#define GetPixelY (   pixel)    ((pixel)->red)
#define GetPixelYellow (   pixel)    ((pixel)->blue)
#define SetPixela (   pixel,
  value 
)    ((pixel)->green=(Quantum) (value))
#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(), and WhiteThresholdImageChannel().

#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))

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(), and WhiteThresholdImageChannel().

#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(), and WhiteThresholdImageChannel().

#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(), and WhiteThresholdImageChannel().

#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(), and WhiteThresholdImageChannel().

#define SetPixelRgb (   pixel,
  packet 
)
Value:
{ \
SetPixelRed(pixel,(packet)->red); \
SetPixelGreen(pixel,(packet)->green); \
SetPixelBlue(pixel,(packet)->blue); \
}
#define SetPixelGreen(pixel, value)
Definition: pixel-accessor.h:77
#define SetPixelRed(pixel, value)
Definition: pixel-accessor.h:82
#define SetPixelBlue(pixel, value)
Definition: pixel-accessor.h:71

Referenced by AssignImageColors(), FloydSteinbergDither(), RiemersmaDither(), and SyncImage().

#define SetPixelRGBA (   pixel,
  packet 
)
Value:
{ \
SetPixelRed(pixel,(packet)->red); \
SetPixelGreen(pixel,(packet)->green); \
SetPixelBlue(pixel,(packet)->blue); \
SetPixelAlpha(pixel,(QuantumRange-(packet)->opacity)); \
}
#define SetPixelGreen(pixel, value)
Definition: pixel-accessor.h:77
#define SetPixelRed(pixel, value)
Definition: pixel-accessor.h:82
#define SetPixelAlpha(pixel, value)
Definition: pixel-accessor.h:67
#define SetPixelBlue(pixel, value)
Definition: pixel-accessor.h:71
#define QuantumRange
Definition: magick-type.h:86
#define SetPixelRGBO (   pixel,
  packet 
)
Value:
{ \
SetPixelRed(pixel,(packet)->red); \
SetPixelGreen(pixel,(packet)->green); \
SetPixelBlue(pixel,(packet)->blue); \
SetPixelOpacity(pixel,(packet)->opacity); \
}
#define SetPixelGreen(pixel, value)
Definition: pixel-accessor.h:77
#define SetPixelRed(pixel, value)
Definition: pixel-accessor.h:82
#define SetPixelOpacity(pixel, value)
Definition: pixel-accessor.h:81
#define SetPixelBlue(pixel, value)
Definition: pixel-accessor.h:71

Referenced by CycleColormapImage(), HuffmanDecodeImage(), ImportIndexAlphaQuantum(), ImportIndexQuantum(), RandomChannelThresholdImage(), RandomThresholdImageChannel(), SetImage(), SortColormapByIntensity(), SyncImage(), and ThresholdImage().

#define SetPixelY (   pixel,
  value 
)    ((pixel)->red=(Quantum) (value))
#define SetPixelYellow (   pixel,
  value 
)    ((pixel)->blue=(Quantum) (value))

Function Documentation

static MagickRealType AbsolutePixelValue ( const MagickRealType  x)
inlinestatic
static MagickRealType GetPixelLuminance ( const Image *magick_restrict  image,
const PixelPacket *magick_restrict  pixel 
)
inlinestatic
static MagickBooleanType IsPixelAtDepth ( const Quantum  pixel,
const QuantumAny  range 
)
inlinestatic
static double PerceptibleReciprocal ( const double  x)
inlinestatic

References MagickEpsilon.

Referenced by AcquireResizeFilter(), AdaptiveBlurImageChannel(), AdaptiveSharpenImageChannel(), ApplyPixelCompositeMask(), AutoThresholdImage(), ColorBurn(), ColorDodge(), ComplexImages(), CompositeDarken(), CompositeDifference(), CompositeIn(), CompositeLighten(), CompositeLinearDodge(), CompositeMinus(), CompositeModulusAdd(), CompositeModulusSubtract(), CompositeOut(), CompositeXor(), ConvertLuvToXYZ(), ConvertRGBToCMYK(), ConvertRGBToxyY(), ConvertxyYToRGB(), ConvertXYZToLuv(), DefineImageColormap(), DistortImage(), Divide(), DrawDashPolygon(), DrawGradientImage(), EmbossImage(), FilterImageChannel(), FxEvaluateSubexpression(), FxGetSymbol(), GammaImageChannel(), 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(), OptimalTau(), ParseGeometry(), ParseMetaGeometry(), PegtopLight(), RemoveDuplicateLayers(), RGBTransformImage(), RotationalBlurImageChannel(), ScaleAnyToQuantum(), ScaleImage(), SelectiveBlurImageChannel(), SetImageAlphaChannel(), SharpenImageChannel(), SoftLight(), TraceArcPath(), TraceEllipse(), TransformRGBImage(), VerticalFilter(), and VividLight().

static Quantum PixelPacketIntensity ( const PixelPacket pixel)
inlinestatic
static void SetPixelViaMagickPixel ( const Image *magick_restrict  image,
const MagickPixelPacket *magick_restrict  magick_pixel,
PixelPacket *magick_restrict  pixel 
)
inlinestatic

References ClampToQuantum(), and MagickFalse.