get_field_info: Read information about a field from a component image file.

Description Usage Arguments Details Value See Also Examples

View source: R/read_components.R

Description

Find the location, size and magnification of an inForm field by inspecting a component_data.tif file.

Usage

1

Arguments

path

Path to the component_data.tif file.

Details

The field location is determined from the coordinates in the file name. The field size and magnification are read from TIFF tags in the file.

Limited to 1x1 fields due to limitations in the tiff package. Install the Akoya Biosciences fork of the tiff package to remove this limitation.

Value

A named list with values

location

The physical (x, y) location of the top-left corner of the field on the source slide, in microns.

field_size

The physical (width, height) of the field, in microns.

image_size

The (width, height) of the field image, in pixels.

microns_per_pixel

The size of each pixel, in microns.

pixels_per_microns

The inverse of microns per pixel

See Also

Other file readers: list_cell_seg_files(), read_cell_seg_data(), read_components(), read_maps()

Examples

1
2
3
4
  path <- system.file('extdata', 'sample',
    'Set4_1-6plex_[16142,55840]_component_data.tif',
    package='phenoptr')
  get_field_info(path)

akoyabio/phenoptr documentation built on Jan. 7, 2022, 5:37 p.m.