# how to calculate the intersection area of two ellipses

43 views (last 30 days)

Show older comments

##### 2 Comments

### Answers (2)

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.

### See Also

### Categories

### Community Treasure Hunt

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

Start Hunting!