Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to convert rgb to grayscale?

Status
Not open for further replies.

berko3000

Member level 3
Joined
Sep 26, 2004
Messages
61
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
403
convert rgb to grayscale

*-
 

yuv to grayscale

I am not sure where do you get that formula from. In my understanding, you just need to convert RGB to YUV and just keep the Y which you should get grayscale.
You will be able to find the RGB to YUV conversion equation easily on internet.
 

yuv grayscale

the formula is
gray level = 30% Red + 59% Green + 11% Blue
This formula comes from the effect of each color in the brightness of the image.
 

convert rgb to gray

ya, to be very exact..

gray = (0.299*r + 0.587*g + 0.114*b);
 

how to convert rgb to grayscale

Do you know any document to explain where those numbers come from?
 

rgb to gray level

if you are using matlab you can use:

I = rgb2gray(RGB)

when:
I = grayscale picture
RGB = RGB picture
 

converting rgb to grayscale

dalaharp said:
ya, to be very exact..

gray = (0.299*r + 0.587*g + 0.114*b);

btw, how to calculate the other 2 components u and v?
 

matlab rgb to grayscale

U=-0.147*R - 0.289*G - 0.436*B
V= 0.615*R - 0.515*G - 0.1*B
 

rgb to grayscale matlab

berko3000 said:
Do you know any document to explain where those numbers come from?

If you have seen the colour triangle, you will realise that the reciprocal of the distances of the corners i.e. the colours RED, GREEN and BLUE from the white spot in the interior are in the ratio 0.3:0.59:0.11. That would mean that closer the colour to the white spot, greater its contribution to the intensity which is represented by the grayscale.

Hop that helps you!

Regards,
asymbian.
 

rgb to gray

I have attached a pdf on the topic.

hope it helps.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top