ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting RGB to Grayscale

Solved!
Go to solution

Hi everyone, I need you advice and help if possible.

 

The purpose of my aplication is to count and evaluate the amount of euro cents on a picture. I will use radius and surface.

 

1euro.jpgI have a library of pictures of each coin.

 

 

cents.jpg

On the left, you can see what type of pictures I have to process.

 

On labview 2009, I use the IMAQ Module to do this operation. I give you my Vi.

The problem is that i can't operate on RGB picture. first I have to convert it to grayscale then binary.

I can't find a way to resolve it.

Do you have any suggestion ? 

 

 

 

 

 

 

 

euro_counter.png

 

 

 

 

Thanks in advance !

Ben

0 Kudos
Message 1 of 4
(5,301 Views)
Solution
Accepted by bauer65
Message 2 of 4
(5,290 Views)

How I convert RGB to Grayscale image without using the IMAQ or vision Development module.

0 Kudos
Message 3 of 4
(4,341 Views)

Use color to RGB.  Then google for formulas on how to convert the color components to grayscale.

 

http://en.wikipedia.org/wiki/Grayscale

0 Kudos
Message 4 of 4
(4,334 Views)