define boundaries and merge two objects

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

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

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!