cherab.nagdis.observers.load_cameraยถ
-
cherab.nagdis.observers.load_camera(parent: World, path_to_calibration: str =
'camera_carib.ccc', **kwargs) ThinLensCCDArraySourceยถ Load fast lens camera configured with calcam calibration data.
Default camera extrinsic matrix (rotation matrix and translation vector) is loaded from
calcamcalibration data.- Parameters:
- parent: Worldยถ
Raysect world object to which the camera is attached.
- path_to_calibration: str =
'camera_carib.ccc'ยถ Path to
calcamcalibration data, by default โcamera_carib.cccโ. This file is fetched byfetch_filefunction.- **kwargsยถ
Additional keyword arguments to pass to
fetch_filefunction.
- Returns:
ThinLensCCDArrayโ Instance of ThinLensCCDArray object.
Examples
>>> from raysect.optical import World >>> from cherab.nagdis.observers import load_camera >>> >>> world = World() >>> camera = load_camera(world)