Dot-Location Calibration
- example.sofast_calibration.example_calibrate_sofast_fixed_dot_locations.example_calibrate_sofast_fixed_dot_locations()
Performs a printed fixed pattern dot location calibration using photogrammetry
Load measured calibration data
Find origin dots in calibration images
Perform dot location calibration
Save dot locations as DotLocationsFixedPattern file
Save calculation figures
Screen Shape Calibration
Calibrates the 3D shape of a screen using photogrammetry and projected SOFAST fringes.
This module provides a function to perform the calibration of a screen’s 3D shape by utilizing calibration data obtained from photogrammetry and SOFAST measurements. The calibration process involves loading measured data, performing the calibration, and saving the resulting screen shape as a DisplayShape object. Additionally, calculation figures are generated and saved for further analysis.
- Usage:
To execute the calibration process, run the module directly. The output files will be saved in a specified directory structure.
- example.sofast_calibration.example_calibration_screen_shape.example_screen_shape_calibration()
Calibrates the 3D shape of a screen using photogrammetry and projected SOFAST fringes.
This function performs the following steps:
Loads measured calibration data from specified input files.
Performs the calibration of the screen shape using the loaded data.
Saves the resulting 3D shape data as a DisplayShape object in HDF5 format.
Generates and saves calculation figures for visual analysis.
The function expects the necessary input files to be located in the specified directories within the OpenCSP code structure. The output files, including the DisplayShape object and figures, are saved in a designated output directory.
Notes
The following input files are required:
Aruco marker corner locations (CSV format)
Screen calibration point pairs (CSV format)
Camera distortion data (HDF5 format)
Image projection data (HDF5 format)
SOFAST measurement files (HDF5 format)
Example
To perform the screen shape calibration, simply call the function:
>>> example_screen_shape_calibration()
The resulting DisplayShape file and figures will be saved in the output directory.
Spatial Orientation Calibration
- example.sofast_calibration.example_calibration_spatial_orientation.example_camera_position_calibration()
Calibrates the position of the Sofast camera.
Load measured calibration data
Perform camera position calibration
Save orientation as SpatialOrientation object
Save calculation figures