Date: Jan 14, 2013 7:29 AM
Author: Wenlong
Subject: The mixing formula of RGB
Hi, all
I am trying to interpret RGB image format. Currently, I read the .bmp image with Matlab, and I can see it three layers of red, green, and blue. But when I try to composite the layers to recover the original image, the result is significantly different from the original one.
What I do is simply add the pixel values of red, green and blue, and divide it by 3. But seems it is not the correct approach.
May I know what is the mixing formula?
Thank you very much for your kindly help.
Best regards
Wenlong