MATLAB Answers

how to seperate overlapping circles

7 views (last 30 days)
Huseyin on 5 Oct 2016
Answered: Matt J on 5 Oct 2016
I have a sample image below that describes my problem. As you see I have two overlapping shapes. I want to seperate them into two different shapes. I found that there are some methods like visboundaries or regionprops but couldn't figure out how to use them for this kind of image. I would be very glad if you help me. Thanks

Accepted Answer

KSSV on 5 Oct 2016
clc; clear all ;
data = imread(yourimage) ;
R = data(:,:,1) ;
b = bwboundaries(R) ;
b1 = b{1} ;
b2 = b{2} ;
b3 = b{3} ;
b4 = b{4} ;
hold on
There might be more elegant solution for this.

Community Treasure Hunt

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

Start Hunting!