Read an inForm component_data.tif
file.
If the file contains multiple resolutions or other data,
keep only the full-resolution component images,
extract the component names from the image descriptions,
and return a named list of image matrices.
read_components(path)
Path to the component_data.tif
file.
A named list of matrices, one for each component.
Images are oriented to match the coordinates in a cell seg data file, i.e. (0, 0) at the top left and the row corresponding to Y and column corresponding to X.
Limited to 1x1 fields due to
limitations in the tiff
package. Install the
Akoya Biosciences fork
of the tiff package to remove this limitation.
Other file readers:
get_field_info()
,
list_cell_seg_files()
,
read_cell_seg_data()
,
read_maps()
if (FALSE) {
path <- "/path/to/my_component_data.tif"
components <- read_components(path)
}