computePixelScaleFactor | R Documentation |
Computes the pixel scale factor. Only possible for methods that have a fixed center to center distance between their observational units (e.g. Visium).
computePixelScaleFactor(object, ...)
## S4 method for signature 'SPATA2'
computePixelScaleFactor(object, verbose = TRUE, ...)
## S4 method for signature 'SpatialData'
computePixelScaleFactor(object, verbose = TRUE, ...)
object |
An object of class |
... |
Used to absorb deprecated arguments or functions. |
verbose |
Logical. If (Warning messages will always be printed.) |
The updated input object, containing the added, removed or computed results.
containsCCD()
, getPixelScaleFactor()
, setPixelScaleFactor()
library(SPATA2)
data("example_data")
object <- example_data$object_UKF275T_diet
containsCDD(object) # must be TRUE
object <- computePixelScaleFactor(object)
getPixelScaleFactor(object, unit = "mm")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.