giant.camera_models.split_camera

This module provides the SplitCamera class, which allows for combining two different camera models into a single model.

The SplitCamera class is useful when dealing with cameras that have different properties or behaviors in different regions of the image or camera frame. It allows you to specify two different camera models and define how to split between them based on either the camera frame coordinates or the image plane coordinates.

Use

To use the SplitCamera class, you need to provide two camera models and specify how to split between them:

>>> from giant.camera_models import PinholeModel, SplitCamera
>>> model1 = PinholeModel(...)
>>> model2 = PinholeModel(...)
>>> split_camera = SplitCamera(model1, model2, camera_frame_split_axis=CameraFrameSplitAxis.X,
...                            camera_frame_split_threshold=0.0)

The SplitCamera will then use model1 for points where the X coordinate in the camera frame is less than or equal to 0.0, and model2 for points where the X coordinate is greater than 0.0.

Classes

SplitCamera

A camera model that combines two different camera models for different regions of the detector.

Enums

CameraFrameSplitAxis

An enumeration specifying the axis to use for splitting in the camera frame.

ImagePlaneSplitAxis

An enumeration specifying the axis to use for splitting in the image plane.