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 7960803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:51:38+00:00 2026-06-04T04:51:38+00:00

I have a grayscale image, which I convert to black and white image, and

  • 0

I have a grayscale image, which I convert to black and white image, and do some processing on it. After the processing, I have a black and white image which has groups of white pixels in a black image. So I want to place circles around the areas which are white in resultant image, but in original image.
I have thought of many approaches but am still unable to start with any approach.
Please help.

  • 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-04T04:51:40+00:00Added an answer on June 4, 2026 at 4:51 am

    You can use regionprops to get some statistics about connected white regions in a binary image, and estimate a region radius from that.

    im = imread('moon.jpg');
    bw = im2bw(im);
    
    stats = regionprops(bw);
    
    imshow(im);
    hold on;
    
    t = 0:.01:2*pi;
    for i = 1:numel(stats)
        bb = stats(i).BoundingBox;
        radius = mean([bb(3),bb(4)])/2;
    
        plot(bb(1)+radius+radius*sin(t), bb(2)+radius+radius*cos(t));
    end
    

    Gives:
    Image

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

Sidebar

Related Questions

I have a grayscale image which I want to use for drawing Cocoa controls.
I have a texture which has only 1 channel as it's a grayscale image.
I have a 16 bit grayscale image that I want to display using WPF
I have a CIImage I need to convert from color to Black and White
I have a greyscale image which has pixel values ranging from 1.000 to 1.003.
I have a greyscale image which was created from a RGB image using farmula:
I have an IMG tag with a grayscale image. I hooked up a Hover()
Imagine you have two images A and B, and a third grayscale image T.
I have a grayscale image that needs to be painted with values from a
I have a grayscale image from a photograph. I've determined that certain parts of

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.