window_mask#
- esis.optics.window_mask(footprint, shape)[source]#
Mark the pixels of a frame that lie inside one window’s outline.
The outline of the field stop on the sensor at one line, see
optika.systems.LinearSystem.footprint(), bounds the window that line illuminates. Pixels outside it hold other lines’ windows or the gaps between them, which, read through this line’s distortion, land on the sky as structure that belongs elsewhere.- Parameters:
footprint (AbstractCartesian2dVectorArray) – The vertices of the window’s outline, in pixels.
shape (tuple[int, int]) – The shape of the frame,
(num_y, num_x).
- Return type: