core.Baseline.utils

Adapted from the following references: [1] https://github.com/JunMa11/NeurIPS-CellSeg/blob/main/baseline/model_training_3class.py

Module Contents

core.Baseline.utils.identify_instances_from_classmap(class_map, cell_class=1, threshold=0.5, from_logits=True)[source]

Identification of cell instances from the class map

core.Baseline.utils.create_interior_onehot(inst_maps)[source]
interior(H,W), np.uint8

three-class map, values: 0,1,2 0: background 1: interior 2: boundary