MATLAB: Calculating the area inside boundary

area inside boundary

Hi,
I am trying to find the number of pixels inside the boundary where I have the boundary points coordinates only.
actually I want to calculate the area inside the boundary. I need some help.

Best Answer

Use polyarea:
area = polyarea(xCoordinates, yCoordinates);