getCoordsMtr.Rd
Wraps the coordinates in a matrix with column names x and y and rownames that correspond to the barcodes.
getCoordsMtr(
object,
img_name = activeImage(object),
orig = FALSE,
exclude = TRUE
)
An object of class SPATA2
or, in case of S4 generics,
objects of classes for which a method has been defined.
Character value. The name of the image the coordinates are
scaled to. If NULL
, defaults to the active image.
Logical value. If TRUE
, the coordinates are not scaled to any
image.
A matrix.
In contrast to getCoordsDf()
, column names of the output matrix
are always named x and y, regardless of whether they correspond to the
original x- and y-coordiantes (x_orig, y_orig) or if they are scaled
to the image specified with img_name
. The input for argument orig
decides!