Clan x86
News:
Wieners, Brats, Franks, we've got 'em all.
Home
Help
Search
Calendar
Login
Register
Clan x86
»
Technical (Development, Security, etc.)
»
Graphics
(Moderators:
Tuberload
,
Towelie
) »
Translating to black&white
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Translating to black&white (Read 21310 times)
0 Members and 1 Guest are viewing this topic.
iago
Leader
Administrator
Hero Member
Posts: 17914
Fnord.
Translating to black&white
«
on:
February 19, 2005, 05:05:15 pm »
To translate an image from color to black and white, how is that normally done? My guess is that the RGB values of each pixel averaged?
Logged
iago
Leader
Administrator
Hero Member
Posts: 17914
Fnord.
Re: Translating to black&white
«
Reply #1 on:
February 19, 2005, 06:02:57 pm »
Judging by my output (which is all plain pixels anyway), averaging the pixels works well. Gg!
Logged
Towelie
pwnstar
Moderator
Hero Member
Posts: 4873
Re: Translating to black&white
«
Reply #2 on:
February 19, 2005, 11:40:05 pm »
iago..... Its easy. Instead of RGB mode you use greyscale :-). Then when you switch it back Im pretty sure its still black and white.
Logged
iago
Leader
Administrator
Hero Member
Posts: 17914
Fnord.
Re: Translating to black&white
«
Reply #3 on:
February 20, 2005, 11:14:34 am »
I'm not talking about photoshop, I'm writing a program. I have the RGB for each pixel, but I wanted to make them into greyscale.
Logged
Towelie
pwnstar
Moderator
Hero Member
Posts: 4873
Re: Translating to black&white
«
Reply #4 on:
February 20, 2005, 08:34:41 pm »
oh well gj.
Logged
iago
Leader
Administrator
Hero Member
Posts: 17914
Fnord.
Re: Translating to black&white
«
Reply #5 on:
February 20, 2005, 08:52:56 pm »
I found a formula on some website for it:
(0.3*red) + (0.59*green) + (0.11*blue)
Apparently, that's better.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Clan x86
»
Technical (Development, Security, etc.)
»
Graphics
(Moderators:
Tuberload
,
Towelie
) »
Translating to black&white