From: Kenny Nam on
I have study the files uploaded in mathlab exchange,but i find that i am hardly to find any one of them as reference for my final year project.
I need to develop a programme to detect the percentage of yellowish of the input (picture of certain object) and then compare to my data(standard of yellowdish).It is to grade them in proper and standard ways.
I hope can get some hints or guide from you guys,need it in urgent,million thanks first for the guide.
From: Andy on
"Kenny Nam" <kennynam517(a)hotmail.com> wrote in message <i373ra$l1n$1(a)fred.mathworks.com>...
> I have study the files uploaded in mathlab exchange,but i find that i am hardly to find any one of them as reference for my final year project.
> I need to develop a programme to detect the percentage of yellowish of the input (picture of certain object) and then compare to my data(standard of yellowdish).It is to grade them in proper and standard ways.
> I hope can get some hints or guide from you guys,need it in urgent,million thanks first for the guide.

I guess you didn't spend much time on the FEX, because a search for "Color Detection" yielded this as the third result:

http://www.mathworks.com/matlabcentral/fileexchange/26420-simplecolordetection
From: Kenny Nam on
"Andy " <myfakeemailaddress(a)gmail.com> wrote in message <i37490$icc$1(a)fred.mathworks.com>...
> "Kenny Nam" <kennynam517(a)hotmail.com> wrote in message <i373ra$l1n$1(a)fred.mathworks.com>...
> > I have study the files uploaded in mathlab exchange,but i find that i am hardly to find any one of them as reference for my final year project.
> > I need to develop a programme to detect the percentage of yellowish of the input (picture of certain object) and then compare to my data(standard of yellowdish).It is to grade them in proper and standard ways.
> > I hope can get some hints or guide from you guys,need it in urgent,million thanks first for the guide.
>
> I guess you didn't spend much time on the FEX, because a search for "Color Detection" yielded this as the third result:
>
> http://www.mathworks.com/matlabcentral/fileexchange/26420-simplecolordetection




Thanks for the replay,i have study this simple color detection before,just that it didn't show the function of compare the percentage of yellowish between the input and the data storage,thats make me in suffer.Can you give me more hints?
From: ImageAnalyst on
It calculates the area (number of pixels) of red objects. No, it
doesn't give the area fraction ("percent area" or whatever you want to
call it), but you know the total number of pixels in your image so you
can get the area fraction by dividing them. And the code tells you
that you can adapt it to look for some other color, such as yellow,
green, etc. by adjusting the thresholds. So surely you know how to do
the simple adaptation, right? Did you TRY to choose new thresholds?

If you can't do the division for area fraction, or come up with the
color band thresholds, then post your image to http://drop.io and I'll
do it - it should be very easy as long as your yellow colors can be
"boxed in" by thresholding in RGB space (otherwise you may have to use
another color space).
From: Kenny Nam on
ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <803583c9-7368-437c-a5f3-99628af935d3(a)c10g2000yqi.googlegroups.com>...
> It calculates the area (number of pixels) of red objects. No, it
> doesn't give the area fraction ("percent area" or whatever you want to
> call it), but you know the total number of pixels in your image so you
> can get the area fraction by dividing them. And the code tells you
> that you can adapt it to look for some other color, such as yellow,
> green, etc. by adjusting the thresholds. So surely you know how to do
> the simple adaptation, right? Did you TRY to choose new thresholds?
>
> If you can't do the division for area fraction, or come up with the
> color band thresholds, then post your image to http://drop.io and I'll
> do it - it should be very easy as long as your yellow colors can be
> "boxed in" by thresholding in RGB space (otherwise you may have to use
> another color space).

I just met with my supervisor.He asked to filtered the yellow object from a picture first,then only compare the yellowish with the data storage.The ratio of Yellow in RGB is G>R>B....Thanks for the help.