getPixelScaleFactor | R Documentation |
Extracts side length of pixel sides depending on the resolution of the chosen image.
getPixelScaleFactor(object, ...)
## S4 method for signature 'SPATA2'
getPixelScaleFactor(
object,
unit,
img_name = activeImage(object),
switch = FALSE,
add_attr = TRUE,
verbose = NULL,
...
)
## S4 method for signature 'SpatialData'
getPixelScaleFactor(
object,
unit,
img_name = activeImage(object),
switch = FALSE,
add_attr = TRUE,
verbose = NULL,
...
)
## S4 method for signature 'HistoImage'
getPixelScaleFactor(
object,
unit,
switch = FALSE,
add_attr = TRUE,
verbose = TRUE,
...
)
object |
An object of class |
... |
Used to absorb deprecated arguments or functions. |
unit |
Character value. The SI-unit of interest. Determines the reference unit for the pixel size. |
img_name |
Character value. The name of the image of interest.
If |
switch |
Logical value. If |
verbose |
Logical. If (Warning messages will always be printed.) |
If switch
is FALSE
, the default, the output is to be interpreted as
unit/pixel. E.g. with unit = 'um'
an output of 15 'um/px' means that under the current resolution
of the image height and width one pixel corresponds to 15 um in height and
width in the original tissue.
If switch
is TRUE
, the output is to be interpreted as pixel/unit. E.g.
an output value of 0.07 'px/um' means that under the current image resolution
one micrometer corresponds to 0.07 pixel in the image.
A single numeric value with the unit defined in attribute unit.
computePixelScaleFactor()
, setScaleFactor()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.