tumourkit.postprocessing.merge_cells.create_id_map
- tumourkit.postprocessing.merge_cells.create_id_map() Tuple[Callable[[ndarray], ndarray], Dict[int, Tuple[int, int]]]
Creates an index mapping function and its inverse mapping based on a unique difference per pair. The index mapping function f is defined as f(x) = x^5, ensuring that the difference between function values for each pair of indices is unique. Extra information: https://math.stackexchange.com/questions/4565014/injectivity-of-given-integer-function/4567383#4567383
- Returns:
A tuple containing the index mapping function f and the inverse mapping of the differences.
- Return type:
Tuple[Callable[[np.ndarray], np.ndarray], Dict[int, Tuple[int, int]]]