|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface Combine.Transform
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:
This interface provides a hook where non-linear transformations can be performed before the linear one. For example, thevalues[0]*row[0] + values[1]*row[1] + values[2]*row[2] + ... + row[sourceBands]
transformSamples method could substitutes some
values by their logarithm.
| coverage/geotk-coverage (download) | View source code for this class |
| Method Summary | |
|---|---|
boolean |
isSeparable()
Returns true if the transformation performed by transformSamples(double[])
does not depend on the ordering of samples in the values array. |
void |
transformSamples(double[] values)
Transforms the sample values for one pixel before the linear combination. |
| Method Detail |
|---|
void transformSamples(double[] values)
values - The sample values to transformation. Transformation are performed in-place.boolean isSeparable()
true if the transformation performed by transformSamples(double[])
does not depend on the ordering of samples in the values array. This method
can returns true if the transformSamples(double[]) implementation
meet the following conditions:
values[i] depends
only on the input value values[i] for all i.For example, the following implementations meets the above mentioned conditions:
for (int i=0; i<values.length; i++) {
values[i] = someFunction(values[i]);
}
A true value will allows some optimizations inside the
Combine.computeRect(...) method. This method
may conservatly returns false if this information is unknown.
true if the transformation does not depend on the ordering of sample values.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||