To analyze an image, I am using the AForge.NET library. It gives amazing results accept for one: the circularity of a blob.

Is there a way to get the circularity or the perimeter of a blob? Having one will allow me to calculate the other using the area.

Lets have some more info:

An example of an image that I have to analyze (in low resolution):

The steps I take to get the blobs:

- Define area of interest

- apply a threshold

- invert colors

- extract blobs:

- Code: Select all
`BlobCounter bc = new BlobCounter();`

bc.FilterBlobs = false;

bc.ObjectsOrder = ObjectsOrder.Area;

try

{

bc.ProcessImage(image);

Blob[] blobs = bc.GetObjectsInformation();

}

catch { }

Thanks in advance,

Steven