/* * 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; import org.geotools.util.NumberRange; import org.geotools.coverage.processing.OperationJAI; /** * Maps the sample values of a coverage from one range to another range. The rescaling is done by * multiplying each sample value by one of a set of constants and then adding another constant to * the result of the multiplication. The destination sample values are defined by the pseudocode: * *
* dst[x][y][b] =
* src[x][y][b]*constant + offset;
*
*
* Name: "Rescale"
* JAI operator: "{@linkplain javax.media.jai.operator.RescaleDescriptor Rescale}"
* 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"} | *double[] |
* 1.0 | *N/A | *N/A | *
{@code "offsets"} | *double[] |
* 0.0 | *N/A | *N/A | *