Calculates the relation of areas of two domains by counting pixels.
An application: given a domain E and a disc D with area 1, you obtain the
area of E.
Give a picture containing
*E with one color
*D with another color (prefer white)
Since the relative areas are calculated, area(E)/area(D) applying an
affine transformation to the picture will not change the result.
axis([-10 10 -10 10])
%edit the picture with Paint and apply Demo1
juhisteri (2020). area_pix(picture_filename) (https://www.mathworks.com/matlabcentral/fileexchange/62210-area_pix-picture_filename), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!