• Roman Shapovalov's avatar
    Numerical stability of ePnP. · a8377f1f
    Roman Shapovalov authored
    Summary: lg-zhang found the problem with the quadratic part of ePnP implementation: n262385 . It was caused by a coefficient returned from the linear equation solver being equal to exactly 0.0, which caused `sign()` to return 0, something I had not anticipated. I also made sure we avoid division by zero by clamping all relevant denominators.
    
    Reviewed By: nikhilaravi, lg-zhang
    
    Differential Revision: D21531200
    
    fbshipit-source-id: 9eb2fa9d4f4f8f5f411d4cf1cffcc44b365b7e51
    a8377f1f
test_perspective_n_points.py 4.63 KB