CIImageAccumulator Class Reference
| Inherits from | |
| Conforms to | |
| Framework | Library/Frameworks/QuartzCore.framework |
| Availability | OS X v10.4 and later |
| Companion guide | |
| Declared in | CIImageAccumulator.h |
Overview
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.
Tasks
Creating an Image Accumulator
Initializing an Image Accumulator
Setting an Image
Obtaining Data From an Image Accumulator
Resetting an Accumulator
Class Methods
imageAccumulatorWithExtent:format:
Creates an image accumulator with the specified extent and pixel format.
Parameters
- r
A rectangle that specifies the x-value of the rectangle origin, the y-value of the rectangle origin, and the width and height.
- f
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) orkCIFormatRGBAf(128 bit-per-pixel, floating-point pixel format). See CIImage Class Reference for more information about pixel format constants.
Return Value
The image accumulator object.
Availability
- OS X v10.4 and later.
See Also
Declared In
CIImageAccumulator.hInstance Methods
clear
Resets the accumulator, discarding any pending updates and the current content.
Availability
- Available in OS X v10.5 and later.
Declared In
CIImageAccumulator.hextent
Returns the extent of the image associated with the image accumulator.
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.
Availability
- OS X v10.4 and later.
Declared In
CIImageAccumulator.hformat
Returns the pixel format of the image accumulator.
Return Value
The pixel format of the image accumulator.
Availability
- OS X v10.4 and later.
Declared In
CIImageAccumulator.himage
Returns the current contents of the image accumulator.
Return Value
The image object that represents the current contents of the image accumulator.
Availability
- OS X v10.4 and later.
Declared In
CIImageAccumulator.hinitWithExtent:format:
Initializes an image accumulator with the specified extent and pixel format.
Parameters
- r
A rectangle that specifies the x-value of the rectangle origin, the y-value of the rectangle origin, and the width and height.
- f
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) orkCIFormatRGBAf(128 bit-per-pixel, floating-point pixel format). See CIImage Class Reference for more information about pixel format constants.
Return Value
The initialized image accumulator object.
Availability
- OS X v10.4 and later.
See Also
Declared In
CIImageAccumulator.hsetImage:
Sets the contents of the image accumulator to the contents of the specified image object.
Parameters
- im
The image object whose contents you want to assign to the image accumulator.
Availability
- OS X v10.4 and later.
See Also
Declared In
CIImageAccumulator.hsetImage:dirtyRect:
Updates an image accumulator with a subregion of an image object.
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.
Discussion
For additional details on using this method, see “Imaging Dynamical Systems” in Core Image Programming Guide.
Availability
- OS X v10.4 and later.
See Also
Declared In
CIImageAccumulator.h© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-01-05)