73 views (last 30 days)

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.

Image Analyst
on 19 Feb 2016

what do you consider the "real" area? Do you have anlytical formulas for your ellipses?

Opportunities for recent engineering grads.

Apply Today
## 2 Comments

## Direct link to this comment

https://uk.mathworks.com/matlabcentral/answers/268875-how-to-calculate-the-intersection-area-of-two-ellipses#comment_644977

⋮## Direct link to this comment

https://uk.mathworks.com/matlabcentral/answers/268875-how-to-calculate-the-intersection-area-of-two-ellipses#comment_644977

## Direct link to this comment

https://uk.mathworks.com/matlabcentral/answers/268875-how-to-calculate-the-intersection-area-of-two-ellipses#comment_645012

⋮## Direct link to this comment

https://uk.mathworks.com/matlabcentral/answers/268875-how-to-calculate-the-intersection-area-of-two-ellipses#comment_645012

Sign in to comment.