| Framework | |
| Companion guides |
This reference describes the built-in filters available through the Core Image API. You can inspect filter parameters and see an image produced by a filter by using the CIFilterBrowser widget, available for ADC members from ADC Developer Connection Member Site.
CIColorCube
CIColorInvert
CIColorMap
CIColorMonochrome
CIColorPosterize
CIFalseColor
CIMaskToAlpha
CIMaximumComponent
CIMinimumComponent
CISepiaTone
CIAdditionCompositing
CIColorBlendMode
CIColorBurnBlendMode
CIColorDodgeBlendMode
CIDarkenBlendMode
CIDifferenceBlendMode
CIExclusionBlendMode
CIHardLightBlendMode
CIHueBlendMode
CILightenBlendMode
CILuminosityBlendMode
CIMaximumCompositing
CIMinimumCompositing
CIMultiplyBlendMode
CIMultiplyCompositing
CIOverlayBlendMode
CISaturationBlendMode
CIScreenBlendMode
CISoftLightBlendMode
CISourceAtopCompositing
CISourceInCompositing
CISourceOutCompositing
CISourceOverCompositing
CIBumpDistortion
CIBumpDistortionLinear
CICircleSplashDistortion
CICircularWrap
CIDisplacementDistortion
CIGlassDistortion
CIGlassLozenge
CIHoleDistortion
CIPinchDistortion
CITorusLensDistortion
CITwirlDistortion
CIVortexDistortion
CICheckerboardGenerator
CIConstantColorGenerator
CILenticularHaloGenerator
CIRandomGenerator
CIStarShineGenerator
CIStripesGenerator
CISunbeamsGenerator
CIAreaAverage
CIAreaHistogram
CIRowAverage
CIColumnAverage
CIAreaMaximum
CIAreaMinimum
CIAreaMaximumAlpha
CIAreaMinimumAlpha
CIBlendWithMask
CIBloom
CIComicEffect
CICrystallize
CIEdges
CIEdgeWork
CIGloom
CIHeightFieldFromMask
CIHexagonalPixellate
CILineOverlay
CIPixellate
CIPointillize
CIShadedMaterial
CISpotColor
CISpotLight
CIAffineClamp
CIAffineTile
CIEightfoldReflectedTile
CIFourfoldReflectedTile
CIFourfoldRotatedTile
CIFourfoldTranslatedTile
CIGlideReflectedTile
CIKaleidoscope
CIOpTile
CIParallelogramTile
CIPerspectiveTile
CISixfoldReflectedTile
CISixfoldRotatedTile
CITriangleTile
CITwelvefoldReflectedTile
CIBarsSwipeTransition
CICopyMachineTransition
CIDisintegrateWithMaskTransition
CIDissolveTransition
CIFlashTransition
CIModTransition
CIPageCurlTransition
CIRippleTransition
CISwipeTransition
Adds color components to achieve a brightening effect.
A CIImage class whose display name is Image.
A CIImage class whose display name is Background Image.
This filter is typically used to add highlights and lens flare effects. The formula used to create this filter is described in Thomas Porter and Tom Duff. 1984. Compositing Digital Images. Computer Graphics, 18 (3): 253-259.
CICategoryBuiltIn, CICategoryHighDynamicRange, CICategoryNonSquarePixels, CICategoryInterlaced, CICategoryStillImage, CICategoryVideo, CICategoryCompositeOperationPerforms an affine transform on a source image and then clamps the pixels at the edge of the transformed image, extending them outwards.
A CIImage class whose display name is Image.
An NSAffineTransform class whose display name is Transform.
This filter performs similarly to the CIAffineTransform filter except that it produces an image with infinite extent. You can use this filter when you need to blur an image but you want to avoid a soft, black fringe along the edges.
CICategoryBuiltIn, CICategoryStillImage, CICategoryVideo, CICategoryTileEffectApplies an affine transform to an image and then tiles the transformed image.
A CIImage class whose display name is Image.
An NSAffineTransform class whose display name is Transform.
CICategoryBuiltIn, CICategoryStillImage, CICategoryVideo, CICategoryTileEffectApplies an affine transform to an image.
A CIImage class whose display name is Image.
An NSAffineTransform class whose display name is Transform.
You can scale, translate, or rotate the input image. You can also apply a combination of these operations.
CICategoryBuiltIn, CICategoryStillImage, CICategoryVideo, CICategoryGeometryAdjustmentReturns a single-pixel image that contains the average color for the region of interest.
A CIImage class whose display name is Image. This is the image data you want to process.
The rectangular region of interest.
CICategoryReduction, CICategoryStillImage, CICategoryVideo, CICategoryBuiltInReturns a 1D image (inputCount wide by one pixel high) that contains the component-wise histogram computed for the specified rectangular area.
A CIImage class whose display name is Image. This is the image data you want to process.
The rectangular region of interest.
The number of “buckets” for the histogram.
A scaling factor. Core Image scales the histogram by dividing the scale by the area of the inputExtent rectangle.
CICategoryReduction, CICategoryStillImage, CICategoryVideo, CICategoryBuiltInReturns a single-pixel image that contains the maximum color components for the region of interest.
A CIImage class whose display name is Image. This is the image data you want to process.
The rectangular region of interest.
CICategoryReduction, CICategoryStillImage, CICategoryVideo, CICategoryBuiltInReturns a single-pixel image that contains the color vector with the maximum alpha value for the region of interest.
A CIImage class whose display name is Image. This is the image data you want to process.
The rectangular region of interest.
If more than one pixel exists with the maximum alpha value, Core Image returns the vector that has the lowest x and y coordinate.
CICategoryReduction, CICategoryStillImage, CICategoryVideo, CICategoryBuiltInReturns a single-pixel image that contains the minimum color components for the region of interest.
A CIImage class whose display name is Image. This is the image data you want to process.
The rectangular region of interest.
CICategoryReduction, CICategoryStillImage, CICategoryVideo, CICategoryBuiltInReturns a single-pixel image that contains the color vector with the minimum alpha value for the region of interest.
A CIImage class whose display name is Image. This is the image data you want to process.
The rectangular region of interest.
If more than one pixel exists with the minimum alpha value, Core Image returns the vector that has the lowest x and y coordinate.
CICategoryReduction, CICategoryStillImage, CICategoryVideo, CICategoryBuiltInTransitions from one image to another by passing a bar over the source image.
A CIImage class whose display name is Image.
A CIImage class whose display name is Target Image.
An NSNumber class whose attribute type is CIAttributeTypeAngle and whose display name is Angle.
Default value: 3.14 Minimum: 0.00 Maximum: 0.00 Slider minimum: 0.00 Slider maximum: 6.28 Identity: 0.00
An NSNumber class whose attribute type is CIAttributeTypeDistance and whose display name is Width.
Default value: 30.00 Minimum: 2.00 Maximum: 0.00 Slider minimum: 2.00 Slider maximum: 300.00 Identity: 30.00
An NSNumber class whose attribute type is CIAttributeTypeScalar and whose display name is Bar Offset.
Default value: 10.00 Minimum: 1.00 Maximum: 0.00 Slider minimum: 1.00 Slider maximum: 100.00 Identity: 10.00
An NSNumber class whose attribute type is CIAttributeTypeTime and whose display name is Time.
Default value: 0.00 Minimum: 0.00 Maximum: 1.00 Slider minimum: 0.00 Slider maximum: 1.00 Identity: 0.00
CICategoryBuiltIn, CICategoryStillImage, CICategoryVideo, CICategoryTransitionUses values from a grayscale mask to interpolate between an image and the background.
A CIImage class whose display name is Image.
A CIImage class whose display name is Background Image.
A CIImage class whose display name is Mask Image.
When a mask value is 0.0, the result is the background. When the mask value is 1.0, the result is the image.
CICategoryBuiltIn, CICategoryStillImage, CICategoryVideo, CICategoryStylizeSoftens edges and applies a pleasant glow to an image.
A CIImage class whose display name is Image.
An NSNumber class whose attribute type is CIAttributeTypeDistance and whose display name is Radius.
Default value: 10.00 Minimum: 0.00 Maximum: 0.00 Slider minimum: 0.00 Slider maximum: 100.00 Identity: 0.00
An NSNumber class whose attribute type is CIAttributeTypeScalar and whose display name is Intensity.
Default value: 1.00 Minimum: 0.00 Maximum: 0.00 Slider minimum: 0.00 Slider maximum: 1.00 Identity: 0.00
CICategoryBuiltIn, CICategoryStillImage, CICategoryVideo, CICategoryStylizeBlurs an image using a box-shaped convolution kernel.
A CIImage class whose display name is Image.
An NSNumber class whose attribute type is CIAttributeTypeDistance and whose display name is Radius.
Default value: 10.00 Minimum: 1.00 Maximum: 0.00 Slider minimum: 1.00 Slider maximum: 100.00 Identity: 0.00
CICategoryBuiltIn, CICategoryStillImage, CICategoryVideo, CICategoryBlurCreates a bump that originates at a specified point in the image.
A CIImage class whose display name is Image.
A CIVector class whose attribute type is CIAttributeTypePosition and whose display name is Center.
Default value: [150 150] Identity: (null)
An NSNumber class whose attribute type is CIAttributeTypeDistance and whose display name is Radius.
Default value: 300.00 Minimum: 0.00 Maximum: 0.00 Slider minimum: 0.00 Slider maximum: 600.00 Identity: 300.00
An NSNumber class whose attribute type is CIAttributeTypeScalar and whose display name is Scale.
Default value: 0.50 Minimum: -1.00 Maximum: 0.00 Slider minimum: -1.00 Slider maximum: 1.00 Identity: 0.00
The bump can be concave or convex.
CICategoryBuiltIn, CICategoryStillImage, CICategoryVideo, CICategoryDistortionEffectCreates a concave or convex distortion that originates from a line in the image.
A CIImage class whose display name is Image.
A CIVector class whose attribute type is CIAttributeTypePosition and whose display name is Center.
Default value: [300 300] Identity: (null)
An NSNumber class whose attribute type is CIAttributeTypeDistance and whose display name is Radius.
Default value: 300.00 Minimum: 0.00 Maximum: 0.00 Slider minimum: 0.00 Slider maximum: 600.00 Identity: 300.00
An NSNumber class whose attribute type is CIAttributeTypeAngle and whose display name is Angle.
Default value: 0.00 Minimum: 0.00 Maximum: 0.00 Slider minimum: 0.00 Slider maximum: 6.28 Identity: 0.00
An NSNumber class whose attribute type is CIAttributeTypeScalar and whose display name is Scale.
Default value: 0.50 Minimum: -1.00 Maximum: 0.00 Slider minimum: -1.00 Slider maximum: 1.00 Identity: 1.00
CICategoryBuiltIn, CICategoryStillImage, CICategoryVideo, CICategoryDistortionEffectGenerates a checkerboard pattern.
A CIVector class whose attribute type is CIAttributeTypePosition and whose display name is Center.
Default value: [150 150] Identity: (null)
A CIColor class whose display name is Color 1.
A CIColor class whose display name is Color 2.
An NSNumber class whose attribute type is CIAttributeTypeDistance and whose display name is Width.
Default value: 80.00 Minimum: 0.00 Maximum: 0.00 Slider minimum: 0.00 Slider maximum: 800.00 Identity: 80.00
An NSNumber class whose attribute type is CIAttributeTypeScalar and whose display name is Sharpness.
Default value: 1.00 Minimum: 0.00 Maximum: 1.00 Slider minimum: 0.00 Slider maximum: 1.00 Identity: 0.00
You can specify the checkerboard size and colors, and the sharpness of the pattern.
CICategoryBuiltIn, CICategoryStillImage, CICategoryVideo, CICategoryGeneratorDistorts the pixels starting at the circumference of a circle and emanating outward.
A CIImage class whose display name is Image.
A CIVector class whose attribute type is CIAttributeTypePosition and whose display name is Center.
Default value: [150 150] Identity: (null)
An NSNumber class whose attribute type is CIAttributeTypeDistance and whose display name is Radius.
Default value: 150.00 Minimum: 0.00 Maximum: 0.00 Slider minimum: 0.00 Slider maximum: 1000.00 Identity: 0.10
CICategoryBuiltIn, CICategoryStillImage, CICategoryVideo, CICategoryDistortionEffectSimulates a circular-shaped halftone screen.
A CIImage class whose display name is Image.
A CIVector class whose attribute type is CIAttributeTypePosition and whose display name is Center.
Default value: [150 150] Identity: (null)
An NSNumber class whose attribute type is CIAttributeTypeDistance and whose display name is Width.
Default value: 6.00 Minimum: 1.00 Maximum: 0.00 Slider minimum: 2.00 Slider maximum: 50.00 Identity: 0.00
An NSNumber class whose attribute type is CIAttributeTypeScalar and whose display name is Sharpness.
Default value: 0.70 Minimum: 0.00 Maximum: 0.00 Slider minimum: 0.00 Slider maximum: 1.00 Identity: 0.00
CICategoryBuiltIn, CICategoryStillImage, CICategoryVideo, CICategoryHalftoneEffectWraps an image around a transparent circle.
A CIImage class whose display name is Image.
A CIVector class whose attribute type is CIAttributeTypePosition and whose display name is Center.
Default value: [150 150] Identity: (null)
An NSNumber class whose attribute type is CIAttributeTypeDistance and whose display name is Radius.
Default value: 150.00 Minimum: 0.00 Maximum: 0.00 Slider minimum: 0.00 Slider maximum: 600.00 Identity: 0.00
An NSNumber class whose attribute type is CIAttributeTypeAngle and whose display name is Angle.
Default value: 0.00 Minimum: 0.00 Maximum: 0.00 Slider minimum: -3.14 Slider maximum: 3.14 Identity: 0.00
The distortion of the image increases with the distance from the center of the circle.
CICategoryBuiltIn, CICategoryStillImage, CICategoryVideo, CICategoryDistortionEffectCreates a color, halftoned rendition of the source image, using cyan, magenta, yellow, and black inks over a white page.
A CIImage class whose display name is Image.
A CIVector class whose attribute type is CIAttributeTypePosition and whose display name is Center.
Default value: [150 150] Identity: (null)
An NSNumber class whose attribute type is CIAttributeTypeDistance and whose display name is Width.
Default value: 6.00 Minimum: 2.00 Maximum: 0.00 Slider minimum: 2.00 Slider maximum: 100.00 Identity: 6.00
An NSNumber class whose attribute type is CIAttributeTypeAngle and whose display name is Angle.
Default value: 0.00 Minimum: 0.00 Maximum: 0.00 Slider minimum: -3.14 Slider maximum: 3.14 Identity: 0.00
An NSNumber class whose attribute type is CIAttributeTypeScalar and whose display name is Sharpness.
Default value: 0.70 Minimum: 0.00 Maximum: 0.00 Slider minimum: 0.00 Slider maximum: 1.00 Identity: 0.00
An NSNumber class whose attribute type is CIAttributeTypeScalar and whose display name is Gray Component Replacement.
Default value: 1.00 Minimum: 0.00 Maximum: 0.00 Slider minimum: 0.00 Slider maximum: 1.00 Identity: 1.00
An NSNumber class whose attribute type is CIAttributeTypeScalar and whose display name is Under Color Removal.
Default value: 0.50 Minimum: 0.00 Maximum: 0.00 Slider minimum: 0.00 Slider maximum: 1.00 Identity: 0.50
CICategoryBuiltIn, CICategoryStillImage, CICategoryVideo, CICategoryHalftoneEffectUses the luminance values of the background with the hue and saturation values of the source image.
A CIImage class whose display name is Image.
A CIImage class whose display name is Background Image.
This mode preserves the gray levels in the image. The formula used to create this filter is described in the PDF specification, which is available online from the Adobe Developer Center. See PDF Blend Modes: Addendum.
CICategoryBuiltIn, CICategoryNonSquarePixels, CICategoryInterlaced, CICategoryStillImage, CICategoryVideo, CICategoryCompositeOperationDarkens the background image samples to reflect the source image samples.
A CIImage class whose display name is Image.
A CIImage class whose display name is Background Image.
Source image sample values that specify white do not produce a change. The formula used to create this filter is described in the PDF specification, which is available online from the Adobe Developer Center. See PDF Blend Modes: Addendum.
CICategoryBuiltIn, CICategoryNonSquarePixels, CICategoryInterlaced, CICategoryStillImage, CICategoryVideo, CICategoryCompositeOperationAdjusts saturation, brightness, and contrast values.
A CIImage class whose display name is Image.
An NSNumber class whose attribute type is CIAttributeTypeScalar and whose display name is Saturation.
Default value: 1.00 Minimum: 0.00 Maximum: 0.00 Slider minimum: 0.00 Slider maximum: 2.00 Identity: 1.00
An NSNumber class whose attribute type is CIAttributeTypeScalar and whose display name is Brightness.
Default value: 0.00 Minimum: -1.00 Maximum: 0.00 Slider minimum: -1.00 Slider maximum: 1.00 Identity: 0.00
An NSNumber class whose attribute type is CIAttributeTypeScalar and whose display name is Contrast.
Default value: 1.00 Minimum: 0.25 Maximum: 0.00 Slider minimum: 0.25 Slider maximum: 4.00 Identity: 1.00
To calculate saturation, this filter linearly interpolates between a grayscale image (saturation = 0.0) and the original image (saturation = 1.0). The filter supports extrapolation: For values large than 1.0, it increases saturation.
To calculate contrast, this filter uses the following formula:
(color.rgb - vec3(0.5)) * contrast + vec3(0.5)
This filter calculates brightness by adding a bias value:
color.rgb + vec3(brightness)
CICategoryBuiltIn, CICategoryNonSquarePixels, CICategoryInterlaced, CICategoryStillImage, CICategoryVideo, CICategoryColorAdjustmentUses a three-dimensional color table to transform the source image pixels.
A CIImage class whose display name is Image.
An NSNumber class whose attribute type is CIAttributeTypeCount and whose display name is Cube Dimension.
Default value: 2.00 Minimum: 2.00 Maximum: 128.00 Slider minimum: 0.00 Slider maximum: 0.00 Identity: 2.00 The value must be a power of two.
An NSData class whose display name is Cube Data.
The color table must be composed of floating-point RGBA cells that use premultiplied alpha. The cells are organized in a standard ordering. The columns and rows of the data are indexed by red and green, respectively. Each data plane is followed by the next higher plane in the data, with planes indexed by blue.
CICategoryBuiltIn, CICategoryStillImage, CICategoryNonSquarePixels, CICategoryInterlaced, CICategoryVideo, CICategoryColorEffectBrightens the background image samples to reflect the source image samples.
A CIImage class whose display name is Image.
A CIImage class whose display name is Background Image.
Source image sample values that specify black do not produce a change. The formula used to create this filter is described in the PDF specification, which is available online from the Adobe Developer Center. See PDF Blend Modes: Addendum.
CICategoryBuiltIn, CICategoryNonSquarePixels, CICategoryInterlaced, CICategoryStillImage, CICategoryVideo, CICategoryCompositeOperationInverts the colors in an image.
A CIImage class whose display name is Image.
CICategoryBuiltIn, CICategoryStillImage, CICategoryNonSquarePixels, CICategoryInterlaced, CICategoryVideo, CICategoryColorEffectPerforms a nonlinear transformation of source color values using mapping values provided in a table.
A CIImage class whose display name is Image.
A CIImage class whose attribute type is CIAttributeTypeGradient and whose display name is Gradient Image.
CICategoryBuiltIn, CICategoryStillImage, CICategoryNonSquarePixels, CICategoryInterlaced, CICategoryVideo, CICategoryColorEffectMultiplies source color values and adds a bias factor to each color component.
A CIImage class whose display name is Image.
A CIVector class whose display name is Red Vector.
Default value: [1 0 0 0] Identity: [1 0 0 0]
A CIVector class whose display name is Green Vector.
Default value: [0 1 0 0] Identity: [0 1 0 0]
A CIVector class whose display name is Blue Vector.
Default value: [0 0 1 0] Identity: [0 0 1 0]
A CIVector class whose display name is Alpha Vector.
Default value: [0 0 0 1] Identity: [0 0 0 1]
A CIVector class whose display name is Bias Vector.
Default value: [0 0 0 0] Identity: [0 0 0 0]
This filter performs a matrix multiplication, as follows, to transform the color vector:
s.r = dot(s, redVector) |
s.g = dot(s, greenVector) |
s.b = dot(s, blueVector) |
s.a = dot(s, alphaVector) |
s = s + bias |
CICategoryBuiltIn, CICategoryNonSquarePixels, CICategoryInterlaced, CICategoryStillImage, CICategoryVideo, CICategoryColorAdjustmentRemaps colors so they fall within shades of a single color.
A CIImage class whose display name is Image.
A CIColor class whose attribute type is CIAttributeTypeOpaqueColor and whose display name is Color.
An NSNumber class whose attribute type is CIAttributeTypeScalar and whose display name is Intensity.
Default value: 1.00 Minimum: 0.00 Maximum: 0.00 Slider minimum: 0.00 Slider maximum: 1.00 Identity: 0.00
CICategoryBuiltIn, CICategoryStillImage, CICategoryNonSquarePixels, CICategoryInterlaced, CICategoryVideo, CICategoryColorEffectRemaps red, green, and blue color components to the number of brightness values you specify for each color component.
A CIImage class whose display name is Image.
An NSNumber class whose attribute type is CIAttributeTypeScalar and whose display name is Levels.
Default value: 6.00 Minimum: 1.00 Maximum: 0.00 Slider minimum: 2.00 Slider maximum: 30.00 Identity: 300.00
This filter flattens colors to achieve a look similar to that of a silk-screened poster.
CICategoryBuiltIn, CICategoryStillImage, CICategoryNonSquarePixels, CICategoryInterlaced, CICategoryVideo, CICategoryColorEffectReturns a 1-pixel high image that contains the average color for each scan column.
A CIImage class whose display name is Image. This is the image data you want to process.
The rectangular region of interest.
CICategoryReduction, CICategoryStillImage, CICategoryVideo, CICategoryBuiltInSimulates a comic book drawing by outlining edges and applying a color halftone effect.
A CIImage class whose display name is Image.
CICategoryBuiltIn, CICategoryStillImage, CICategoryVideo, CICategoryStylizeGenerates a solid color.
A CIColor class whose display name is Color.
You typically use the output of this filter as the input to another filter.
CICategoryBuiltIn, CICategoryStillImage, CICategoryVideo, CICategoryGeneratorTransitions from one image to another by simulating the effect of a copy machine.
A CIImage class whose display name is Image.
A CIImage class whose display name is Target Image.
A CIVector class whose attribute type is CIAttributeTypeRectangle and whose display name is Extent.
Default value: [0 0 300 300] Identity: (null)
A CIColor class whose attribute type is CIAttributeTypeOpaqueColor and whose display name is Color.
An NSNumber class whose attribute type is CIAttributeTypeTime and whose display name is Time.
Default value: 0.00 Minimum: 0.00 Maximum: 1.00 Slider minimum: 0.00 Slider maximum: 1.00 Identity: 0.00
An NSNumber class whose attribute type is CIAttributeTypeAngle and whose display name is Angle.
Default value: 0.00 Minimum: 0.00 Maximum: 0.00 Slider minimum: 0.00 Slider maximum: 6.28 Identity: 0.00
An NSNumber class whose attribute type is CIAttributeTypeDistance and whose display name is Width.
Default value: 200.00 Minimum: 0.10 Maximum: 0.00 Slider minimum: 0.10 Slider maximum: 500.00 Identity: 200.00