twocan.get_merge

twocan.get_merge(source: ndarray, target: ndarray) Tuple[ndarray, ndarray, ndarray][source]

Merge two images into a color-coded overlay.

Creates a visualization where the source image is shown in green and the target image in magenta, with overlapping regions appearing white.

Parameters:
  • source (np.ndarray) – Source image array.

  • target (np.ndarray) – Target image array.

Returns:

Three RGBA arrays: green channel (source), magenta channel (target), and their additive combination.

Return type:

Tuple[np.ndarray, np.ndarray, np.ndarray]