MagickCore  6.8.9
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 == (const IndexPacket *) NULL) ? 0 : (*(indexes)))
 
#define GetPixelL(pixel)   ((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)
 
#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 MagickRealType GetPixelLuma (const Image *restrict image, const PixelPacket *restrict pixel)
 
static MagickRealType GetPixelLuminance (const Image *restrict image, const PixelPacket *restrict pixel)
 
static MagickBooleanType IsPixelAtDepth (const Quantum pixel, const QuantumAny range)
 
static MagickBooleanType IsPixelGray (const PixelPacket *pixel)
 
static Quantum PixelPacketIntensity (const PixelPacket *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))

Referenced by DespeckleImage().

#define GetPixelBlue (   pixel)    ((pixel)->blue)

Referenced by AcquireColorCache(), AdaptiveBlurImageChannel(), AdaptiveSharpenImageChannel(), AdaptiveThresholdImage(), AddNoiseImageChannel(), AlphaBlendMagickPixelPacket(), AppendImages(), AssociateAlphaPixel(), BilevelImageChannel(), BlackThresholdImageChannel(), BlueShiftImage(), ClampImageChannel(), Classify(), ClipPixelCacheNexus(), ClosestColor(), ClutImageChannel(), ColorDecisionListImage(), ColorizeImage(), ColorMatrixImage(), ColorToNodeId(), CompareImageChannels(), CompositeImageChannel(), ContrastImage(), ContrastStretchImageChannel(), DespeckleImage(), DirectToColormapImage(), EqualizeImageChannel(), EvaluateImageChannel(), EvaluateImages(), ExportBGRAQuantum(), ExportBGRQuantum(), ExportBlueQuantum(), ExportCbYCrYQuantum(), ExportCharPixel(), ExportCMYKAQuantum(), ExportCMYKQuantum(), ExportDoublePixel(), ExportFloatPixel(), ExportIntegerPixel(), ExportLongPixel(), ExportQuantumPixel(), ExportQuantumPixels(), ExportRGBAQuantum(), ExportRGBQuantum(), ExportShortPixel(), FilterImageChannel(), FunctionImageChannel(), FuzzyColorMatch(), GammaImageChannel(), 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(), 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(), and WhiteThresholdImageChannel().

#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(), ClipPixelCacheNexus(), ClosestColor(), ClutImageChannel(), ColorDecisionListImage(), ColorizeImage(), ColorMatrixImage(), ColorToNodeId(), CompareImageChannels(), CompositeImageChannel(), ContrastImage(), ContrastStretchImageChannel(), DespeckleImage(), DirectToColormapImage(), EqualizeImageChannel(), EvaluateImageChannel(), EvaluateImages(), ExportBGRAQuantum(), ExportBGRQuantum(), ExportCbYCrYQuantum(), ExportCharPixel(), ExportCMYKAQuantum(), ExportCMYKQuantum(), ExportDoublePixel(), ExportFloatPixel(), ExportGreenQuantum(), ExportIntegerPixel(), ExportLongPixel(), ExportQuantumPixel(), ExportQuantumPixels(), ExportRGBAQuantum(), ExportRGBQuantum(), ExportShortPixel(), FilterImageChannel(), FunctionImageChannel(), FuzzyColorMatch(), GammaImageChannel(), 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(), 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(), and WhiteThresholdImageChannel().

#define GetPixelIndex (   indexes)    ((indexes == (const IndexPacket *) NULL) ? 0 : (*(indexes)))

Referenced by AdaptiveBlurImageChannel(), AdaptiveSharpenImageChannel(), AdaptiveThresholdImage(), AddNoiseImageChannel(), AlphaBlendMagickPixelPacket(), AppendImages(), BilevelImageChannel(), BlackThresholdImageChannel(), ChopImage(), ClampImageChannel(), ClassifyImageColors(), ClipPixelCacheNexus(), ClutImageChannel(), ColorMatrixImage(), CompareImageChannels(), CompositeImageChannel(), ContrastStretchImageChannel(), CycleColormapImage(), EqualizeImageChannel(), EvaluateImageChannel(), EvaluateImages(), ExportBlackQuantum(), ExportCharPixel(), ExportCMYKAQuantum(), 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(), IsPaletteImage(), 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 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(), DirectToColormapImage(), EqualizeImageChannel(), EvaluateImageChannel(), ExportAlphaQuantum(), ExportBGRAQuantum(), ExportCharPixel(), ExportCMYKAQuantum(), ExportDoublePixel(), ExportFloatPixel(), ExportGrayAlphaQuantum(), ExportIndexAlphaQuantum(), ExportIntegerPixel(), ExportLongPixel(), ExportOpacityQuantum(), ExportQuantumPixel(), ExportRGBAQuantum(), ExportShortPixel(), FilterImageChannel(), FloodfillPaintImage(), FunctionImageChannel(), GammaImageChannel(), GetFuzzDistortion(), GetImageBackgroundColor(), GetImageChannelDepth(), GetImageChannelFeatures(), GetImageChannelKurtosis(), GetImageChannelStatistics(), 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(), ClipPixelCacheNexus(), ClosestColor(), ClutImageChannel(), ColorDecisionListImage(), ColorizeImage(), ColorMatrixImage(), ColorToNodeId(), CompareImageChannels(), CompositeImageChannel(), ContrastImage(), ContrastStretchImageChannel(), DespeckleImage(), DirectToColormapImage(), EqualizeImageChannel(), EvaluateImageChannel(), EvaluateImages(), ExportBGRAQuantum(), ExportBGRQuantum(), ExportCbYCrYQuantum(), ExportCharPixel(), ExportCMYKAQuantum(), ExportCMYKQuantum(), ExportDoublePixel(), ExportFloatPixel(), ExportIntegerPixel(), ExportLongPixel(), ExportQuantumPixel(), ExportQuantumPixels(), ExportRedQuantum(), ExportRGBAQuantum(), ExportRGBQuantum(), ExportShortPixel(), FilterImageChannel(), FunctionImageChannel(), FuzzyColorMatch(), GammaImageChannel(), 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(), 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(), 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))
#define SetPixelBlue (   pixel,
  value 
)    ((pixel)->blue=(Quantum) (value))

Referenced by AdaptiveBlurImageChannel(), AdaptiveSharpenImageChannel(), AdaptiveThresholdImage(), AddNoiseImageChannel(), AppendImages(), AssignImageColors(), 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(), GetVirtualPixelsFromNexus(), HaldClutImageChannel(), HorizontalFilter(), ImportBGRAQuantum(), ImportBGRQuantum(), ImportBlueQuantum(), ImportCbYCrYQuantum(), ImportCharPixel(), ImportCMYKAQuantum(), ImportCMYKQuantum(), ImportDoublePixel(), ImportFloatPixel(), ImportGrayAlphaQuantum(), ImportGrayQuantum(), ImportIndexAlphaQuantum(), ImportIntegerPixel(), ImportLongPixel(), ImportQuantumPixel(), ImportQuantumPixels(), ImportRGBAQuantum(), ImportRGBQuantum(), ImportShortPixel(), LevelImageChannel(), LevelizeImageChannel(), 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(), 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(), AssignImageColors(), 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(), GetVirtualPixelsFromNexus(), HaldClutImageChannel(), HorizontalFilter(), ImportBGRAQuantum(), ImportBGRQuantum(), ImportCbYCrYQuantum(), ImportCharPixel(), ImportCMYKAQuantum(), ImportCMYKQuantum(), ImportDoublePixel(), ImportFloatPixel(), ImportGrayAlphaQuantum(), ImportGrayQuantum(), ImportGreenQuantum(), ImportIndexAlphaQuantum(), ImportIntegerPixel(), ImportLongPixel(), ImportQuantumPixel(), ImportQuantumPixels(), ImportRGBAQuantum(), ImportRGBQuantum(), ImportShortPixel(), LevelImageChannel(), LevelizeImageChannel(), 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(), and WhiteThresholdImageChannel().

#define SetPixelIndex (   indexes,
  value 
)
Value:
{ \
if (indexes != (IndexPacket *) NULL) \
(*(indexes)=(IndexPacket) (value)); \
}
Quantum IndexPacket
Definition: pixel.h:129

Referenced by AdaptiveBlurImageChannel(), AdaptiveSharpenImageChannel(), AdaptiveThresholdImage(), AddNoiseImageChannel(), AppendImages(), AssignImageColors(), BilevelImageChannel(), BlackThresholdImageChannel(), ClampImageChannel(), Classify(), ClipPixelCacheNexus(), ClutImageChannel(), ColorMatrixImage(), CombineImages(), CompositeImageChannel(), ConsolidateCMYKImages(), ContrastStretchImageChannel(), CycleColormapImage(), DespeckleImage(), DirectToColormapImage(), EqualizeImageChannel(), EvaluateImageChannel(), EvaluateImages(), FilterImageChannel(), FloodfillPaintImage(), FlopImage(), FloydSteinbergDither(), FunctionImageChannel(), FxImageChannel(), GammaImageChannel(), HaldClutImageChannel(), HorizontalFilter(), HuffmanDecodeImage(), ImportBlackQuantum(), ImportCharPixel(), ImportCMYKAQuantum(), 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(), 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(), ExportQuantumPixels(), FilterImageChannel(), FloodfillPaintImage(), FloydSteinbergDither(), FunctionImageChannel(), FxImageChannel(), GammaImageChannel(), GetVirtualPixelsFromNexus(), HaldClutImageChannel(), HorizontalFilter(), ImportBGRQuantum(), ImportCharPixel(), ImportDoublePixel(), ImportFloatPixel(), ImportGrayAlphaQuantum(), ImportGrayQuantum(), ImportIndexAlphaQuantum(), ImportIntegerPixel(), ImportLongPixel(), ImportQuantumPixel(), ImportQuantumPixels(), 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(), AssignImageColors(), 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(), GetVirtualPixelsFromNexus(), HaldClutImageChannel(), HorizontalFilter(), ImportBGRAQuantum(), ImportBGRQuantum(), ImportCbYCrYQuantum(), ImportCharPixel(), ImportCMYKAQuantum(), ImportCMYKQuantum(), ImportDoublePixel(), ImportFloatPixel(), ImportGrayAlphaQuantum(), ImportGrayQuantum(), ImportIndexAlphaQuantum(), ImportIntegerPixel(), ImportLongPixel(), ImportQuantumPixel(), ImportQuantumPixels(), ImportRedQuantum(), ImportRGBAQuantum(), ImportRGBQuantum(), ImportShortPixel(), LevelImageChannel(), LevelizeImageChannel(), 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(), 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:87
#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:87
#define SetPixelAlpha(pixel, value)
Definition: pixel-accessor.h:67
#define SetPixelBlue(pixel, value)
Definition: pixel-accessor.h:71
#define QuantumRange
Definition: magick-type.h:94
#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:87
#define SetPixelOpacity(pixel, value)
Definition: pixel-accessor.h:85
#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

Referenced by IsPixelGray().

static MagickRealType GetPixelLuma ( const Image *restrict  image,
const PixelPacket *restrict  pixel 
)
inlinestatic
static MagickRealType GetPixelLuminance ( const Image *restrict  image,
const PixelPacket *restrict  pixel 
)
inlinestatic
static MagickBooleanType IsPixelAtDepth ( const Quantum  pixel,
const QuantumAny  range 
)
inlinestatic
static Quantum PixelPacketIntensity ( const PixelPacket pixel)
inlinestatic