nonempty_pixel_indices#
- silmaril.imaging.nonempty_pixel_indices(traced_pixel_corners, source_x_range, source_y_range)#
Returns a list of pixel indices on the image plane corresponding to pixels that fall within the source image when traced back to the source plane.
- Parameters:
traced_corners_grid (numpy.ndarray) – grid of source plane coordinates of the corners of each pixel on the image plane
source_x_range (list) – min and max x coordinates of the source image
source_y_range (list) – min and max y coordinates of the source image
- Returns:
nonempty_pixels – list of pixel indices
- Return type:
np.ndarray