calculate the area of three circles overlapping

3 ビュー (過去 30 日間)
vatankhah
vatankhah 2013 年 9 月 12 日
コメント済み: Sunita Saha 2018 年 2 月 24 日
I have 3 circles. We know the center coordinates of each circle and also their radii.
For example:
circle 1: radius=r1 , center coordinate=(x1,y1)
circle 2: radius=r2 , center coordinate=(x2,y2)
circle 3: radius=r3 , center coordinate=(x3,y3)
I want to calculate the overlapping area of these three circles. I mean just the area which all these three circles have in common
thanks

回答 (1 件)

Image Analyst
Image Analyst 2013 年 9 月 12 日
I suggest you start with this answer by Roger: http://www.mathworks.com/matlabcentral/answers/86975#answer_96518
  5 件のコメント
Image Analyst
Image Analyst 2018 年 2 月 23 日
Create a digital image with the faq http://matlab.wikia.com/wiki/FAQ#How_do_I_create_a_circle.3F. Then sum the circle binary image into a cumulative one as you draw each circle.
sumImage = zeros(rows, columns);
for k = 1 : numCircles
thisOneCircle = .... use FAQ to create image of one circle.
sumImage = sumImage + thisOneCircle;
end
Then use sum to count the number of pixels where the count is more than 2
overlappedPixels = sumImage >= 2;
numOverlapPixels = sum(overlappedPixels (:));
Sunita Saha
Sunita Saha 2018 年 2 月 24 日
Thank you for the solution suggestion.

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by