|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.media.jai.OperationDescriptorImpl | +--javax.media.jai.operator.DivideDescriptor
An OperationDescriptor
describing the "Divide" operation.
The Divide operation takes two rendered or renderable images, and for every pair of pixels, one from each source image of the corresponding position and band, divides the pixel from the first source by the pixel from the second source. No additional parameters are required for this operation.
In case of division by 0, if the numerator is 0, then the result is set to 0; otherwise, the result is set to the maximum value supported by the destination data type.
The two source images may have different number of bands and 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 default 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.
As a special case, if one of the source images has N bands (N >
1), the other source has 1 band, and an ImageLayout
hint is provided containing a destination SampleModel
with K bands (1 < K <= N), then the single band of the 1-banded
source will be divided by or into to each of the first K bands of
the N-band source.
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][dstBand] = srcs[0][x][y][src0Band]/srcs[1][x][y][src1Band];
Name | Value |
---|---|
GlobalName | divide |
LocalName | divide |
Vendor | com.sun.media.jai |
Description | Dividies one rendered image by another rendered image. |
DocURL | http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/operator/DivideDescriptor.html |
Version | 1.0 |
No parameters are needed for this operation.
OperationDescriptor
, Serialized FormFields inherited from class javax.media.jai.OperationDescriptorImpl |
resources,
sourceNames,
supportedModes |
Constructor Summary | |
DivideDescriptor()
Constructor. |
Method Summary | |
boolean |
isRenderableSupported()
Returns true since renderable operation is supported. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DivideDescriptor()
Method Detail |
public boolean isRenderableSupported()
true
since renderable operation is supported.OperationDescriptorImpl.isModeSupported(java.lang.String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |