computePixelScaleFactor.Rd
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 class 'SPATA2'
computePixelScaleFactor(object, verbose = TRUE, ...)
# S4 method for class 'SpatialData'
computePixelScaleFactor(object, verbose = TRUE, ...)
An object of class SPATA2
or, in case of S4 generics,
objects of classes for which a method has been defined.
Used to absorb deprecated arguments or functions.
Logical. If TRUE
, informative messages regarding
the computational progress will be printed.
(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")