CameraModel.undistort_pixels¶
- abstract CameraModel.undistort_pixels(pixels, temperature=0)[source]¶
This method computes undistorted pixel locations (gnomic/pinhole locations) for given distorted pixel locations according to the current model.
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 (Sequence | ndarray) – The image points to be converted to gnomic (pinhole) locations as a shape (2,) or (2, n) array
temperature (Real) – 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
- Return type:
ndarray