Method to extract images
GetImages.Rd
Method to extract images
Examples
# Load example data
se_mbrain <- readRDS(system.file("extdata/mousebrain", "se_mbrain", package = "semla")) |>
LoadImages()
#>
#> ── Loading H&E images ──
#>
#> ℹ Loading image from /private/var/folders/8r/bfm2m_q17znfk0m_8dt330tm0000gp/T/RtmpLHpYU7/temp_libpath305b1609463d/semla/extdata/mousebrain/spatial/tissue_lowres_image.jpg
#> ℹ Scaled image from 600x565 to 400x377 pixels
#> ℹ Saving loaded H&E images as 'rasters' in Seurat object
# Fetch Staffli object
staffli_object <- GetStaffli(se_mbrain)
# Fetch images from a Staffli object
images <- GetImages(staffli_object)
# Fetch images from a Seurat object
images <- GetImages(se_mbrain)