getPixelSize | R Documentation |
This function gets physical size of pixels in each resolution of a OME-TIFF
pyramid in BioFormatsImage
.
getPixelSize(file, resolution = 1L)
file |
Path to an OME-TIFF file. |
resolution |
Which resolution to query; 1 means the highest resolution. The pixels will be larger for the lower resolutions. |
Numeric vector of length 2 of pixel size in x and y. Usually they're the same.
library(SFEData)
fp <- tempfile()
dir_use <- XeniumOutput("v1", file_path = fp)
# RBioFormats null pointer error
try(getPixelSize(file.path(dir_use, "morphology_focus.ome.tif")))
getPixelSize(file.path(dir_use, "morphology_focus.ome.tif"))
unlink(dir_use, recursive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.