/* * 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; // JAI dependencies (for javadoc) import javax.media.jai.operator.SubtractConstDescriptor; // Geotools dependencies import org.geotools.util.NumberRange; import org.geotools.coverage.processing.OperationJAI; /** * Subtracts constants (one for each band) from every sample values of the source coverage. * If the number of constants supplied is less than the number of bands of the destination, * then the constant from entry 0 is applied to all the bands. Otherwise, a constant from a * different entry is applied to each band. * *
Name: "SubtractConst"
* JAI operator: "{@linkplain SubtractConstDescriptor SubtractConst}"
* Parameters:
Name | *Class | *Default value | *Minimum value | *Maximum value | *
---|---|---|---|---|
{@code "Source"} | *{@link org.geotools.coverage.grid.GridCoverage2D} | *N/A | *N/A | *N/A | *
{@code "constants"} | *{@code double[]} | *N/A | *N/A | *N/A | *