Skip to content

Instantly share code, notes, and snippets.

Created January 26, 2012 15:15
Show Gist options
  • Save anonymous/1683212 to your computer and use it in GitHub Desktop.
Save anonymous/1683212 to your computer and use it in GitHub Desktop.
iMagick-enums
REBOL []
iMagick-enums: [
"NoiseType" [
UniformNoise
GaussianNoise
MultiplicativeGaussianNoise
ImpulseNoise
LaplacianNoise
PoissonNoise
RandomNoise
]
"MetricType" [
AbsoluteErrorMetric
MeanAbsoluteErrorMetric
MeanErrorPerPixelMetric
MeanSquaredErrorMetric
PeakAbsoluteErrorMetric
PeakSignalToNoiseRatioMetric
RootMeanSquaredErrorMetric
NormalizedCrossCorrelationErrorMetric
]
"ImageLayerMethod" [
CoalesceLayer
CompareAnyLayer
CompareClearLayer
CompareOverlayLayer
DisposeLayer
OptimizeLayer
OptimizeImageLayer
OptimizePlusLayer
OptimizeTransLayer
RemoveDupsLayer
RemoveZeroLayer
CompositeLayer
MergeLayer
FlattenLayer
MosaicLayer
TrimBoundsLayer
]
"DistortImageMethod" [
AffineDistortion
AffineProjectionDistortion
ScaleRotateTranslateDistortion
PerspectiveDistortion
PerspectiveProjectionDistortion
[BilinearForwardDistortion BilinearDistortion]
BilinearReverseDistortion
PolynomialDistortion
ArcDistortion
PolarDistortion
DePolarDistortion
BarrelDistortion
BarrelInverseDistortion
ShepardsDistortion
SentinelDistortion
]
"MorphologyMethod" [
;/* Convolve / Correlate weighted sums */
ConvolveMorphology ;/* Weighted Sum with reflected kernel */
CorrelateMorphology ;/* Weighted Sum using a sliding window */
;/* Low-level Morphology methods */
ErodeMorphology ;/* Minimum Value in Neighbourhood */
DilateMorphology ;/* Maximum Value in Neighbourhood */
ErodeIntensityMorphology ;/* Pixel Pick using GreyScale Erode */
DilateIntensityMorphology ;/* Pixel Pick using GreyScale Dialate */
DistanceMorphology ;/* Add Kernel Value take Minimum */
;/* Second-level Morphology methods */
OpenMorphology ;/* Dilate then Erode */
CloseMorphology ;/* Erode then Dilate */
OpenIntensityMorphology ;/* Pixel Pick using GreyScale Open */
CloseIntensityMorphology ;/* Pixel Pick using GreyScale Close */
SmoothMorphology ;/* Open then Close */
;/* Difference Morphology methods */
EdgeInMorphology ;/* Dilate difference from Original */
EdgeOutMorphology ;/* Erode difference from Original */
EdgeMorphology ;/* Dilate difference with Erode */
TopHatMorphology ;/* Close difference from Original */
BottomHatMorphology ;/* Open difference from Original */
;/* Recursive Morphology methods */
HitAndMissMorphology ;/* Foreground/Background pattern matching */
ThinningMorphology ;/* Remove matching pixels from image */
ThickenMorphology ;/* Add matching pixels from image */
]
"DitherMethod" [
NoDitherMethod
RiemersmaDitherMethod
FloydSteinbergDitherMethod
]
"InterpolatePixelMethod" [
AverageInterpolatePixel
BicubicInterpolatePixel
BilinearInterpolatePixel
FilterInterpolatePixel
IntegerInterpolatePixel
MeshInterpolatePixel
NearestNeighborInterpolatePixel
SplineInterpolatePixel
]
"VirtualPixelMethod" [
BackgroundVirtualPixelMethod
ConstantVirtualPixelMethod ;/* deprecated */
DitherVirtualPixelMethod
EdgeVirtualPixelMethod
MirrorVirtualPixelMethod
RandomVirtualPixelMethod
TileVirtualPixelMethod
TransparentVirtualPixelMethod
MaskVirtualPixelMethod
BlackVirtualPixelMethod
GrayVirtualPixelMethod
WhiteVirtualPixelMethod
HorizontalTileVirtualPixelMethod
VerticalTileVirtualPixelMethod
HorizontalTileEdgeVirtualPixelMethod
VerticalTileEdgeVirtualPixelMethod
CheckerTileVirtualPixelMethod
]
"CompositeOperator" [
NoCompositeOp
ModulusAddCompositeOp
AtopCompositeOp
BlendCompositeOp
BumpmapCompositeOp
ChangeMaskCompositeOp
ClearCompositeOp
ColorBurnCompositeOp
ColorDodgeCompositeOp
ColorizeCompositeOp
CopyBlackCompositeOp
CopyBlueCompositeOp
CopyCompositeOp
CopyCyanCompositeOp
CopyGreenCompositeOp
CopyMagentaCompositeOp
CopyOpacityCompositeOp
CopyRedCompositeOp
CopyYellowCompositeOp
DarkenCompositeOp
DstAtopCompositeOp
DstCompositeOp
DstInCompositeOp
DstOutCompositeOp
DstOverCompositeOp
DifferenceCompositeOp
DisplaceCompositeOp
DissolveCompositeOp
ExclusionCompositeOp
HardLightCompositeOp
HueCompositeOp
InCompositeOp
LightenCompositeOp
LinearLightCompositeOp
LuminizeCompositeOp
MinusCompositeOp
ModulateCompositeOp
MultiplyCompositeOp
OutCompositeOp
OverCompositeOp
OverlayCompositeOp
PlusCompositeOp
ReplaceCompositeOp
SaturateCompositeOp
ScreenCompositeOp
SoftLightCompositeOp
SrcAtopCompositeOp
SrcCompositeOp
SrcInCompositeOp
SrcOutCompositeOp
SrcOverCompositeOp
ModulusSubtractCompositeOp
ThresholdCompositeOp
XorCompositeOp
DivideCompositeOp
DistortCompositeOp
BlurCompositeOp
PegtopLightCompositeOp
VividLightCompositeOp
PinLightCompositeOp
LinearDodgeCompositeOp
LinearBurnCompositeOp
MathematicsCompositeOp
]
"MagickEvaluateOperator" [
AddEvaluateOperator
AndEvaluateOperator
DivideEvaluateOperator
LeftShiftEvaluateOperator
MaxEvaluateOperator
MinEvaluateOperator
MultiplyEvaluateOperator
OrEvaluateOperator
RightShiftEvaluateOperator
SetEvaluateOperator
SubtractEvaluateOperator
XorEvaluateOperator
PowEvaluateOperator
LogEvaluateOperator
ThresholdEvaluateOperator
ThresholdBlackEvaluateOperator
ThresholdWhiteEvaluateOperator
GaussianNoiseEvaluateOperator
ImpulseNoiseEvaluateOperator
LaplacianNoiseEvaluateOperator
MultiplicativeNoiseEvaluateOperator
PoissonNoiseEvaluateOperator
UniformNoiseEvaluateOperator
CosineEvaluateOperator
SineEvaluateOperator
AddModulusEvaluateOperator
MeanEvaluateOperator
AbsEvaluateOperator
ExponentialEvaluateOperator
]
"StorageType" [
CharPixel
DoublePixel
FloatPixel
IntegerPixel
LongPixel
QuantumPixel
ShortPixel
]
"MagickFunction" [
PolynomialFunction
SinusoidFunction
ArcsinFunction
ArctanFunction
]
"MontageMode" [
FrameMode
UnframeMode
ConcatenateMode
]
"PreviewType" [
RotatePreview
ShearPreview
RollPreview
HuePreview
SaturationPreview
BrightnessPreview
GammaPreview
SpiffPreview
DullPreview
GrayscalePreview
QuantizePreview
DespecklePreview
ReduceNoisePreview
AddNoisePreview
SharpenPreview
BlurPreview
ThresholdPreview
EdgeDetectPreview
SpreadPreview
SolarizePreview
ShadePreview
RaisePreview
SegmentPreview
SwirlPreview
ImplodePreview
WavePreview
OilPaintPreview
CharcoalDrawingPreview
JPEGPreview
]
"ColorspaceType" [
RGBColorspace
GRAYColorspace
TransparentColorspace
OHTAColorspace
LabColorspace
XYZColorspace
YCbCrColorspace
YCCColorspace
YIQColorspace
YPbPrColorspace
YUVColorspace
CMYKColorspace
sRGBColorspace
HSBColorspace
HSLColorspace
HWBColorspace
Rec601LumaColorspace
Rec601YCbCrColorspace
Rec709LumaColorspace
Rec709YCbCrColorspace
LogColorspace
CMYColorspace
]
"OrientationType" [
TopLeftOrientation
TopRightOrientation
BottomRightOrientation
BottomLeftOrientation
LeftTopOrientation
RightTopOrientation
RightBottomOrientation
LeftBottomOrientation
]
"FilterTypes" [
PointFilter
BoxFilter
TriangleFilter
HermiteFilter
HanningFilter
HammingFilter
BlackmanFilter
GaussianFilter
QuadraticFilter
CubicFilter
CatromFilter
MitchellFilter
JincFilter
SincFilter
SincFastFilter
KaiserFilter
WelshFilter
ParzenFilter
BohmanFilter
BartlettFilter
LagrangeFilter
LanczosFilter
LanczosSharpFilter
Lanczos2Filter
Lanczos2SharpFilter
RobidouxFilter
SentinelFilter ;/* a count of all the filters not a real filter */
]
"ChannelType" [
RedChannel = 1
GrayChannel = 1
CyanChannel = 1
GreenChannel = 2
MagentaChannel = 2
BlueChannel = 4
YellowChannel = 4
AlphaChannel = 8
OpacityChannel = 8
MatteChannel = 8 ;/* deprecated */
BlackChannel = 32
IndexChannel = 32
AllChannels = 47
; /* special channel types */
TrueAlphaChannel = 64 ;/* extract actual alpha channel from opacity */
RGBChannels = 128 ;/* set alpha from grayscale mask in RGB */
GrayChannels = 128
SyncChannels = 256 ;/* channels should be modified equally */
DefaultChannels = 295 ;( (AllChannels | SyncChannels) &~ OpacityChannel)
]
"AlphaChannelType" [
ActivateAlphaChannel
BackgroundAlphaChannel
CopyAlphaChannel
DeactivateAlphaChannel
ExtractAlphaChannel
OpaqueAlphaChannel
ResetAlphaChannel ;/* deprecated */
SetAlphaChannel
ShapeAlphaChannel
TransparentAlphaChannel
]
"CompressionType" [
NoCompression
BZipCompression
DXT1Compression
DXT3Compression
DXT5Compression
FaxCompression
Group4Compression
JPEGCompression
JPEG2000Compression
LosslessJPEGCompression
LZWCompression
RLECompression
ZipCompression
ZipSCompression
PizCompression
Pxr24Compression
B44Compression
B44ACompression
]
"DisposeType" [
NoneDispose
BackgroundDispose
PreviousDispose
]
"GravityType" [
ForgetGravity
NorthWestGravity
NorthGravity
NorthEastGravity
WestGravity
CenterGravity
EastGravity
SouthWestGravity
SouthGravity
SouthEastGravity
StaticGravity
]
"InterlaceType" [
NoInterlace
LineInterlace
PlaneInterlace
PartitionInterlace
GIFInterlace
JPEGInterlace
PNGInterlace
]
"ImageType" [
BilevelType
GrayscaleType
GrayscaleMatteType
PaletteType
PaletteMatteType
TrueColorType
TrueColorMatteType
ColorSeparationType
ColorSeparationMatteType
OptimizeType
PaletteBilevelMatteType
]
"ResolutionType" [
PixelsPerInchResolution
PixelsPerCentimeterResolution
]
"RenderingIntent" [
SaturationIntent
PerceptualIntent
AbsoluteIntent
RelativeIntent
]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment