View source: R/coordinateGeneration.R
createMask | R Documentation |
Create a binary mask from a base 64 string
createMask(b64string, metadata, outline = TRUE)
b64string |
base 64 string |
metadata |
metadata of AOI including: Height, Width of AOI |
outline |
only the outline points should be returned |
binary mask image
muBrain <- readRDS(unzip(system.file("extdata", "muBrainSubset_SpatialOverlay.zip",
package = "SpatialOmicsOverlay")))
samp <- which(sampNames(muBrain) == "DSP-1012999073013-A-F12")
ROIMask <- createMask(b64string = position(overlay(muBrain))[samp],
metadata = meta(overlay(muBrain))[samp,],
outline = TRUE)
pheatmap::pheatmap(ROIMask, cluster_rows = FALSE, cluster_cols = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.