Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to remove blobs with SimpleBlobDetector

Hello,

Im trying to use SimpleBlobDetector to remove small object from my binary image,

first I creat an object of type SimpleBlobDetector, and then detect blobs like this code below

    SimpleBlobDetector blobDetector( params );
    blobDetector.create("SimpleBlob");      
    blobDetector.detect( src, keyPoints );

This code detect for example 2 blobs from 3 according to the parameters. Now my question is how to delete the unwanted blob from the mage...?

I have another question, can we calculate th area of the blobs ?

thanks :)

how to remove blobs with SimpleBlobDetector

Hello,

Im trying to use SimpleBlobDetector to remove small object from my binary image,

first I creat an object of type SimpleBlobDetector, and then detect blobs like this code below

    SimpleBlobDetector blobDetector( params );
    blobDetector.create("SimpleBlob");      
    blobDetector.detect( src, keyPoints );

This code detect for example 2 blobs from 3 according to the parameters. Now my question is how to delete the unwanted blob from the mage...?

I have another question, two other questions, how to get the coordinates of blobs, and can we calculate th area of the blobs ?frame a blob in a rectangle?

thanks :)