how to calculate the intersection area of two ellipses
Show older comments
hello, how can i calculte the intersection area of two ellipses, each ellipse is characterized by(x,y,a,b,w).I thought of solving the system of equations of the two ellipses ,then calculate the area bounded by the points found as solution. would you please help me ?
2 Comments
Hongchu Yu
on 1 Dec 2018
Had you solved the problem? I have the same problem now. Could you tell me the solution?
Image Analyst
on 2 Dec 2018
The only solution I've seen is a numerical one, not an analytical one.
Answers (2)
Kevin Claytor
on 18 Feb 2016
0 votes
Image Analyst
on 18 Feb 2016
To create an ellipse numerically in 2-D is very easy - just see the FAQ. http://matlab.wikia.com/wiki/FAQ#How_do_I_create_an_ellipse.3F To rotate it, just multiply the coordinates by the rotation matrix [cos(theta), -sin(theta); cos(theta), sin(theta)]. Then just AND the two ellipse images
intersectionArea = ellipsoid1 & ellipsoid2;
pixelArea = sum(intersectionArea (:)); % Compute the area in pixels.
3 Comments
amal Mbarki
on 19 Feb 2016
Image Analyst
on 19 Feb 2016
what do you consider the "real" area? Do you have anlytical formulas for your ellipses?
amal Mbarki
on 19 Feb 2016
Edited: amal Mbarki
on 19 Feb 2016
Categories
Find more on Quantum Chemistry in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!