public static Estimate1ofPnP computePnPwithEPnP ( int numIterations , double magicNumber ) { PnPLepetitEPnP alg = new PnPLepetitEPnP ( magicNumber ) ; alg . setNumIterations ( numIterations ) ; return new WrapPnPLepetitEPnP ( alg ) ; }
Returns a solution to the PnP problem for 4 or more points using EPnP . Fast and fairly accurate algorithm . Can handle general and planar scenario automatically .