define boundaries and merge two objects

3 views (last 30 days)
I have these both segemented objects and I want to define their boundaries by drawing a perfect circle after that I want to merge these objects in one image . could you help?

Accepted Answer

Image Analyst
Image Analyst on 8 Oct 2022
Assuming they both have the same number of rows and columns, you can do
maskBoth = mask1 | mask2; % Merge -- make union of the two binary images.
  1 Comment
Image Analyst
Image Analyst on 8 Oct 2022
You can use viscircles to draw perfect circles into the overlay above the image.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!