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