Checkerboard Lens Calibration - uses the open cv algorithm to compute calibration parameters for a lens. Takes PNGs or VXLs as input. Also converts the vxls into pngs. Rows and columns of the checkerboard need to be provided. Usage: python CheckerBoardLensCalibration.py –file filePath –rows rows –cols cols
Returns Lens Parameters and distortion coefficients using images or vxl files of a checkerboard taken in different orientations.
Checkerboard Lens Calibration - uses the open cv algorithm to compute calibration parameters for a lens. Takes PNGs or VXLs as input. Also converts the vxls into pngs. Rows and columns of the checkerboard need to be provided.
Parameters required:
:param filePath: Takes the path of the file with checkerboard images / vxl files
:param rows: Rows present in the checkerboard
:param cols: Columns present in the checkerboard
Note
Use at least ten images of the checkerboard in different orientations to get the correct result
CommonPhaseOffset.py - takes vxl file as input along with modulation frequency and distance to give phaseCorr values. Requires two vxl files - one for each frequency to calculate phase corr 1 and phase corr 2 ‘’‘
‘’‘Example Script: python CommonPhaseOffset.py -f “file.vxl” -d 0.7 -m 20 -c tintin.ti (-n 10 -g “file2.vxl”) or python CommonPhaseOffset.py –file1 “file.vxl” –distance 0.7 –modFreq1 20 –chipset tintin.ti (–modFreq2 10 –file2 “file2.vxl”)
Computes the common phase offsets.
This function calculates the common phase offsets for a given file, taking VXL as input.
Parameters:
- file1, file2: File(s) for computing common phase offsets. These should be vxl files of a flat wall. The camera should be almost parallel to the wall.
- modFreq1, modFreq2 : Modulation Frequency (ies) when the data is captured. If dealiasing is enabled, two modulation frequencies are required
- cx, cy: The coordinates of the center pixel, found during lens calibration. If cx and cy are not available, the central value (120,160) is taken.
- window: The window size. By default, a window of 4x4 is required.
- chipset: The chipset being used.
Returns:
- phase_Corr1: Phase offset value for the first modulation frequency
- phase_Corr2: Phase offset value for the second modulation frequency
Computes the average phases for a given file. Uses the complex average for getting phase value
CommonPhaseOffset.py - takes vxl file as input along with modulation frequency and distance to give phaseCorr values. Requires two vxl files - one for each frequency to calculate phase corr 1 and phase corr 2 ‘’‘
‘’‘Example Script: python CommonPhaseOffset.py -f “file.vxl” -d 0.7 -m 20 -c tintin.ti (-n 10 -g “file2.vxl”) or python CommonPhaseOffset.py –file1 “file.vxl” –distance 0.7 –modFreq1 20 –chipset tintin.ti (–modFreq2 10 –file2 “file2.vxl”)
Computes the common phase offsets.
This function calculates the common phase offsets for a given file, taking VXL as input.
Parameters:
- file1, file2: File(s) for computing common phase offsets. These should be vxl files of a flat wall. The camera should be almost parallel to the wall.
- modFreq1, modFreq2 : Modulation Frequency (ies) when the data is captured. If dealiasing is enabled, two modulation frequencies are required
- cx, cy: The coordinates of the center pixel, found during lens calibration. If cx and cy are not available, the central value (120,160) is taken.
- window: The window size. By default, a window of 4x4 is required.
- chipset: The chipset being used.
Returns:
- phase_Corr1: Phase offset value for the first modulation frequency
- phase_Corr2: Phase offset value for the second modulation frequency
Computes the average phases for a given file. Uses the complex average for getting phase value
Extracts just phase and amplitude values from the parsed frames
Takes raw data from vxl file
Parsing the arguments in the command line - this is used to get the parameters using this script
CommonPhaseOffset.py - takes vxl file as input along with modulation frequency and distance to give phaseCorr values. Requires two vxl files - one for each frequency to calculate phase corr 1 and phase corr 2 ‘’‘
‘’‘Example Script: python CommonPhaseOffset.py -f “file.vxl” -d 0.7 -m 20 -c tintin.ti (-n 10 -g “file2.vxl”) or python CommonPhaseOffset.py –file1 “file.vxl” –distance 0.7 –modFreq1 20 –chipset tintin.ti (–modFreq2 10 –file2 “file2.vxl”)
Computes the common phase offsets.
This function calculates the common phase offsets for a given file, taking VXL as input.
Parameters:
- file1, file2: File(s) for computing common phase offsets. These should be vxl files of a flat wall. The camera should be almost parallel to the wall.
- modFreq1, modFreq2 : Modulation Frequency (ies) when the data is captured. If dealiasing is enabled, two modulation frequencies are required
- cx, cy: The coordinates of the center pixel, found during lens calibration. If cx and cy are not available, the central value (120,160) is taken.
- window: The window size. By default, a window of 4x4 is required.
- chipset: The chipset being used.
Returns:
- phase_Corr1: Phase offset value for the first modulation frequency
- phase_Corr2: Phase offset value for the second modulation frequency
Computes the average phases for a given file. Uses simple average for getting phase value
Extracts just phase and amplitude values from the parsed frames
Takes raw data from vxl file
Parsing the arguments in the command line - this is used to get the parameters using this script
CommonPhaseOffset.py - takes vxl file as input along with modulation frequency and distance to give phaseCorr values. Requires two vxl files - one for each frequency to calculate phase corr 1 and phase corr 2
HDRcommonPhaseOffset.py - takes vxl file as input along with modulation frequency and distance to give phaseCorr values. Requires two vxl files - one for each frequency to calculate phase corr 1 and phase corr 2 Make sure that hdr_scale is greater than zero before recording the vxl (only works for tintin at this point of time)
Computes average phases for the HDR frame
The following program computes the non-linearity correction coefficients using csv as the input
This function computes non linearity coefficients.
This file calculates the phase offsets and saves it as an npy file. It also returns the bin file of the offsets. Usage: python PerPixelOffset.py -f “file.vxl” -n “profileName” or python PerPixelOffset.py –file “file.vxl” –name “profileName”
Returns the average phases for all pixels for a given file
Calculates temperature calibration offsets (coeff_illum, coeff_sensor), taking csv file as input.
Takes a CSV file containing phase values at temperatures for illumination and sensor. Gives coeff_illum and coeff_sensor as output Uses a least squares fit to compute temperature calibration