ReturnShape

class giant.camera_models.camera_model.ReturnShape(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

This enumeration is used to specify what should be returned from method undistort_image().

FULL = 'full'

Return the full undistorted image in a 2D array large enough to contain all pixels with valid data. Pixels inside of the array which do not have valid data are filled with NaN.

SAME = 'same'

Return an undistorted image in a 2D array of the same shape as the input image. If the undistorted image is larger than the input image then it will be cropped. If the undistorted image is smaller than the input image then it will be padded. Pixels which do not have valid data are filled with NaN.