load_tiff_masks: Load cell masks from BF.out TIFF files

View source: R/load_mask_data.R

load_tiff_masksR Documentation

Load cell masks from BF.out TIFF files

Description

It is imperative that the TIFF images contain only cell boundaries, with pixel intensity values such that CellID = (2^image_bits -1) - pixel_value.

Usage

load_tiff_masks(images, image_bits, cell_id_offset = -1, return_points = F)

Arguments

images

An images dataframe, from rcell2::load_cell_data or rcell2.cellid::get_cell_data.

image_bits

an integer indicating the bit-depth on the TIFF images, such that maximum intensity is image_bits^2 -1 and minimum is zero. Typically 8 or 16.

cell_id_offset

the offset respect to maximum pixel intensity, such that cellID = maximum_intensity - boundary_intensity + cell_id_offset.

return_points

if TRUE it will add a "masks" dataframe to the cell_data object, containing the mask coordinates.

Details

Such TIFF images are automatically generated by the mask_mod branch of the CellID program found at: https://github.com/darksideoftheshmoo/cellID-linux/tree/mask_mod


darksideoftheshmoo/rcell2 documentation built on Oct. 23, 2024, 12:59 p.m.