Fast implementation of count touching cells. This version requires a new-style (label image) membrane map such as created by inForm's adaptive cell segmentation. It will not work with maps created by older segmentation algorithms.
count_touching_cells_fast(csd, field_name, export_path, phenos, color1, color2, discard_dups = FALSE)
Cell seg data, may include multiple fields
Sample Name or Annotation ID to process
Path to a directory containing composite, component, and segmentation image files from inForm
Named list of phenotype definitions. Must have length 2.
Colors to draw the phenotype dots
list containing two items: