I have a aerial camera's view on the ground that is defined by 4 corners in Lat/Long coordinates. In Python, what is the best way to generate a grid, say 100X100, inside this trapezoid defined by the 4 corners?
Context: I am trying to get a fast implemetation of a landmask for image processing. Camera sees a scene that is part ocean part land and I would like to generate a very coarse mask corresponding to area with land in the image.
Thanks in advance.
I am trying to do a realtime masking of an image (accurately geo referenced) on an Nvidia Jetson.