Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to run new version of pymagsac. #36

Open
ACuOoOoO opened this issue Jun 5, 2024 · 0 comments
Open

Fail to run new version of pymagsac. #36

ACuOoOoO opened this issue Jun 5, 2024 · 0 comments

Comments

@ACuOoOoO
Copy link

ACuOoOoO commented Jun 5, 2024

I follow README to install pymagsac from source. However, I cannot run the python examples. I have tried to fix bugs in the examples. However, no inlier cannot be found by

def verify_pymagsac_fundam(kps1, kps2, tentatives, use_magsac_plus_plus):
    src_pts = np.float64([ kps1[m.queryIdx].pt for m in tentatives ]).reshape(-1,2)
    dst_pts = np.float64([ kps2[m.trainIdx].pt for m in tentatives ]).reshape(-1,2)
    src_pts = np.ascontiguousarray(src_pts)
    dst_pts = np.ascontiguousarray(src_pts)
    H, mask,_ = pymagsac.findFundamentalMatrix(
        src_pts, 
        dst_pts,
        2592.0,1944.0,2592.0,1944.0,
        probabilities = np.ones(src_pts.shape[0]))
    print (deepcopy(mask).astype(np.float32).sum(), 'inliers found')
    return H, mask
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant