When failing to solve the quad homography solution exit the function with a NULL and handle the failure in the caller.
This prevents writing to invalid memory locations later in the function.
Note that the trigger for this is a NaN earlier in line building. There may be some degenerate cases in the eigenvalue solve for line building that needs additional testing.
This change does not introduce any regressions to positive test cases.
When failing to solve the quad homography solution exit the function with a NULL and handle the failure in the caller.
This prevents writing to invalid memory locations later in the function.
Note that the trigger for this is a NaN earlier in line building. There may be some degenerate cases in the eigenvalue solve for line building that needs additional testing.
This change does not introduce any regressions to positive test cases.
See: https://github.com/AprilRobotics/apriltag/issues/72 https://github.com/AprilRobotics/apriltag/issues/154