tumourkit.utils.postprocessing.merge_cells

tumourkit.utils.postprocessing.merge_cells(a: Tuple[int, int, List[Tuple[float, float]]], b: Tuple[int, int, List[Tuple[float, float]]]) Tuple[int, int, List[Tuple[float, float]]]

Merges two cells by removing their 30 closest pairs and connecting the endpoints.

Parameters:
  • a (Cell) – The first cell to merge.

  • b (Cell) – The second cell to merge.

Returns:

A new cell containing the merged contours.

Return type:

Cell