Figure 2
From: RHYTHM: An Open Source Imaging Toolkit for Cardiac Panoramic Optical Mapping

Calibration of geometry and optical cameras. (A) A MATLAB graphical user interface was used to semi-automate the calibration of each camera needed to facilitate the projection of optical data onto the geometric surface. Detailed explanations and code are included in the toolkit. (B) The cuboid is used to create a global coordinate system whose origin is at the cuboid’s center. All grid junctions on the cuboid surface have known coordinates in the global coordinate system. Identification of these points in a 2D image provides the necessary number of known values to solve for the unknown components of the global-to-camera (i.e., transformation) and the camera-to-sensor (i.e., perspective projection) matrices.