CmpCalib : Différence entre versions
De MicMac
(Page créée avec « comparaison de calibrations (à venir) ») |
|||
| (4 révisions intermédiaires par le même utilisateur non affichées) | |||
| Ligne 1 : | Ligne 1 : | ||
| − | + | [[Image:picto-liste.png|25px]] [[Command|List of commands]] | |
| + | ==Description== | ||
| + | The CmpCalib command compares two files of calibrations (in general of the same camera). | ||
| + | |||
| + | Calibration parameters of a camera can not be directly compared, the command estimates a rotation to align the parameters. The output file Delta Calib.txt contains a function which gives the differences between the two sets of calibration as function of the radius and a grid which provides planimetric vector deviation between each rays directions. | ||
| + | |||
| + | ===Syntax=== | ||
| + | The basic syntax requires 2 args : | ||
| + | <pre>mm3d CmpCalib Calibration1 Calibration2 </pre> | ||
| + | |||
| + | * Calibration file corresponds to Ori-***/AutoCal_Foc-***.xml . | ||
| + | |||
| + | ===Help=== | ||
| + | A basic help can be asked with | ||
| + | <pre> mm3d CmpCalib -help </pre> | ||
| + | |||
| + | Mandatory unnamed args : | ||
| + | * string :: {First calibration file} | ||
| + | * string :: {Second calibration file} | ||
| + | |||
| + | Named args : | ||
| + | * [Name=Teta01] REAL | ||
| + | * [Name=Teta02] REAL | ||
| + | * [Name=Teta12] REAL | ||
| + | * [Name=L1] INT | ||
| + | * [Name=SzW] INT | ||
| + | * [Name=DynV] REAL | ||
| + | * [Name=Out] string :: {Result (Def=Name1_ecarts.txt)} | ||
| + | * [Name=DispW] bool :: {Display window} | ||
| + | * [Name=XmlG] string :: {Generate Xml} | ||
| + | |||
| + | |||
| + | ===Example=== | ||
| + | For example, in the Pierrerue Tutorial dataset, you can launch after the final adjustment : | ||
| + | |||
| + | <pre>mm3d CmpCalib Ori-Pierrerue/AutoCal*.xml Ori-MEP-Terrain/AutoCal*.xml DispW=1</pre> | ||
| + | |||
| + | ===Plotting results with Matplotlib=== | ||
| + | |||
| + | Here is a python script to plot the output(s) from CmpCalib command : [https://github.com/guihh/CmpCalib_matplotlib] | ||
| + | |||
| + | [[Fichier:CmpCalib plot.jpg]] | ||
| + | |||
| + | How to use it : | ||
| + | |||
| + | <pre> python ./CmpCalib_matplotlib.py Output_from_CmpCalib.txt </pre> | ||
| + | |||
| + | For several : | ||
| + | |||
| + | <pre> python ./CmpCalib_matplotlib.py Output1_from_CmpCalib.txt Output2_from_CmpCalib.txt ...</pre> | ||
Version actuelle en date du 28 octobre 2016 à 17:24
Description
The CmpCalib command compares two files of calibrations (in general of the same camera).
Calibration parameters of a camera can not be directly compared, the command estimates a rotation to align the parameters. The output file Delta Calib.txt contains a function which gives the differences between the two sets of calibration as function of the radius and a grid which provides planimetric vector deviation between each rays directions.
Syntax
The basic syntax requires 2 args :
mm3d CmpCalib Calibration1 Calibration2
- Calibration file corresponds to Ori-***/AutoCal_Foc-***.xml .
Help
A basic help can be asked with
mm3d CmpCalib -help
Mandatory unnamed args :
- string :: {First calibration file}
- string :: {Second calibration file}
Named args :
- [Name=Teta01] REAL
- [Name=Teta02] REAL
- [Name=Teta12] REAL
- [Name=L1] INT
- [Name=SzW] INT
- [Name=DynV] REAL
- [Name=Out] string :: {Result (Def=Name1_ecarts.txt)}
- [Name=DispW] bool :: {Display window}
- [Name=XmlG] string :: {Generate Xml}
Example
For example, in the Pierrerue Tutorial dataset, you can launch after the final adjustment :
mm3d CmpCalib Ori-Pierrerue/AutoCal*.xml Ori-MEP-Terrain/AutoCal*.xml DispW=1
Plotting results with Matplotlib
Here is a python script to plot the output(s) from CmpCalib command : [1]
How to use it :
python ./CmpCalib_matplotlib.py Output_from_CmpCalib.txt
For several :
python ./CmpCalib_matplotlib.py Output1_from_CmpCalib.txt Output2_from_CmpCalib.txt ...
