Less than 4 points in *.ref crashes XMALab after undistortion

Issue #94 resolved
Peter Falkingham created an issue

Currently having a *.ref file with only 3 points (e.g. 26 triangle, etc) will cause XMALab to crash without error after undistortion.

To reproduce:
make only three entries in the *.ref file.
Load cube images, undisortion grids, framespec, and ref file.
Perform undistortion.
Try and change to calibration workspace. <crash>

Comments (5)

  1. Benjamin Knorlein

    Hi Peter, We discussed this issue in the group and decided to close the issue as we do not want to give the impression that we also recommend to use 3 entries. It is also not 100% guaranteed that the algorithm finds the right solution with only 3 entries. However there are several things you can do.

    1) Just add a fourth dummy point and after selection of 3 points just click "comoute calibration" 2) If you know the id of another point you can manually change the ids when clicking on the number of the entry. This would allow you to redefine the 4th marker whenever you can identify a fourth point.

    Let me know if you need more info,

    Ben

  2. Peter Falkingham reporter

    Fair enough. Might I recommend at least that an error message gets thrown explaining the crash?

  3. Log in to comment