pysdic.create_splitscreen_analysis#
- create_splitscreen_analysis(mesh, cameras, images, *, times=None)[source]#
Create an analysis (
pysdic.SDICAnalysis) for a split-screen setup: \(N\) virtual cameras (often 2, through a stereo mirror adapter) share one sensor and one series of images.The frame \(f\) contains \(N\) views, the view \(i\) being
View(cameras[i], images[f]): the samepysdic.Imageobject is used by all the views of a frame. Each camera is shared by its views of all the frames.Note
The parts of the image seen by each camera are defined by the cameras (their projection), not by the image: the ROI of the image, if any, is common to all the views.
The displacements of the frames are not set.
- Parameters:
mesh (
pysdic.Mesh) – The mesh of the observed surface (not copied: it is locked by the analysis).cameras (Sequence[
pysdic.Camera]) – The \(N\) virtual cameras, with the size of the sensor.images (Sequence[
pysdic.Image]) – The series of images, one per frame.times (Optional[ArrayLike], optional (default:
None)) – The times of acquisition of the frames, of shape \((N_f,)\), strictly increasing (seepysdic.SDICAnalysis). If None, the times are not defined.
- Returns:
The analysis with \(N\) views per frame.
- Return type:
- Raises:
TypeError – If an input has a wrong type.
ValueError – If an image does not match the sensor of a camera.
Examples
from pysdic import create_splitscreen_analysis analysis = create_splitscreen_analysis(mesh, [left, right], images) analysis.display_structure("image") # One image per frame, shared by the 2 views