Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/continuum_features.R

Calculate band depth ratio indices for objects of class `Specfeat`

.

1 | ```
bdri(x, fnumber, index = "ndbi")
``` |

`x` |
Object of class |

`fnumber` |
Integer. Index of feature to modify. |

`index` |
Method to be applied. Currently, |

Method `"bdr"`

calculates the normalised band depth ratio as

*bdr=\frac{BD}{Dc},*

with *BD* is the band depth calculated by `transformSpeclib`

and Dc is the maximum band depth called band centre.
Method `"ndbi"`

calculates the the normalised band depth index as

*ndbi= \frac{BD-Dc}{BD+Dc}.*

Method `"bna"`

calculates the band depth normalised to band area as

*bna=\frac{BD}{Da},*

where *Da* is the area of the absorption feature (see
`feature_properties`

). For further information see Mutanga and Skidmore (2004).

Object of class `specfeat`

containing the updated version of x.

Lukas Lehnert and Hanna Meyer

Mutanga, O. and Skidmore, A. (2004): Hyperspectral band depth analysis for a better estimation of grass biomass (`Cenchrus ciliaris`) measured under controlled laboratory conditions. International Journal of applied Earth Observation and Geoinformation, 5, 87-96

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ```
data(spectral_data)
## Transform speclib
bd <- transformSpeclib(subset(spectral_data, season == "summer"),
method = "sh", out = "bd")
## Isolate the features around 450nm, 700nm, 1200nm and 1500nm and
## convert to specfeat.
featureSelection <- specfeat(bd, c(450,700,1200,1500))
## Plot features
plot(featureSelection,1:4)
## Calculate normalized band depth index for first feature
featureSelection_bdri <- bdri(featureSelection, 1, index = "ndbi")
## Plot result
plot(featureSelection_bdri)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.