Calculate area of polygon given (x,y) coordinates
I have a set of points and would like to know if there is a function (for the sake of convenience and probably speed) that can calculate the area enclosed by a set of points.
I have a set of points and would like to know if there is a function (for the sake of convenience and probably speed) that can calculate the area enclosed by a set of points.
I need to create a numpy 2D array which represents a binary mask of a polygon, using standard Python packages.