View source: R/img_update_all.R
img_update_all | R Documentation |
This function uses img_update()
for all samples. That is, it loops through
every sample and edits the image with img_edit()
and then updates the
imgData()
.
img_update_all(
spe,
image_id = "lowres",
new_image_id = paste0("edited_", image_id),
overwrite = FALSE,
...
)
spe |
A
SpatialExperiment-class
object. See |
image_id |
A |
new_image_id |
A |
overwrite |
A |
... |
Parameters passed to |
A
SpatialExperiment-class object
with an updated imgData()
slot.
Other Image editing functions:
img_edit()
,
img_update()
if (enough_ram()) {
## Obtain the necessary data
if (!exists("spe")) spe <- fetch_data("spe")
## Reduce brightness to 25% for the 'lowres' image for all samples and
## update the imgData()
imgData(img_update_all(spe, brightness = 25))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.