Ask Your Question
1

Why do overlapping blob detection key points occur? [closed]

asked 2019-01-06 16:01:01 -0600

KevinC gravatar image

updated 2019-01-06 16:59:53 -0600

Hi, I'm fairly new to using OpenCV with C++ and I've been toying around with the blob detection algorithm.

I noticed that there is one particular key point that basically is overlapping with another one really closely.

Is there any explanation as to why this occurs? image description

Here is the code for the parameters I have set and calling up the detector itself, the images are captured via a RealSense camera:

    //Blob Detection Setup 
    SimpleBlobDetector::Params params;
    //Area filter
    params.filterByArea = true;
    params.minArea = 500; //used to filter out specks
    params.maxArea = 3000000; //this is just an arbitrarily very high number to exceed the default cap
    //Circularity filter
    params.filterByCircularity = false;
    //Convexity filter
    params.filterByConvexity = false;
    //Inertia filter
    params.filterByInertia = false;

    Ptr<SimpleBlobDetector> standard_detector = SimpleBlobDetector::create(params);
    vector<KeyPoint> standard_keypoints;
    standard_detector->detect(standard_im_inv, standard_keypoints);
    int objCount = size(standard_keypoints);

    Mat standard_im_with_keypoints;
    drawKeypoints(standard_im_inv, standard_keypoints, standard_im_with_keypoints, Scalar(0, 0, 255), DrawMatchesFlags::DRAW_RICH_KEYPOINTS);
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by KevinC
close date 2019-01-07 12:47:32.778475

Comments

1

Please post your code.

sjhalayka gravatar imagesjhalayka ( 2019-01-06 16:53:41 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-01-07 07:17:19 -0600

supra56 gravatar image

updated 2019-01-07 07:54:47 -0600

Try changing the values maxArea to10000

edit flag offensive delete link more

Comments

1

This worked out! Thanks!

KevinC gravatar imageKevinC ( 2019-01-07 12:47:54 -0600 )edit

@KevinC. Can you upvoted?

supra56 gravatar imagesupra56 ( 2019-01-07 14:25:06 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2019-01-06 16:01:01 -0600

Seen: 1,463 times

Last updated: Jan 07 '19