View source: R/imageManipulation.R
cropTissue | R Documentation |
Crop to remove black boundary around tissue.
cropTissue(overlay, buffer = 0.05)
overlay |
SpatialOverlay object |
buffer |
percent of new image size to add to each edge as a buffer |
SpatialOverlay object
muBrain <- readRDS(unzip(system.file("extdata", "muBrainSubset_SpatialOverlay.zip",
package = "SpatialOmicsOverlay")))
image <- downloadMouseBrainImage()
muBrain <- addImageOmeTiff(overlay = muBrain,
ometiff = image, res = 8)
muBrainCrop <- cropTissue(overlay = muBrain)
plotSpatialOverlay(overlay = muBrainCrop, legend = FALSE,
hiRes = FALSE, scaleBar = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.