I have a bunch of 2d positions (red dots in the example image) in an array and I want to calculate the number of pixels that the volume of the polygon takes up (the yellow shape). You can see that I only want to calculate a boundary, the interior points would get ignored.
I want to have this calculation done in close to realtime. How would I go about this?