RGB to Grey/Black White

What is the correct mathmatics of converting a colored RGB image into a Black White one?
neuralAsked:
Who is Participating?
 
ckayterConnect With a Mentor Commented:
Depending on the software you are using, you may be able to simplify the process by selecting a gray scale palette...

Colleen

(thought maybe an answer rather than a comment in your mailbox might get you back to read the comments) <grin>
0
 
ozoCommented:
Depends on gamma, among other things, but Rec 601-1 suggests
Y=  0.2989*Red+0.5867*Green+0.1144*Blue
0
 
ozoCommented:
or if you prefer the Rec 709 values:
Y = 0.2126*R+0.7152*G+0.0722*B
or ITU:
Y = 0.2220*R+0.7067*G+0.0713*B
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
ckayterCommented:
Depending on the software you are using, you may be able to simplify the process by selecting a gray scale palette...

Colleen

0
 
neuralAuthor Commented:
ckayter, thank you for trying to help with my problem. I need to convert colored images to black/ white ones by writing VB codes. And I could convert them into codes but failed to find the relations between then. Say I have R, G, and B values of one pixel, now I need to convert them into single value for further use of puting them back as black/white pixel. There are a thousand way of doing this, but I need the correct one.
0
 
neuralAuthor Commented:
Collen, sorry I didn't reply right away, I don't check this e-mail account quite often. Anyway, smart move!

0
All Courses

From novice to tech pro — start learning today.