get_arc_pixels#

silmaril.imaging.get_arc_pixels(source_grid, traced_pixel_corners, image_plane, nonempty_pixels=None)#

Returns the list of pixels on the image plane that fall within the source image when traced back to the source plane.

Parameters:
  • source_grid (numpy.ndarray) – grid of source plane coordinates

  • traced_corners_grid (numpy.ndarray) – grid of source plane coordinates of the corners of each pixel on the image plane

  • image_grid (numpy.ndarray) – grid of image plane coordinates

Returns:

  • nonempty_pixels (numpy.ndarray) – list of pixel indices on the image plane corresponding to pixels that fall within the source image when traced back to the source plane

  • arc_pixels (numpy.ndarray) – list of coordinates on the image plane corresponding to pixels that fall within the source image when traced back to the source plane