append_hues2: Generate Hu moments from CellID's mask TSV files

append_hues2R Documentation

Generate Hu moments from CellID's mask TSV files

Description

The required TSV are generated by the mask_mod branch of the CellID program found at: https://github.com/darksideoftheshmoo/cellID-linux/tree/mask_mod

Usage

append_hues2(
  tsv_files_df,
  cell_data = NULL,
  parralellize = T,
  shape_pixtype = "b",
  shape_flagtype = 0,
  overwrite = F
)

Arguments

tsv_files_df

A data.frame with paths to the TSV files with the cells' XY coordinates (requires "path" and "pos" columns). Use tsv_paths_from_args() for convenience.

cell_data

Either NULL, a list, or cell.data object from rcell2::load_cell_data. If not NULL, the result is added to the list.

parralellize

Enable cell-wise parallelization using parallel::parLapply

shape_pixtype

Default "b" for Hu moments based on boundary points. A character vector containing any of c("b", "i").

shape_flagtype

Default 0 for Hu moments based on flag value 0. Can be any of the integer flag values present in the out_bf_fl_mapping CellID files.

overwrite

Default FALSE, overwrite Hu moments element in the input list if already present.

Value

The Hu moments dataframe usis assgned to the input list as an element named "Hu_moments".


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