An OperationDescriptor describing the "Or" operation.
The Or operation takes two rendered or renderable images, and
performs bit-wise logical "or" on every pair of pixels, one from
each source image of the corresponding position and band. No
additional parameters are required.
Both source images must have integral data types. The two
data types may be different.
Unless altered by an ImageLayout hint, 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 height of 0. The number of bands of the
destination image is equal to the lesser number of bands of the
sources, and the data type is the smallest data type with
sufficient range to cover the range of both source data types.
The following matrix defines the logical "or" operation.
Logical "or"
src1 | src2 | Result |
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 1 |
The destination pixel values are defined by the pseudocode:
dst[x][y][b] = srcs[0][x][y][b] | srcs[1][x][y][b];
Resource List
Name | Value |
GlobalName | Or |
LocalName | Or |
Vendor | com.sun.media.jai |
Description | Logically "ors" two images. |
DocURL | http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/operator/OrDescriptor.html |
Version | 1.0 |
No parameters are needed for this operation.
See Also: javax.media.jai.OperationDescriptor |