channels_to_rgb

channels_to_rgb#

scarlet2.plot.channels_to_rgb(channels)[source]#

Get the linear mapping of multiple channels to RGB channels The mapping created here assumes the the channels are ordered in wavelength direction, starting with the shortest wavelength. The mapping seeks to produce a relatively even weights for across all channels. It does not consider e.g. signal-to-noise variations across channels or human perception.

Parameters:

channels (int in range(0,7)) – Number of channels

Returns:

(3, channels) to map onto RGB

Return type:

array