input:the input image can be :rggb:or :rgba:
output:the output image will be the same format as the input
