| Inherits from | |
| Conforms to | |
| Framework | Library/Frameworks/QuartzCore.framework |
| Availability | Mac OS X v10.4 and later
|
| Companion guide | |
| Declared in | CIImageAccumulator.h |
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.
Creates an image accumulator with the specified extent and pixel format.
+ (CIImageAccumulator *)imageAccumulatorWithExtent:(CGRect)r format:(CIFormat)f
A rectangle that specifies the x-value of the rectangle origin, the y-value of the rectangle origin, and the width and height.
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.
The image accumulator object.
CIImageAccumulator.hResets the accumulator, discarding any pending updates and the current content.
- (void)clear
CIImageAccumulator.hReturns the extent of the image associated with the image accumulator.
- (CGRect)extent
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.
CIImageAccumulator.hReturns the pixel format of the image accumulator.
- (CIFormat)format
The pixel format of the image accumulator.
CIImageAccumulator.hReturns the current contents of the image accumulator.
- (CIImage *)image
The image object that represents the current contents of the image accumulator.
CIImageAccumulator.hInitializes an image accumulator with the specified extent and pixel format.
- (id)initWithExtent:(CGRect)rformat:(CIFormat)f
A rectangle that specifies the x-value of the rectangle origin, the y-value of the rectangle origin, and the width and height.
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.
The initialized image accumulator object.
CIImageAccumulator.hSets the contents of the image accumulator to the contents of the specified image object.
- (void)setImage:(CIImage *)im
The image object whose contents you want to assign to the image accumulator.
CIImageAccumulator.hUpdates an image accumulator with a subregion of an image object.
- (void)setImage:(CIImage *)im dirtyRect:(CGRect)r
The image object whose contents you want to assign to the image accumulator.
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.
For additional details on using this method, see “Imaging Dynamical Systems” in Core Image Programming Guide.
CIImageAccumulator.h
Last updated: 2007-01-05