AForge.NET

  :: AForge.NET Framework :: Articles :: Forums ::

Finding a round icon in an image

The forum is to discuss topics related to different areas of image processing and computer vision.

Finding a round icon in an image

Postby Guye » Sun Dec 23, 2018 3:36 pm

Hello,

I am new with image processing so please excuse in advance.

I am trying to find a round colored glyph in an image and wanted to hear you guys ideas on my implementation and if there is a better one.
I have 2 images, the template and the source. Did the following steps:
1. Create a filter out of the RGB ranges from the template (without the black pixels that are the background).
2. Apply the filter on the source (that cleaned most of the pic from all other but the icon).
3. Run a ExhaustiveTemplateMatching between the template and the source.

That worked very well besides, and that is the template image is square and the glyph is round. Leaving the corners of the template image processed in the ExhaustiveTemplateMatching failing when the background has some color in range of the filter.
So I am looking for a way to disregard the black tips of the glyphs in ExhaustiveTemplateMatching.

Thank you.
Guye
 
Posts: 1
Joined: Sun Dec 23, 2018 3:20 pm

Re: Finding a round icon in an image

Postby andrew.kirillov » Sun Dec 23, 2018 4:00 pm

Hello,

Hardly possible to recommend much without samples of icons and images you are processing. The "round colored glyph" may sound simple, but will not look the same to many.

Guye wrote:So I am looking for a way to disregard the black tips of the glyphs in ExhaustiveTemplateMatching.

The easiest would be to modify that class, so it does not compare black pixels of the "icon" with source image.

Just a note. Template matching is not really implemented in AForge.NET Framework. ExhaustiveTemplateMatching is too simple to use in most cases. If size/orientation of template image/icon changes within the source image, then it will fail badly.
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3444
Joined: Fri Jan 23, 2009 9:12 am
Location: UK




Return to Image Processing and Computer Vision