| org.geotools.image.jai.NodataFilter
NodataFilter | public class NodataFilter extends AreaOpImage (Code) | | 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.
since: 2.1 version: $Id: NodataFilter.java 20970 2006-08-11 07:53:22Z jgarnett $ author: Lionel Flahaut author: Martin Desruisseaux |
Constructor Summary | |
protected | NodataFilter(RenderedImage source, ImageLayout layout, Map map, int padding, int validityThreshold) Constructs a new operation.
Parameters: source - The source image. Parameters: layout - The image layout. Parameters: map - The image properties and rendering hints. Parameters: padding - The number of pixel above, below, to the left and to the right of central NaN pixel. |
Method Summary | |
protected void | computeRect(PlanarImage[] sources, WritableRaster dest, Rectangle destRect) Computes a rectangle of outputs. |
NodataFilter | protected NodataFilter(RenderedImage source, ImageLayout layout, Map map, int padding, int validityThreshold)(Code) | | Constructs a new operation.
Parameters: source - The source image. Parameters: layout - The image layout. Parameters: map - The image properties and rendering hints. Parameters: 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. Parameters: validityThreshold - The minimal number of valid neighbors required in order to considerthe average as valid. |
computeRect | protected void computeRect(PlanarImage[] sources, WritableRaster dest, Rectangle destRect)(Code) | | Computes a rectangle of outputs.
|
|
|