Skip to contents

Returns the fitted HbO2 fraction from hs_beer_lambert(). This is a research model estimate and requires empirical validation for tissue use.

Usage

hs_sto2(
  cube,
  band1 = c(500, 650),
  band2 = c(700, 815),
  method = "beer_lambert"
)

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 in hs_beer_lambert().

method

"beer_lambert" (default). The former "ratio" method is rejected; use hs_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