|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectPlanarImage
OpImage
AreaOpImage
NodataFilter
public class NodataFilter
Replaces Double.NaN
values by the weighted average of neighbors values.
This operation use a box of size
×size
pixels centered on
each NaN
value. The weighted average is then computed, ignoring all
NaN
values. If the number of valid values is greater than
validityThreshold
, then the center NaN
is replaced
by the computed average. Otherwise, the NaN
value is left unchanged.
modules/library/coverage (gt-coverage.jar)
Field Summary |
---|
Fields inherited from class AreaOpImage |
---|
bottomPadding, extender, leftPadding, rightPadding, topPadding |
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 | |
---|---|
protected |
NodataFilter(RenderedImage source,
ImageLayout layout,
Map map,
int padding,
int validityThreshold)
Constructs a new operation. |
Method Summary | |
---|---|
protected void |
computeRect(PlanarImage[] sources,
WritableRaster dest,
Rectangle destRect)
Computes a rectangle of outputs. |
Methods inherited from class AreaOpImage |
---|
computeTile, getBorderExtender, getBottomPadding, getLeftPadding, getRightPadding, getTopPadding, mapDestRect, mapSourceRect |
Methods inherited from class Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected NodataFilter(RenderedImage source, ImageLayout layout, Map map, int padding, int validityThreshold)
source
- The source image.layout
- The image layout.map
- The image properties and rendering hints.padding
- The number of pixel above, below, to the left and to the right of central
NaN
pixel. The full box size is padding
×2+1.validityThreshold
- The minimal number of valid neighbors required in order to consider
the average as valid.Method Detail |
---|
protected void computeRect(PlanarImage[] sources, WritableRaster dest, Rectangle destRect)
computeRect
in class OpImage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |