input:the input image can be :rggb:or :rgba:
output:the output image either mosaic (normalised with black point subtracted) or full rgb, depending on input
