CIImageAccumulator

The CIImageAccumulator class enables feedback-based image processing for such things as iterative painting operations or fluid dynamics simulations. You use CIImageAccumulator objects in conjunction with other Core Image classes, such as CIFilter, CIImage, CIVector, and CIContext, to take advantage of the built-in Core Image filters when processing images.

Declaration

Parameters

extent

A rectangle that specifies the x-value of the rectangle origin, the y-value of the rectangle origin, and the width and height.

format

The format and size of each pixel. You must supply a pixel format constant, such as kCIFormatARGB8 (32 bit-per-pixel, fixed-point pixel format) or kCIFormatRGBAf (128 bit-per-pixel, floating-point pixel format). See CIImage Class Reference for more information about pixel format constants.

Declaration

Parameters

extent

A rectangle that specifies the x-value of the rectangle origin, the y-value of the rectangle origin, and the width and height.

format

The format and size of each pixel. You must supply a pixel format constant, such as kCIFormatARGB8 (32 bit-per-pixel, fixed-point pixel format) or kCIFormatRGBAf (128 bit-per-pixel, floating-point pixel format). See CIImage Class Reference for more information about pixel format constants.

colorSpace

A CGColorSpaceRef object describing the color space for the image accumulator.

Declaration

Parameters

extent

A rectangle that specifies the x-value of the rectangle origin, the y-value of the rectangle origin, and the width and height.

format

The format and size of each pixel. You must supply a pixel format constant, such askCIFormatARGB8 (32 bit-per-pixel, fixed-point pixel format) or kCIFormatRGBAf (128 bit-per-pixel, floating-point pixel format). See CIImage Class Reference for more information about pixel format constants.

Declaration

Parameters

extent

A rectangle that specifies the x-value of the rectangle origin, the y-value of the rectangle origin, and the width and height.

format

The format and size of each pixel. You must supply a pixel format constant, such askCIFormatARGB8 (32 bit-per-pixel, fixed-point pixel format) or kCIFormatRGBAf (128 bit-per-pixel, floating-point pixel format). See CIImage Class Reference for more information about pixel format constants.

colorSpace

A CGColorSpaceRef object describing the color space for the image accumulator.

Declaration

Parameters

im

The image object whose contents you want to assign to the image accumulator.

r

A rectangle that defines the subregion of the image object that’s changed since the last time you updated the image accumulator. You must guarantee that the new contents differ from the old only within the region specified by the this argument.

See Also

Declaration

Return Value

The rectangle that specifies the size of the image associated with the image accumulator. This rectangle is the size of the complete region of the working coordinate space, and is a fixed area. It specifies the x-value of the rectangle origin, the y-value of the rectangle origin, and the width and height.