cell.load.boundaries: Load cellid boundary data to a dataframe

View source: R/get_cell_mask_data.R

cell.load.boundariesR Documentation

Load cellid boundary data to a dataframe

Description

Using 'data_source = "out.tif"' will give **un**ordered boundary pixels.

Usage

cell.load.boundaries(
  data.source,
  ...,
  arguments = NULL,
  pixel.type = "b",
  close.paths = FALSE,
  cell.data = NULL,
  tiff.channel = "BF.out"
)

Arguments

data.source

Either "out.tif" or "masks.tsv"

arguments

The arguments dataframe used to run cellid (prepared with rcell2::arguments).

pixel.type

When data.source = "masks.tsv", you may choose the pixel "type". At least one of c("i", "b") for interior and/or boundary pixels ("b" by default).

close.paths

When TRUE and data.source = "masks.tsv", append the first row to the end of the data.frame (groping by cellID and pos). Useful for plotting of making closed polygons.

cell.data

When data.source = "out.tif", provide the cell.data object (prepared with rcell2::cell.load.alt).

tiff.channel

When data.source = "out.tif", provide the channel name for images holding boundary data ('BF.out' by default).

Details

Using 'data_source = "masks.tsv"' will give ordered boundary pixels.

Value

A "cell.boundaries" data.frame.


gerbeldo/tidycell documentation built on Aug. 15, 2022, 2:35 p.m.