SplitCamera.check_in_fov¶
giant.camera_models.split_camera
:
- SplitCamera.check_in_fov(vectors, image=0, temperature=0)[source]¶
Determines if any points in the array are within the field of view of the camera.
This method delegates the field of view check to either model1 or model2 based on the defined split logic. It checks whether the given vertices are within the field of view of the appropriate camera model.
- Parameters:
vectors (Sequence[float] | ndarray[tuple[Any, ...], dtype[float64]]) – Vectors to check if they are in the field of view of the camera expressed as a shape (3, n) array in the camera frame.
image (int) – The index of the image being projected onto (only applicable with multiple misalignments)
temperature (float) – The temperature of the camera to use for the projection
- Returns:
A boolean array the same length as the number of columns of vectors. False by default, True if the point is in the FOV.
- Return type:
ndarray[tuple[Any, …], dtype[bool]]