Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8879499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:57:48+00:00 2026-06-14T19:57:48+00:00

@robot_sherrick answered me this question , this is a follow-up question for his answer.

  • 0

@robot_sherrick answered me this question, this is a follow-up question for his answer.

cv::SimpleBlobDetector in Opencv 2.4 looks very exciting but I am not sure I can make it work for more detailed data extraction.

I have the following concerns:

  • if this only returns center of the blob, I can’t have an entire, labelled Mat, can I?
  • how can I access the features of the detected blobs like area, convexity, color and so on?
  • can I display an exact segmentation with this? (like with say, waterfall)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T19:57:49+00:00Added an answer on June 14, 2026 at 7:57 pm

    So the code should look something like this:

    cv::Mat inputImg = imread(image_file_name, CV_LOAD_IMAGE_COLOR);   // Read a file
    cv::SimpleBlobDetector::Params params; 
    params.minDistBetweenBlobs = 10.0;  // minimum 10 pixels between blobs
    params.filterByArea = true;         // filter my blobs by area of blob
    params.minArea = 20.0;              // min 20 pixels squared
    params.maxArea = 500.0;             // max 500 pixels squared
    SimpleBlobDetector myBlobDetector(params);
    std::vector<cv::KeyPoint> myBlobs;
    myBlobDetector.detect(inputImg, myBlobs);
    

    If you then want to have these keypoints highlighted on your image:

    cv::Mat blobImg;    
    cv::drawKeypoints(inputImg, myBlobs, blobImg);
    cv::imshow("Blobs", blobImg);
    

    To access the info in the keypoints, you then just access each element like so:

    for(std::vector<cv::KeyPoint>::iterator blobIterator = myBlobs.begin(); blobIterator != myBlobs.end(); blobIterator++){
       std::cout << "size of blob is: " << blobIterator->size << std::endl;
       std::cout << "point is at: " << blobIterator->pt.x << " " << blobIterator->pt.y << std::endl;
    } 
    

    Note: this has not been compiled and may have typos.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using java.awt.Robot for integration tests of my Swing application, but I'm having trouble
I looking into making a kind of robot testing browser. Like Selenium, but one
I want to have a robot fetch a URL every hour, but if the
Is there any cheap and very extensible robot kit, which can work with Microsoft
The Google Wave documentation contains the Robot Events , but doesn't list what values
I am using Java Robot class to send keyevents. I tried robot.keyPress() function. But
Consider the following code: function Robot(weapon) { this.weapon = weapon; this.fire = function() {
This is the data in the database robot_id sequence_no x y ABC1234E 1 8888
function robot(robotId) { this.id = robotId; this.parts = new Array(); this.collectParts = function() {
I'm trying to program yahoo messenger robot,now my robot can get messages and answer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.