pysdic.create_bicamera_analysis#

create_bicamera_analysis(mesh, camera_1, camera_2, images_1, images_2, *, times=None)[source]#

Create an analysis (pysdic.SDICAnalysis) for a stereo setup of two cameras that each acquire their own series of images.

The frame \(f\) contains two views: View(camera_1, images_1[f]) (view 0) and View(camera_2, images_2[f]) (view 1). See pysdic.create_multicamera_analysis().

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).

  • camera_1 (pysdic.Camera) – The two cameras.

  • camera_2 (pysdic.Camera) – The two cameras.

  • images_1 (Sequence[pysdic.Image]) – The series of images of each camera, of the same length (the number of frames).

  • images_2 (Sequence[pysdic.Image]) – The series of images of each camera, of the same length (the number of frames).

  • times (Optional[ArrayLike], optional (default: None)) – The times of acquisition of the frames, of shape \((N_f,)\), strictly increasing (see pysdic.SDICAnalysis). If None, the times are not defined.

Returns:

The analysis with 2 views per frame.

Return type:

pysdic.SDICAnalysis

Examples

from pysdic import Pairing, create_bicamera_analysis

analysis = create_bicamera_analysis(mesh, left, right, left_images, right_images)
pairing = Pairing.stereo(0, 0, 1)  # Left / right at the frame 0