Solved

RGB to Grey/Black White

Posted on 1998-09-08
6
1,517 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
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.

740 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