[bpm] option for bayer decoding
@berruyer asked if its possible for the bpm-web viewer to show images in colour.
I think it should be possible to add an option to return colour image, for instance bayer decode.
I'm not quite sure how you get hold of the image mode and thus know if you need to bayer decode, somewhere here: https://gitlab.esrf.fr/limagroup/Lima-tango-python/-/blob/master/plugins/Bpm.py#L657
In my video streamer i do something along the lines of
if cv2: if image_mode >= 11 or image_mode <= 14: data = cv2.cvtColor(data, cv2.COLOR_BAYER_RG2RGB)
where image_mode comes from the image header