Solved

RGB to Grey/Black White

Posted on 1998-09-08
6
1,516 Views
Last Modified: 2013-12-25
What is the correct mathmatics of converting a colored RGB image into a Black White one?
0
Comment
Question by:neural
  • 2
  • 2
  • 2
6 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 1865680
Depends on gamma, among other things, but Rec 601-1 suggests
Y=  0.2989*Red+0.5867*Green+0.1144*Blue
0
 
LVL 84

Expert Comment

by:ozo
ID: 1865681
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
 
LVL 6

Expert Comment

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

Colleen

0
How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

 
LVL 6

Accepted Solution

by:
ckayter earned 100 total points
ID: 1865683
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
 

Author Comment

by:neural
ID: 1865685
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
 

Author Comment

by:neural
ID: 1865686
Collen, sorry I didn't reply right away, I don't check this e-mail account quite often. Anyway, smart move!

0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Read about why website design really matters in today's demanding market.
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This video teaches users how to migrate an existing Wordpress website to a new domain.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question