AForge.NET

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

How to detect black blobs in an image

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

How to detect black blobs in an image

Postby Jukz » Sat Sep 17, 2016 5:51 am

Hi. I just started using AForge.NET today and I can't seem to find out what to use to mark the black blobs in the middle of the image with a red circle.
The image is a banana leaf with aphids on it btw.

Any help would be greatly appreciated!
Attachments
help.PNG
help.PNG (12.61 KiB) Viewed 5812 times
Jukz
 
Posts: 2
Joined: Sat Sep 17, 2016 5:05 am

Re: How to detect black blobs in an image

Postby andrew.kirillov » Sun Sep 18, 2016 7:22 am

Hello,

The idea of your code will be similar to the BlobHoles. You need to invert your image, then use BlobCounter to find all objects (which will corespond to black objects in original image) and then find only those which don't touch image's edge.
With best regards,
Andrew


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




Return to Image Processing and Computer Vision

cron