An OperationDescriptor describing the
"AddCollection" operation.
The AddCollection operation takes a collection of rendered
or renderable source images, and adds every set of pixels, one from
each source image of the corresponding position and band. No
additional parameters are required.
There is no restriction on the actual class type used to
represent the source collection, but all elements of the collection
must be instances of RenderedImage or
RenderableImage depending on the mode. The number of
images in the collection may vary from 2 to n. The source images
may have different numbers of bands and data types.
By default, the destination image bounds are the intersection
of all of the source image bounds. If any of the two sources are
completely disjoint, the destination will have a width and a height
of 0. The number of bands of the destination image is equal to
the minimum number of bands of all the sources, and the data type is
the biggest data type of all the sources. If the result of the
operation underflows/overflows the minimum/maximum value supported
by the destination data type, then it will be clamped to the
minimum/maximum value respectively.
The destination pixel values are defined by the pseudocode:
dst[x][y][b] = 0;
for (int i = 0; i < numSources; i++) {
dst[x][y][b] += srcs[i][x][y][b];
}
Resource List
Name | Value |
GlobalName | AddCollection |
LocalName | AddCollection |
Vendor | com.sun.media.jai |
Description | Adds a collection of rendered images. |
DocURL | http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/operator/AddCollectionDescriptor.html |
Version | 1.0 |
No parameters are needed for this operation.
See Also: java.awt.image.RenderedImage See Also: java.awt.image.renderable.RenderableImage See Also: java.util.Collection See Also: javax.media.jai.OperationDescriptor |