02-15-2010 01:29 PM
Don't ask but need to try to analyze what percentage of the pie is displayed. It can be in any orientation rotationally and be between 1 and 99% (whole percentages) of the pie. I tried multiple techniques using calipers but not looking promising. I will post a few sample images I anyone has any ideas on how to determine how much of the pie is displayed.
Thanks for any tips!
Solved! Go to Solution.
02-15-2010 03:48 PM
Not sure what functions in Vision exist (if any)
-Try color matching and count numbers of pixels occupied by each, the ratio of green/grey will be the percentage. This won't work on the last example though.
-AK2DM
02-15-2010 04:32 PM
I seem to be having some success processing the image down to binary and using the Straight Edge (Rake) function. Will post when I get something working. Need to try on actual images and not simulated. Color matching will be my backup plan.
Thanks
02-15-2010 04:50 PM - edited 02-15-2010 04:51 PM
The easiest way (probably) - just counting pixels, and then calculation ratio area / whole circle area, something like that:
Andrey.
02-15-2010 05:08 PM
Thanks! Now I see the solution I agree that area would be the easiest. The best solutions are the simple ones. Kudos for everyone.