An OperationDescriptor describing the "Max" operation.
The Max operation takes two rendered or renderable images, and for
every pair of pixels, one from each source image of the corresponding
position and band, finds the maximum pixel value. No additional parameters
are required.
The two sources may have different number of bands and/or data
types. By default, the destination image bound is the intersection
of the two source image bounds. If the two sources don't intersect,
the destination will have a width and a height of 0. The number of
bands of the destination image is the same as the least number of
bands of the sources, and the data type is the biggest data type
of the sources.
The destination pixel values are defined by the pseudocode:
if (srcs[0][x][y][b] > srcs[1][x][y][b]) {
dst[x][y][b] = srcs[0][x][y][b];
} else {
dst[x][y][b] = srcs[1][x][y][b];
}
Resource List
Name | Value |
GlobalName | Max |
LocalName | Max |
Vendor | com.sun.media.jai |
Description | Computes the pixel-wise maximum of two
images. |
DocURL | http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/operator/MaxDescriptor.html |
Version | 1.0 |
No parameters are needed for this operation.
See Also: javax.media.jai.OperationDescriptor See Also: |