tumourkit.postprocessing.merge_cells.remove_lost_ids

tumourkit.postprocessing.merge_cells.remove_lost_ids(png: ndarray, csv: DataFrame) DataFrame

Removes identifiers in csv that are not present in the png.

Parameters:
  • png (np.ndarray) – The binary image containing cell identifiers.

  • csv (pd.DataFrame) – The DataFrame containing cell information with identifiers.

Returns:

The updated DataFrame with removed identifiers.

Return type:

pd.DataFrame