Negative - Sepia - GreyScale

Dec 2, 2009 at 3:05pm
I am new to image processing. According to my textbook, I know how to get a negative image (by subtracting them from the number of gray shade: 0 becomes 255, 1 becomes 254, etc), but they didn't say anything about Sepia and GreyScale. I think these 2 kind effects often appear in some software or even camera
Could you explain to me how to get them?
Thank you :)
Last edited on Dec 2, 2009 at 3:05pm
Dec 2, 2009 at 3:38pm
A gray scale image, represents its luminance. You can get this effect by setting each value to the average of all the three RGB values
eg: RGB 128,255,68 -> 150,150,150
Sepia is similar but you apply the gray scale values to the sepia color
Dec 3, 2009 at 5:43am
thank, I made grayscale effect.
could you explain more about sepia effect? I don't really understand your hint.
Dec 3, 2009 at 9:18am
It should be something like this:
R = grey*SepiaR/255
G = grey*SepiaG/255
B = grey*SepiaB/255
Where grey is the value you got in the grey scale, the sepia values are these: http://en.wikipedia.org/wiki/Sepia_%28color%29
Last edited on Dec 3, 2009 at 9:27am
Dec 3, 2009 at 11:34am
closed account (z05DSL3A)
Conversion to Luminance is more often carried out like
Y = 0.2126*R + 0.7152*G + 0.0722*B
then set your RGB values to Y.

For the averaging method
RGB 127,197,58 (green) => RGB 127,127,127
RGB 58,127,197 (blue) => RGB 127,127,127

This method:
RGB 127,197,58 (green) => RGB 172,172,172
RGB 58,127,197 (blue) => RGB 117,117,117

http://en.wikipedia.org/wiki/Luminance_(relative)
Dec 6, 2009 at 4:32am
I have a question. Is GreyScale color image or not?
If I find average of all three RGB values, then set each value to it, does it mean GreyScale still have 3 channel?
Dec 6, 2009 at 4:58am
Only if the destination surface has in fact three channels. The gray scale operation could take surfaces of different color depths as the destination.
Topic archived. No new replies allowed.