MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
|
Go to the source code of this file.
Macros | |
#define | IlluminantX 0.95047 |
#define | IlluminantY 1.0 |
#define | IlluminantZ 1.08883 |
#define | CIEEpsilon (216.0/24389.0) |
#define | CIEK (24389.0/27.0) |
Functions | |
MagickPrivate double | GenerateDifferentialNoise (RandomInfo *, const Quantum, const NoiseType, const double) |
MagickPrivate size_t | GetOptimalKernelWidth (const double, const double) |
MagickPrivate size_t | GetOptimalKernelWidth1D (const double, const double) |
MagickPrivate size_t | GetOptimalKernelWidth2D (const double, const double) |
MagickPrivate void | ConvertHCLToRGB (const double, const double, const double, double *, double *, double *) |
MagickPrivate void | ConvertHCLpToRGB (const double, const double, const double, double *, double *, double *) |
MagickPrivate void | ConvertHSBToRGB (const double, const double, const double, double *, double *, double *) |
MagickPrivate void | ConvertHSIToRGB (const double, const double, const double, double *, double *, double *) |
MagickPrivate void | ConvertHSVToRGB (const double, const double, const double, double *, double *, double *) |
MagickPrivate void | ConvertHWBToRGB (const double, const double, const double, double *, double *, double *) |
MagickPrivate void | ConvertLCHabToRGB (const double, const double, const double, const IlluminantType, double *, double *, double *) |
MagickPrivate void | ConvertLCHuvToRGB (const double, const double, const double, const IlluminantType, double *, double *, double *) |
MagickPrivate void | ConvertRGBToHCL (const double, const double, const double, double *, double *, double *) |
MagickPrivate void | ConvertRGBToHCLp (const double, const double, const double, double *, double *, double *) |
MagickPrivate void | ConvertRGBToHSB (const double, const double, const double, double *, double *, double *) |
MagickPrivate void | ConvertRGBToHSI (const double, const double, const double, double *, double *, double *) |
MagickPrivate void | ConvertRGBToHSV (const double, const double, const double, double *, double *, double *) |
MagickPrivate void | ConvertRGBToHWB (const double, const double, const double, double *, double *, double *) |
MagickPrivate void | ConvertRGBToLab (const double, const double, const double, const IlluminantType, double *, double *, double *) |
MagickPrivate void | ConvertRGBToLCHab (const double, const double, const double, const IlluminantType, double *, double *, double *) |
MagickPrivate void | ConvertRGBToLCHuv (const double, const double, const double, const IlluminantType, double *, double *, double *) |
static void | ConvertAdobe98ToXYZ (const double red, const double green, const double blue, double *X, double *Y, double *Z) |
static void | ConvertDisplayP3ToXYZ (const double red, const double green, const double blue, double *X, double *Y, double *Z) |
static void | ConvertLabToXYZ (const double L, const double a, const double b, const IlluminantType illuminant, double *X, double *Y, double *Z) |
static void | ConvertLuvToXYZ (const double L, const double u, const double v, const IlluminantType illuminant, double *X, double *Y, double *Z) |
static void | ConvertProPhotoToXYZ (const double red, const double green, const double blue, double *X, double *Y, double *Z) |
static void | ConvertRGBToXYZ (const double red, const double green, const double blue, double *X, double *Y, double *Z) |
static void | ConvertXYZToAdobe98 (const double X, const double Y, const double Z, double *red, double *green, double *blue) |
static void | ConvertXYZToDisplayP3 (const double X, const double Y, const double Z, double *red, double *green, double *blue) |
static void | ConvertXYZToLab (const double X, const double Y, const double Z, const IlluminantType illuminant, double *L, double *a, double *b) |
static void | ConvertXYZToLuv (const double X, const double Y, const double Z, const IlluminantType illuminant, double *L, double *u, double *v) |
static void | ConvertXYZToProPhoto (const double X, const double Y, const double Z, double *red, double *green, double *blue) |
static void | ConvertXYZToRGB (const double X, const double Y, const double Z, double *red, double *green, double *blue) |
Variables | |
static const PrimaryInfo | illuminant_tristimulus [] |
#define CIEEpsilon (216.0/24389.0) |
Definition at line 31 of file gem-private.h.
#define CIEK (24389.0/27.0) |
Definition at line 32 of file gem-private.h.
#define IlluminantX 0.95047 |
Definition at line 28 of file gem-private.h.
#define IlluminantY 1.0 |
Definition at line 29 of file gem-private.h.
#define IlluminantZ 1.08883 |
Definition at line 30 of file gem-private.h.
|
inlinestatic |
Definition at line 95 of file gem-private.h.
References DecodePixelGamma(), and QuantumScale.
Referenced by ConvertAdobe98ToRGB().
|
inlinestatic |
Definition at line 117 of file gem-private.h.
References DecodePixelGamma(), and QuantumScale.
Referenced by ConvertDisplayP3ToRGB().
MagickPrivate void ConvertHCLpToRGB | ( | const double | , |
const double | , | ||
const double | , | ||
double * | , | ||
double * | , | ||
double * | |||
) |
Referenced by ModulateHCLp(), and TransformsRGBImage().
MagickPrivate void ConvertHCLToRGB | ( | const double | , |
const double | , | ||
const double | , | ||
double * | , | ||
double * | , | ||
double * | |||
) |
Referenced by ModulateHCL(), QueryColorCompliance(), and TransformsRGBImage().
MagickPrivate void ConvertHSBToRGB | ( | const double | , |
const double | , | ||
const double | , | ||
double * | , | ||
double * | , | ||
double * | |||
) |
Referenced by Contrast(), ModulateHSB(), QueryColorCompliance(), and TransformsRGBImage().
MagickPrivate void ConvertHSIToRGB | ( | const double | , |
const double | , | ||
const double | , | ||
double * | , | ||
double * | , | ||
double * | |||
) |
Referenced by ModulateHSI(), and TransformsRGBImage().
MagickPrivate void ConvertHSVToRGB | ( | const double | , |
const double | , | ||
const double | , | ||
double * | , | ||
double * | , | ||
double * | |||
) |
Referenced by ModulateHSV(), QueryColorCompliance(), and TransformsRGBImage().
MagickPrivate void ConvertHWBToRGB | ( | const double | , |
const double | , | ||
const double | , | ||
double * | , | ||
double * | , | ||
double * | |||
) |
Referenced by ModulateHWB(), QueryColorCompliance(), and TransformsRGBImage().
|
inlinestatic |
Definition at line 139 of file gem-private.h.
References CIEEpsilon, CIEK, illuminant_tristimulus, _PrimaryInfo::x, _PrimaryInfo::y, and _PrimaryInfo::z.
Referenced by ConvertLabToRGB(), and ConvertLCHabToXYZ().
MagickPrivate void ConvertLCHabToRGB | ( | const double | , |
const double | , | ||
const double | , | ||
const | IlluminantType, | ||
double * | , | ||
double * | , | ||
double * | |||
) |
Referenced by ModulateLCHab(), and TransformsRGBImage().
MagickPrivate void ConvertLCHuvToRGB | ( | const double | , |
const double | , | ||
const double | , | ||
const | IlluminantType, | ||
double * | , | ||
double * | , | ||
double * | |||
) |
Referenced by ModulateLCHuv(), and TransformsRGBImage().
|
inlinestatic |
Definition at line 170 of file gem-private.h.
References CIEEpsilon, CIEK, illuminant_tristimulus, and PerceptibleReciprocal().
Referenced by ConvertLCHuvToXYZ(), and ConvertLuvToRGB().
|
inlinestatic |
Definition at line 200 of file gem-private.h.
References DecodePixelGamma(), and QuantumScale.
Referenced by ConvertProPhotoToRGB().
MagickPrivate void ConvertRGBToHCL | ( | const double | , |
const double | , | ||
const double | , | ||
double * | , | ||
double * | , | ||
double * | |||
) |
Referenced by ColorThresholdImage(), ModulateHCL(), and sRGBTransformImage().
MagickPrivate void ConvertRGBToHCLp | ( | const double | , |
const double | , | ||
const double | , | ||
double * | , | ||
double * | , | ||
double * | |||
) |
Referenced by ModulateHCLp(), and sRGBTransformImage().
MagickPrivate void ConvertRGBToHSB | ( | const double | , |
const double | , | ||
const double | , | ||
double * | , | ||
double * | , | ||
double * | |||
) |
Referenced by ColorThresholdImage(), Contrast(), ModulateHSB(), and sRGBTransformImage().
MagickPrivate void ConvertRGBToHSI | ( | const double | , |
const double | , | ||
const double | , | ||
double * | , | ||
double * | , | ||
double * | |||
) |
Referenced by ModulateHSI(), and sRGBTransformImage().
MagickPrivate void ConvertRGBToHSV | ( | const double | , |
const double | , | ||
const double | , | ||
double * | , | ||
double * | , | ||
double * | |||
) |
Referenced by ColorThresholdImage(), ModulateHSV(), and sRGBTransformImage().
MagickPrivate void ConvertRGBToHWB | ( | const double | , |
const double | , | ||
const double | , | ||
double * | , | ||
double * | , | ||
double * | |||
) |
Referenced by ColorThresholdImage(), ModulateHWB(), and sRGBTransformImage().
MagickPrivate void ConvertRGBToLab | ( | const double | , |
const double | , | ||
const double | , | ||
const | IlluminantType, | ||
double * | , | ||
double * | , | ||
double * | |||
) |
Referenced by ColorThresholdImage(), and sRGBTransformImage().
MagickPrivate void ConvertRGBToLCHab | ( | const double | , |
const double | , | ||
const double | , | ||
const | IlluminantType, | ||
double * | , | ||
double * | , | ||
double * | |||
) |
Referenced by ModulateLCHab(), and sRGBTransformImage().
MagickPrivate void ConvertRGBToLCHuv | ( | const double | red, |
const double | green, | ||
const double | blue, | ||
const | IlluminantType, | ||
double * | luma, | ||
double * | chroma, | ||
double * | hue | ||
) |
Definition at line 1423 of file gem.c.
References ConvertRGBToXYZ(), and ConvertXYZToLCHuv().
Referenced by ModulateLCHuv(), and sRGBTransformImage().
|
inlinestatic |
Definition at line 222 of file gem-private.h.
References DecodePixelGamma(), and QuantumScale.
Referenced by ConvertRGBToAdobe98(), ConvertRGBToDisplayP3(), ConvertRGBToJzazbz(), ConvertRGBToLab(), ConvertRGBToLCHab(), ConvertRGBToLCHuv(), ConvertRGBToLMS(), ConvertRGBToLuv(), ConvertRGBToProPhoto(), ConvertRGBToxyY(), and sRGBTransformImage().
|
inlinestatic |
Definition at line 244 of file gem-private.h.
References EncodePixelGamma(), and QuantumRange.
Referenced by ConvertRGBToAdobe98().
|
inlinestatic |
Definition at line 263 of file gem-private.h.
References EncodePixelGamma(), and QuantumRange.
Referenced by ConvertRGBToDisplayP3().
|
inlinestatic |
Definition at line 282 of file gem-private.h.
References CIEEpsilon, CIEK, illuminant_tristimulus, _PrimaryInfo::x, _PrimaryInfo::y, and _PrimaryInfo::z.
Referenced by ConvertRGBToLab(), and ConvertXYZToLCHab().
|
inlinestatic |
Definition at line 310 of file gem-private.h.
References CIEEpsilon, CIEK, illuminant_tristimulus, PerceptibleReciprocal(), and _PrimaryInfo::y.
Referenced by ConvertRGBToLuv(), and ConvertXYZToLCHuv().
|
inlinestatic |
Definition at line 338 of file gem-private.h.
References EncodePixelGamma(), and QuantumRange.
Referenced by ConvertRGBToProPhoto().
|
inlinestatic |
Definition at line 357 of file gem-private.h.
References EncodePixelGamma(), and QuantumRange.
Referenced by ConvertAdobe98ToRGB(), ConvertDisplayP3ToRGB(), ConvertJzazbzToRGB(), ConvertLabToRGB(), ConvertLCHabToRGB(), ConvertLCHuvToRGB(), ConvertLMSToRGB(), ConvertLuvToRGB(), ConvertProPhotoToRGB(), ConvertxyYToRGB(), and TransformsRGBImage().
MagickPrivate double GenerateDifferentialNoise | ( | RandomInfo * | random_info, |
const | Quantum, | ||
const | NoiseType, | ||
const double | attenuate | ||
) |
Definition at line 1504 of file gem.c.
References GaussianNoise, GetPseudoRandomValue(), ImpulseNoise, LaplacianNoise, MagickEpsilon, MagickPI, MultiplicativeGaussianNoise, PerceptibleReciprocal(), PoissonNoise, QuantumRange, QuantumScale, random_info, RandomNoise, SigmaGaussian, SigmaImpulse, SigmaLaplacian, SigmaMultiplicativeGaussian, SigmaPoisson, SigmaRandom, SigmaUniform, TauGaussian, and UniformNoise.
Referenced by AddNoiseImage(), and ApplyEvaluateOperator().
MagickPrivate size_t GetOptimalKernelWidth | ( | const double | , |
const double | |||
) |
MagickPrivate size_t GetOptimalKernelWidth1D | ( | const double | , |
const double | |||
) |
Referenced by AcquireKernelBuiltIn(), EdgeImage(), EmbossImage(), MotionBlurImage(), SelectiveBlurImage(), and SpreadImage().
MagickPrivate size_t GetOptimalKernelWidth2D | ( | const double | radius, |
const double | sigma | ||
) |
Definition at line 1683 of file gem.c.
References GetMagickModule, IsEventLogging(), LogMagickEvent(), Magick2PI, MagickEpsilon, MagickFalse, PerceptibleReciprocal(), QuantumScale, and TraceEvent.
Referenced by AcquireKernelBuiltIn(), AdaptiveBlurImage(), AdaptiveSharpenImage(), OilPaintImage(), and SharpenImage().
|
static |
Definition at line 35 of file gem-private.h.
Referenced by ConvertLabToXYZ(), ConvertLuvToXYZ(), ConvertXYZToLab(), and ConvertXYZToLuv().