root / org.gvsig.toolbox / trunk / org.gvsig.toolbox / org.gvsig.toolbox.algorithm / src / main / java / es / unex / sextante / vegetationIndices / ttvi / TTVIAlgorithm.java @ 59
History | View | Annotate | Download (570 Bytes)
1 |
package es.unex.sextante.vegetationIndices.ttvi; |
---|---|
2 |
|
3 |
import es.unex.sextante.vegetationIndices.base.SlopeBasedAlgorithm; |
4 |
|
5 |
public class TTVIAlgorithm |
6 |
extends
|
7 |
SlopeBasedAlgorithm { |
8 |
|
9 |
|
10 |
@Override
|
11 |
public void defineCharacteristics() { |
12 |
|
13 |
super.defineCharacteristics();
|
14 |
|
15 |
setName("TTVI");
|
16 |
|
17 |
} |
18 |
|
19 |
|
20 |
@Override
|
21 |
protected double getIndex(final double dRed, |
22 |
final double dNIR) { |
23 |
|
24 |
final double dNDVI = getNDVI(dRed, dNIR); |
25 |
|
26 |
return Math.sqrt(Math.abs(dNDVI + 0.5)); |
27 |
|
28 |
} |
29 |
|
30 |
} |