cropSpataObject.Rd
Creates a subset of the original SPATA2
object
based on x- and y-range. Barcode-spots that fall into the
rectangle given by xrange
and yrange
are kept.
cropSpataObject(object, xrange, yrange, verbose = NULL)
An object of class spata2
.
Vector of length two or NULL
. If not NULL
,
specifies the x- and y-range to which the output image is cropped. E.g.
xrange = c(200, 500)
results in the image being cropped from
x-coordinate 200px up to x-coordinate 500px. If NULL
, the original image
ranges are taken.
This argument works within the SPATA2
distance framework.
If values are specified in European units of length the input is
immediately converted to pixel units. See info section Distance measures
for more information.
Logical. If set to TRUE informative messages regarding the computational progress will be printed.
(Warning messages will always be printed.)
The input spata2
object containing the added or computed
results.
ggpLayerRect()
to visualize the rectangle based on which
the subsetting is done.