Closed takluyver closed 5 years ago
These two methods are doing quite similar calculations. We should share some of the code between them, so there are fewer places for bugs to hide.
The differences are:
get_pixel_positions
to_distortion_array
These two methods are doing quite similar calculations. We should share some of the code between them, so there are fewer places for bugs to hide.
The differences are:
get_pixel_positions
returns one 3D coordinate for each pixel, butto_distortion_array
has one for each corner.to_distortion_array
shifts the origin so that no x/y coordinates are negativeto_distortion_array
combines the module and slow-scan dimensions, to match data passed as a 2D array.