///* // * GeoTools - The Open Source Java GIS Toolkit // * http://geotools.org // * // * (C) 2005-2008, Open Source Geospatial Foundation (OSGeo) // * // * This library is free software; you can redistribute it and/or // * modify it under the terms of the GNU Lesser General Public // * License as published by the Free Software Foundation; // * version 2.1 of the License. // * // * This library is distributed in the hope that it will be useful, // * but WITHOUT ANY WARRANTY; without even the implied warranty of // * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // * Lesser General Public License for more details. // */ //package org.geotools.coverage.processing.operation; // //// OpenGIS dependencies //import org.opengis.coverage.grid.GridCoverage; // //// Geotools dependencies //import org.geotools.coverage.processing.FilterOperation; // // ///** // * Replaces {@link Float#NaN NaN} values by the weighted average of neighbors values. This // * operation uses a box of {@code size}×{@code size} pixels centered on each {@code NaN} // * value, where {@code size} = 2×{@code padding}+1 (the padding is the number // * of pixel above, below, to the left and to the right of central {@code NaN} pixel). The weighted // * average is then computed, ignoring all {@code NaN} values. If the number of valid values is // * greater than or equals to {@code validityThreshold}, then the center {@code NaN} is replaced by // * the computed average. Otherwise, the {@code NaN} value is left unchanged. // * // *
Name: "NodataFilter"
// * JAI operator: none
// * Parameters:
Name | // *Class | // *Default value | // *Minimum value | // *Maximum value | // *
---|---|---|---|---|
{@code "Source"} | // *{@link org.geotools.coverage.grid.GridCoverage2D} | // *N/A | // *N/A | // *N/A | // *
{@code "padding"} | // *{@link java.lang.Integer} | // *1 | // *0 | // *N/A | // *
{@code "validityThreshold"} | // *{@link java.lang.Integer} | // *4 | // *0 | // *N/A | // *