def F_from_ransac(x1, x2, model, maxiter=5000, match_theshold=1e-06):
 import ransac
 data = vstack((x1, x2))
 (F, ransac_data) = ransac.ransac(data.T, model, 8, maxiter, match_theshold, 20, return_all=True)
 return (F, ransac_data['inliers'])

def F_from_ransac ( x1 , x2 , model , maxiter = 5000 , match_theshold = 1e-06 ) : import ransac data = vstack ( ( x1 , x2 ) ) ( F , ransac_data ) = ransac . ransac ( data . T , model , 8 , maxiter , match_theshold , 20 , return_all = True ) return ( F , ransac_data [ 'inliers' ] )
robust estimation of a fundamental matrix f from point correspondences using ransac .