Returns the fitted HbO2 fraction from hs_beer_lambert(). This is a
research model estimate and requires empirical validation for tissue use.
Arguments
- cube
An hsi_cube object with reflectance data.
- band1, band2
Retired ratio-method arguments. Supplying either raises a migration error; use
hs_band_ratio()or the fitting range inhs_beer_lambert().- method
"beer_lambert"(default). The former"ratio"method is rejected; usehs_band_ratio()for a relative band ratio.
Value
A numeric matrix (rows x cols) with values 0-100 representing
estimated tissue oxygen saturation percentage. Returns NA for masked pixels.
Examples
cube <- hs_example_cube()
sto2 <- hs_sto2(cube)
range(sto2, na.rm = TRUE)
#> [1] 7.232219 83.120956