hyperspectR provides synthetic data generators for testing and
demonstration. hs_example_cube() creates a 30x30 pixel
tissue scene with 61 spectral bands spanning 430-910 nm:
cube <- hs_example_cube()
print(cube)
#>
#> ── hsi_cube ────────────────────────────────────────────────────────────────────
#> Dimensions: 30 rows x 30 cols x 61 bands
#> Wavelengths: 430-910 nm (61 bands)
#> FWHM: 25 nm (mean)
#> Mask: 900/900 valid pixels (100%)
#> Data range: [0.0198, 0.7306]
#> Metadata: camera, spectral_model, interpretation, processing_mode,
#> acquisition_time, region_map, sto2_ground_truth, seedCheck the dimensions:
The summary provides per-band statistics:
You can subset cubes spatially and spectrally while preserving the class:
The package provides a research hemoglobin fraction estimate and dimensionless band ratios. These outputs are not validated clinical measurements:
hs_read_envi() or
hs_read_cube()hs_smooth(), hs_snv(),
hs_msc()hs_pca() or MNF with
hs_mnf()hs_sam() or fit chromophores with
hs_beer_lambert()