Rules | Recent posts | topic RSS | Search | Register  | Log in

how i can convert the color image into gray image using vhd

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> ASIC Design Methodologies & Tools (Digital)
Author Message
manish12



Joined: 21 Nov 2006
Posts: 956
Helped: 28


Post23 Jun 2008 4:51   how i can convert the color image into gray image using vhd

i want to only extract the handwritten info. from the color form[ railway reservation form , or any other application form or form ].

for this i need a color scan image as prototype and it should/ will be small , than i have to convert it in to gray level .....................so on

any way , i just want to know how i can convert the color image into gray image ?
Back to top
nand_gates



Joined: 19 Jul 2004
Posts: 898
Helped: 117


Post24 Jun 2008 9:03   Re: how i can convert the color image into gray image using

Simple solution is ....
From color image you get the R G B values for a pixel
Take average R+G+B/3 and assign this to R G B do this for all the pixels
and you will get Grayscaled image
Back to top
manish12



Joined: 21 Nov 2006
Posts: 956
Helped: 28


Post24 Jun 2008 13:09   how i can convert the color image into gray image using vhd

it is not like that ??
Back to top
gliss



Joined: 23 Apr 2005
Posts: 659
Helped: 61
Location: Boston Metro Area


Post24 Jun 2008 15:45   Re: how i can convert the color image into gray image using

Actually, just taking the average like that may not necessarily produce the desired result since the human eye is more sensitive to certain colors.
So what most people do is weight each of the RGB values differently according to how the human eye perceives thing. Example:
Code:
Grey = 0.30*Red + 0.59*Green + 0.11*Blue
Back to top
manish12



Joined: 21 Nov 2006
Posts: 956
Helped: 28


Post29 Jun 2008 7:27   Re: how i can convert the color image into gray image using

i was wrong , that color image is not directy transform to r g b . no ready solution for it .

my big prob is this >>

how i can convert the color image to r g b ?
Back to top
sajjadi335



Joined: 28 Feb 2006
Posts: 17


Post01 Jul 2008 7:22   Re: how i can convert the color image into gray image using

It's however in some format, isn't it? If it's digital, it's RGB or YUV or YCbCr or ....
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> ASIC Design Methodologies & Tools (Digital)
Page 1 of 1 All times are GMT + 2 Hours


Abuse
Administrator
Moderators
topic RSS 
sitemap