I am working with a 3D rendering of a large field containing various objects. My program views this field in perspective from a high point.
I need to access the pixel data of (only) a rectangle in the field as viewed from above. I have the coordinates of this rectangle in the field, and would like to: (a) Find the pixels corresponding to my desired rectangle. (b) (Ideally) write the corresponding pixel matrix to a file.
Does anyone know a simple way of doing this?