Clear Filters
Clear Filters

remove corner centroid in image

1 view (last 30 days)
Allen Ray
Allen Ray on 16 Oct 2016
Edited: Image Analyst on 16 Oct 2016
how to remove the corner centroid ?i have removed the noise to calculate the number of coins. Anyone can helps please.

Answers (1)

Image Analyst
Image Analyst on 16 Oct 2016
Edited: Image Analyst on 16 Oct 2016
I'd have to know how you got them in the first place. This is a very easy problem, assuming that all coin denominations are a different area. Or if two coins have close to the same area, then they should be of different color. Simply threshold, call bwareafilt() to get rid of small noise specks, and call regionprops() to get the area. Then have a look up table that gives the denomination for each area. Very easy. See my Image Processing Tutorial in my File Exchange, where I identify 5 cent and 10 cent coins. http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!