img_to_3channel#
- scarlet2.plot.img_to_3channel(img, channel_map=None)[source]#
Convert multi-band image cube into 3 RGB channels
- Parameters:
img (
array) – This should be an array with dimensions (channels, height, width).channel_map (
array) – Linear mapping from channels to RGB, dimensions (3, channels)
- Returns:
Dimensions (3, height, width), type float
- Return type:
array