R/prep_imagej_image.R
prep_imagej_image.Rd
After stitching all groups in sample_info
with ImageJ, images of
various resolutions (pixel dimensions) are left. This function creates copies
of each image whose largest dimension is lowres_max_size
pixels. It
also creates a corresponding scalefactors_json.json
file much like
Spaceranger's. In conjunction with prep_imagej_image()
, this function
prepares for building the SpatialExperiment
with build_spe()
.
prep_imagej_image(sample_info, out_dir, lowres_max_size = 1200)
A tibble
with columns capture_area
,
group
, imagej_image_path
, spaceranger_dir
,
intra_group_scalar
, and group_hires_scalef
A character(1) vector giving a path to a directory to place
the output image(s) and scale factors. Provided the parent exists, out_dir
will be created if necessary.
An integer(1) vector: the resolution (number of pixels) of the larger dimension of the output image(s), considered to be "low resolution".