SplitCamera.undistort_pixels¶
giant.camera_models.split_camera
:
- SplitCamera.undistort_pixels(pixels, temperature=0)[source]¶
Compute undistorted pixel locations (gnomic/pinhole locations) for given distorted pixel locations.
This method delegates the undistortion to either model1 or model2 based on the defined split logic. The
pixels
input should be specified as a shape (2,) or (2, n) array of image locations with units of pixels. The return will be an array of the same shape aspixels
with units of pixels but with distortion removed.- Parameters:
pixels – The image points to be converted to gnomic (pinhole) locations as a shape (2,) or (2, n) array
temperature – The temperature to use for the undistortion
- Returns:
The undistorted (gnomic) locations corresponding to the distorted pixel locations as an array of the same shape as
pixels