Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1545
  • Last Modified:

RGB to Grey/Black White

What is the correct mathmatics of converting a colored RGB image into a Black White one?
0
neural
Asked:
neural
  • 2
  • 2
  • 2
1 Solution
 
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
 
ckayterCommented:
Depending on the software you are using, you may be able to simplify the process by selecting a gray scale palette...

Colleen

0
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

 
ckayterCommented:
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
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now