Mapping of arbitrary channels and image depth to RGB-values

Hi all,

I’m working on a way, to map an arbitrary number of image channels (can be 2 or 6 channels for example) with different image depths / bitnesses (between 8 and 32 bits) to a RGB-image. Therefore the correct representation does not matter too much. It should be a representation that enables a good overview and contains a consistent combination of the available image channels. So let’s call it a “preview”. The dedicated channels can be viewed separatly in another view.

I am working with numpy and pillow. Any ideas and suggestions are welcome. Thanks a lot in advance!