|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectPlanarImage
OpImage
PointOpImage
Combine
Combine.Dyadic
public static class Combine.Dyadic
Optimized Combine operation for dyadic (two sources) image. This operation
performs a linear combination of two images (src0 and src1).
The parameters scale0 and scale1 indicate the scale of source
images src0 and src1. If we consider pixel at coordinate
(x,y), its value is determinate by the pseudo-code:
value = src0[x][y]*scale0 + src1[x][y]*scale1 + offset
| coverage/geotk-coverage (download) | View source code for this class |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class Combine |
|---|
Combine.Dyadic, Combine.Transform |
| Field Summary |
|---|
| Fields inherited from class Combine |
|---|
OPERATION_NAME, transform |
| Fields inherited from class OpImage |
|---|
cache, cobbleSources, OP_COMPUTE_BOUND, OP_IO_BOUND, OP_NETWORK_BOUND, tileCacheMetric, tileRecycler |
| Fields inherited from class PlanarImage |
|---|
colorModel, eventManager, height, minX, minY, properties, sampleModel, tileFactory, tileGridXOffset, tileGridYOffset, tileHeight, tileWidth, width |
| Constructor Summary | |
|---|---|
Combine.Dyadic(Vector<? extends RenderedImage> images,
double[][] matrix,
RenderingHints hints)
Constructs a new instance of Combine.Dyadic. |
|
| Method Summary | |
|---|---|
void |
computeRect(PlanarImage[] images,
WritableRaster dest,
Rectangle destRect)
Computes one tile. |
| Methods inherited from class Combine |
|---|
getSources |
| Methods inherited from class PointOpImage |
|---|
computeTile, dispose, isColormapOperation, mapDestRect, mapSourceRect, permitInPlaceOperation |
| Methods inherited from class Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Combine.Dyadic(Vector<? extends RenderedImage> images,
double[][] matrix,
RenderingHints hints)
throws MismatchedSizeException
Combine.Dyadic.
images - The rendered sources. This vector must contains exactly 2 sources.matrix - The linear combination coefficients as a matrix.hints - The rendering hints.
MismatchedSizeException - if some rows in the matrix argument doesn't
have the expected length.| Method Detail |
|---|
public void computeRect(PlanarImage[] images,
WritableRaster dest,
Rectangle destRect)
computeRect in class Combineimages - The source images.dest - The raster to be filled in.destRect - The region within the raster to be filled.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||