| org.geotools.image.jai.CombineTransform
CombineTransform | public interface CombineTransform (Code) | | Transforms the sample values for one pixel during a "
Combine Combine " operation.
The method
CombineTransform.transformSamples is invoked by
Combine.computeRectCombine.computeRect(...) just before the sample values are combined as
values[0]*row[0] + values[1]*row[1] + values[2]*row[2] + ... + row[sourceBands] .
This interface provides a hook where non-linear transformations can be performed before the
linear one. For example, the
transformSamples method could substitutes some
values by their logarithm.
since: 2.1 version: $Id: CombineTransform.java 20970 2006-08-11 07:53:22Z jgarnett $ author: Martin Desruisseaux |
Method Summary | |
abstract public boolean | isSeparable() Returns
true if the transformation performed by
CombineTransform.transformSamples do not depends on the ordering of samples in the
values array. | abstract public void | transformSamples(double[] values) Transforms the sample values for one pixel before the linear combinaison. |
isSeparable | abstract public boolean isSeparable()(Code) | | Returns
true if the transformation performed by
CombineTransform.transformSamples do not depends on the ordering of samples in the
values array. This method
can returns
true if the
transformSamples(double[]) implementation
meet the following conditions:
- The transformation is separable, i.e. the output value
values[i] depends
only on the input value
values[i] for all i.
- The transformation do not depends on the value of the index i.
For example, the following implementations meets the above mentioned conditions:
for (int i=0; i
A
true value will allows some optimisations inside the
Combine.computeRect Combine.computeRect(...) method. This method
may conservatly returns
false if this information is unknow.
|
transformSamples | abstract public void transformSamples(double[] values)(Code) | | Transforms the sample values for one pixel before the linear combinaison.
Parameters: values - The sampel values to transformation.Transformation are performed in-place. |
|
|