FisheyeModel.pixels_to_gnomic_interp¶
giant.camera_models.fisheye_model
:
- FisheyeModel.pixels_to_gnomic_interp(pixels, temperature=0)¶
This method takes an input in pixels and approximates the undistorted gnomic location in units of distance.
This approximating is done by interpolating values previously computed using
pixels_to_gnomic()
andprepare_interp()
and will in general run much faster thanpixels_to_gnomic()
. It should usually be accurate to better than a few thousandths of a pixel for any pixels within the field of view. The interpolation is done using SciPy’s RegularGridInterpolator with a linear interpolation scheme.- Parameters:
pixels (Sequence[float] | ndarray[tuple[Any, ...], dtype[float64]]) – The pixels to be converted as a shape (2,) or (2, n) Sequence
temperature (float) – The temperature for perform the conversion at.
- Returns:
The undistorted gnomic location of the points
- Return type:
ndarray