SplitCamera.pixels_to_unit¶
giant.camera_models.split_camera
:
- SplitCamera.pixels_to_unit(pixels, temperature=0, image=0)[source]¶
Convert pixel image locations to unit vectors expressed in the camera frame.
This method delegates the conversion to either model1 or model2 based on the defined split logic. The pixel locations should be expressed as a shape (2,) or (2, n) array. They are converted to unit vectors by first going through the inverse distortion model (see
undistort_pixels()
) and then being converted to unit vectors in the camera frame according to the definitions of the current model (also including any misalignment terms).- Parameters:
pixels – The image points to be converted to unit vectors in the camera frame as a shape (2,) or (2, n) array
temperature – The temperature to use for the undistortion
image – The image index that the pixels belong to (only important if there are multiple misalignments)
- Returns:
The unit vectors corresponding to the image locations expressed in the camera frame as a shape (3,) or (3, n) array.