nasir_sidd
December 10th, 2002, 02:56 PM
I have a bitmap file. I have to convert it in gray scale using YUV color model. Can any one help me?Please hurry assignment due within 3 hours
|
Click to See Complete Forum and Search --> : RGB to grayscale using YUV nasir_sidd December 10th, 2002, 02:56 PM I have a bitmap file. I have to convert it in gray scale using YUV color model. Can any one help me?Please hurry assignment due within 3 hours Zeeshan December 10th, 2002, 11:05 PM Try this First convert YUV into RGB using these formulae R = Y + V G = Y - 0.166667U - 0.5V B = Y + U Then calculate Gray scale from this by using this formula GrayLevel = R * 0.30 + G * 0.59 + B * 0.11 Hope it helps. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |