(ARCalibration): calibration info are de-synchronized
Summary
When performing an extrinsic calibration, images can be de-synchronized. The calibration info of the two cameras are store in two different lists and we use the same index to retrieve them. But sometimes, a information is lost for a camera and then the indexes are not coherent.
Steps to reproduce
- Launch ARCalibration/Calibration activity
- Perform the intrinsic calibration for the two cameras
- Click on the extrinsic button to open the extrinsic view
- Play the video and detect the chessboard
- Click on the
Add
button
Sometimes a record is added on the calibration info of one camera but nit the second.
sometimes, the information is not added immediately when I click on the button (because the detection is not stable), but the signals accumulate and everything is added at once when it is stable.
Calibration activity containing de-synchronized information : https://owncloud.ircad.fr/index.php/f/1224381 It contains more information for the first camera.
Dev environment
- OS: Linux Mint 18
- CMake version: 3.13.3
- Compiler: clang 6.0
- Build type: release and debug
- Commit: 9e4b4126
What is the current bug behavior?
The information are desynchrinized.
What is the expected correct behavior?
The information are coherent.
Relevant logs and/or screenshots
Possible fixes
Check that the chessboard is detected in the two cameras before to insert the record in the calibrationInfo.