Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Problems? Is your data what you think it is?
 
PerlMonks  

Re: convert image to greyscale (color to black and white)

by theAcolyte (Pilgrim)
on Dec 31, 2003 at 09:25 UTC ( [id://317889]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to convert image to greyscale (color to black and white)

Hello Monks!

I've been a graphic artist for 10 years; I'm a programmer more as a hobby then anything else (and a bit for doing web-based stuff).

The formula posted above for colorTV to BW is correct to the best of my memory, but it doesn't represent the "best" conversion. It represents a conversion where the fewest colors will be "lost" (no contrast).

In reality, making each image look its best is something best done by hand. For example, in photoshop, you can use "convert to greyscale" or you can specifiy in the RGB channel mixer the percentages of each color to use in producing your greyscale image.

Many images actually look best with a Green % as high as 70%. I've seen a few that look great with Green at 80% (fairly rare).

I'm not sure this helps much ... as I'm basiclly saying that its difficult to get great greyscale from random color images in an automated fashion. If a group of images are similar (all daytime landscapes) you can probably find an ideal % set up by hand, then batch them.

# theAcolyte

  • Comment on Re: convert image to greyscale (color to black and white)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://317889]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.