#include "MagickCore/montage.h"
#include "MagickCore/morphology.h"
#include "MagickCore/option.h"
+#include "MagickCore/pixel.h"
#include "MagickCore/policy.h"
#include "MagickCore/property.h"
#include "MagickCore/quantize.h"
{ "Noise", MagickNoiseOptions, UndefinedOptionFlag, MagickFalse },
{ "Orientation", MagickOrientationOptions, UndefinedOptionFlag, MagickFalse },
{ "PixelChannel", MagickPixelChannelOptions, UndefinedOptionFlag, MagickFalse },
+ { "PixelIntensity", MagickPixelIntensityOptions, UndefinedOptionFlag, MagickFalse },
{ "PixelTrait", MagickPixelTraitOptions, UndefinedOptionFlag, MagickFalse },
{ "Policy", MagickPolicyOptions, UndefinedOptionFlag, MagickFalse },
{ "PolicyDomain", MagickPolicyDomainOptions, UndefinedOptionFlag, MagickFalse },
{ "Yellow", YellowPixelChannel, UndefinedOptionFlag, MagickFalse },
{ (char *) NULL, UndefinedPixelChannel, UndefinedOptionFlag, MagickFalse }
},
+ PixelIntensityOptions[] =
+ {
+ { "Undefined", UndefinedPixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
+ { "Average", AveragePixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
+ { "Brightness", BrightnessPixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
+ { "Lightness", LightnessPixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
+ { "Rec601Luma", Rec601LumaPixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
+ { "Rec709Luma", Rec709LumaPixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
+ { "RMS", RMSPixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
+ { (char *) NULL, UndefinedPixelIntensityMethod, UndefinedOptionFlag, MagickFalse }
+ },
PixelTraitOptions[] =
{
{ "Undefined", UndefinedPixelTrait, UndefinedOptionFlag, MagickTrue },
case MagickNoiseOptions: return(NoiseOptions);
case MagickOrientationOptions: return(OrientationOptions);
case MagickPixelChannelOptions: return(PixelChannelOptions);
+ case MagickPixelIntensityOptions: return(PixelIntensityOptions);
case MagickPixelTraitOptions: return(PixelTraitOptions);
case MagickPolicyDomainOptions: return(PolicyDomainOptions);
case MagickPolicyRightsOptions: return(PolicyRightsOptions);
DefaultChannels = ((AllChannels | SyncChannels) &~ AlphaChannel)
} ChannelType; /* must correspond to PixelChannel */
-typedef enum
-{
- UndefinedInterpolatePixel,
- AverageInterpolatePixel, /* Average 4 nearest neighbours */
- Average9InterpolatePixel, /* Average 9 nearest neighbours */
- Average16InterpolatePixel, /* Average 16 nearest neighbours */
- BackgroundInterpolatePixel, /* Just return background color */
- BilinearInterpolatePixel, /* Triangular filter interpolation */
- BlendInterpolatePixel, /* blend of nearest 1, 2 or 4 pixels */
- CatromInterpolatePixel, /* Catmull-Rom interpolation */
- IntegerInterpolatePixel, /* Integer (floor) interpolation */
- MeshInterpolatePixel, /* Triangular Mesh interpolation */
- NearestInterpolatePixel, /* Nearest Neighbour Only */
- SplineInterpolatePixel /* Cubic Spline (blurred) interpolation */
- /* FilterInterpolatePixel, ** Use resize filter - (very slow) */
-} PixelInterpolateMethod;
-
typedef enum
{
UndefinedPixelChannel = 0,
SyncPixelChannel = MaxPixelChannels+1
} PixelChannel; /* must correspond to ChannelType */
+typedef enum
+{
+ UndefinedPixelIntensityMethod = 0,
+ AveragePixelIntensityMethod,
+ BrightnessPixelIntensityMethod,
+ LightnessPixelIntensityMethod,
+ Rec601LumaPixelIntensityMethod,
+ Rec709LumaPixelIntensityMethod,
+ RMSPixelIntensityMethod
+} PixelIntensityMethod;
+
+typedef enum
+{
+ UndefinedInterpolatePixel,
+ AverageInterpolatePixel, /* Average 4 nearest neighbours */
+ Average9InterpolatePixel, /* Average 9 nearest neighbours */
+ Average16InterpolatePixel, /* Average 16 nearest neighbours */
+ BackgroundInterpolatePixel, /* Just return background color */
+ BilinearInterpolatePixel, /* Triangular filter interpolation */
+ BlendInterpolatePixel, /* blend of nearest 1, 2 or 4 pixels */
+ CatromInterpolatePixel, /* Catmull-Rom interpolation */
+ IntegerInterpolatePixel, /* Integer (floor) interpolation */
+ MeshInterpolatePixel, /* Triangular Mesh interpolation */
+ NearestInterpolatePixel, /* Nearest Neighbour Only */
+ SplineInterpolatePixel /* Cubic Spline (blurred) interpolation */
+ /* FilterInterpolatePixel, ** Use resize filter - (very slow) */
+} PixelInterpolateMethod;
+
typedef enum
{
UndefinedPixelTrait = 0x000000,