org.geotools.image.jai
Interface CombineTransform


public interface CombineTransform

Transforms the sample values for one pixel during a "Combine" operation. The method transformSamples(double[]) is invoked by Combine.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 method could substitutes some values by their logarithm.

Since:
2.1
Version:
$Id: CombineTransform.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux

Method Summary
 boolean isSeparable()
          Returns if the transformation performed by transformSamples(double[]) do not depends on the ordering of samples in the array.
 void transformSamples(double[] values)
          Transforms the sample values for one pixel before the linear combinaison.
 

Method Detail

transformSamples

public void transformSamples(double[] values)
Transforms the sample values for one pixel before the linear combinaison.

Parameters:
values - The sampel values to transformation. Transformation are performed in-place.

isSeparable

public boolean isSeparable()
Returns if the transformation performed by transformSamples(double[]) do not depends on the ordering of samples in the array. This method can returns if the implementation meet the following conditions: For example, the following implementations meets the above mentioned conditions:
 for (int i=0; i
A value will allows some optimisations inside the Combine.computeRect(...) method. This method may conservatly returns if this information is unknow.



Copyright © GeoTools. All Rights Reserved.