BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

gray scale rgb

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics)
View previous topic :: View next topic  
Author Message
tom
Guest





PostPosted: Mon Mar 26, 2007 8:26 pm    Post subject: gray scale rgb Reply with quote



I would like to extract the brightness from a picture using ntsc or
photoshop or linear color weights (this is quite easy and done) but how
could you go about using this gray scale pic to change the brightness of
the original picture,just to compare which weighted numbers are the best. I
have HSV working well for a lot of things but it takes the the highest
number from the three colors not weighted number. Does any color space use
weighted numbers?

thanks
Tom
Back to top
northern_RATT
Guest





PostPosted: Thu Mar 29, 2007 11:47 pm    Post subject: Re: gray scale rgb Reply with quote



[snip]
Quote:
Does any color space use
weighted numbers?
....


Don't know if this helps but
the weighting used in NTSC is:
59% green, 40% red, 11% blue
=white.

Drew
Back to top
tom
Guest





PostPosted: Fri Mar 30, 2007 12:54 am    Post subject: Re: gray scale rgb Reply with quote



thanks but NTSC is more like (0.299f * red) + ( 0.587f * green) + (
0.114f * blue)
Photoshop (according to the 'NET' )is (0.2126f * red) + ( 0.7152f *
green) + ( 0.0724f * blue)
I already use these to extract the gray value but I would like to compose a
new image with these values and color information to compare with the
original to see how accurate these values are. e.g.. why did adobe use these
numbers. the problem is if you use the same system for composing a image as
you used for extracting they should be identical, not giving any pertinent
information.
I do know about Yuv and Yiq but you have to use the same weighted numbers.

thanks again
Tom

"northern_RATT" <none (AT) none (DOT) nit> wrote in message
news:460c09dd$1 (AT) newsgroups (DOT) borland.com...
Quote:
[snip]
Does any color space use
weighted numbers?
...

Don't know if this helps but
the weighting used in NTSC is:
59% green, 40% red, 11% blue
=white.

Drew

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.