SplitCamera.distort_pixels

giant.camera_models.split_camera:

SplitCamera.distort_pixels(pixels, temperature=0)[source]

Apply distortion to gnomic pixel locations.

This method delegates the distortion application to either model1 or model2 based on the defined split logic. It takes gnomic pixel locations in units of pixels and applies the appropriate distortion to them. This method is used in the distortion_map() method to generate the distortion values for each pixel.

Parameters:
  • pixels – The pinhole location pixel locations the distortion is to be applied to as a shape (2,) or (2, n) array

  • temperature – The temperature to use for the distortion

Returns:

The distorted pixel locations in units of pixels as an array of the same shape as pixels