08-05-2008 06:04 AM
08-05-2008 06:27 AM
08-05-2008 06:29 AM
08-06-2008 11:35 AM
Dear muks
Thank you very much that you try to help us. We dont understand your answer. May be you misunderstood our question.
May we explain our question again.
We would like to get the RGB value of each particle in an image that have many particles. We have some soybean pods on an image and we would like to measure RGB of each pod in the same image.
Please kindly determine our question and reply to us.
Thank you very much.
With my best regards,
Panmanas
08-07-2008 02:20 PM
If you have a color image (like your .jpg) you seperate it into its color parts by using the Numeric>>Conversion>>Color to RGB function. (alternatively, you can use the seperate image into color planes function in the vision tools. If you take the image, convert it to an array, then step through the array with for loops, your could build 3 arrays, each containing the value of of the colors R...G...B. Your could then go look in the Green array for locations where pixels were much more green that in the red or blue array...that would let you find the boundary of each of the green parts of the picture.
Finding the size would mean counting the number of adjacent pixels which were above the green to rb threshold you set. You would then have to multiply the pixel sizes by their corresponding physical size....which will depend on how the camera is arranged, its lens and the pixel size of the camera array. (I think I would just stick a known size on the table and let LabView measure all that...and keep it for you.)
Hope that Helps.
Attachement is a rough guess and may not work without the normal trial and error.
08-07-2008 10:02 PM
Dear Hummer1
Thank you very much for your help. We shall try and study what you suggest.
Thank you very much.
With my best regards,
Panmanas