scportrait.plotting.generate_composite#
- scportrait.plotting.generate_composite(images: ndarray, colors: list[tuple[int, ...]] = None, plot: bool = False) ndarray#
Create a composite image from a multi-channel image for visualization.
- Parameters:
images – A multi-channel image to be combined.
colors – A list of colors to use for each channel. Defaults to None.
plot – Whether to plot the composite image. Defaults to False.
- Returns:
The composite image.