-
Notifications
You must be signed in to change notification settings - Fork 55
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
feature matching? #22
Comments
OpenCV has some good toolbox for feature matching : https://docs.opencv.org/3.3.0/dc/dc3/tutorial_py_matcher.html |
@TheToadAlly Hi, I tried the toolbox of feature matching that you provided, but I am in trouble with the data format transition. And after I ran the code, I got this error: img3 = cv2.drawMatches(img1, kp1, img2, kp2, good, None, flags=2) Could you help me with this question? Or can you send me the matching part code? It bothers me for a really long time. Thanks! |
@ytongbai Hi, I also face this problem. Did you solve that? |
@wisemaker Hi,I face the problem same with you,Did you solve that? |
Hi guys, maybe its late but you can solve it by using the kp_list_2_opencv_kp_list function available on utils/kp_tools.py |
@hudsonmartins Hi,i have solved it in my way ,Anyway, thank you for your reply! |
Hi, how did you solve it? please help |
@abeermohamed1 Here is my code, hope to help you.
|
Just as an heads up, it is harmful to do the NN ratio testing for LIFT. That test is only valid for SIFT |
@kmyid Hi, is this the right feature matching code? import h5py img1 = cv2.imread('input/1.png') f1 = h5py.File('output/1_desc.h5') kp1 = np.array(f1['keypoints'].value) opencv_kp1 = kp_list_2_opencv_kp_list(kp1) des1 = np.array(f1['descriptors'].value) bf = cv2.BFMatcher() img5 = cv2.drawMatchesKnn(img1,opencv_kp1,img2,opencv_kp2,good,None,flags=2) |
No. You are still doing the nn-ratio test here. |
@kmyid OK, thank you, and can you provide your matching code? |
Thank you |
thanks for sharing |
Just remove
these lines. Don't do the ratio test. |
Remove
|
@kmyid Ok, thank you very much! |
Hi Professor,
Best regards, |
NN-Ratio is bad, because of the fact that the distribution of descriptor distances for positives and negatives are not the same as SIFT. To do this properly, you need to run a test on a dataset to figure out the distance distributions for pos/neg pairs, and then use that threshold.
Yes. |
Thanks so much for your quick reply! |
One more question: Is TILDE fine with NN-ratio test? Thanks in advance. Best regards, |
Using NN-Ratio test with ANY descriptor is not fine. You need to use different ratio's for that. Which is why we did not do that test in comparing different methods. |
Dear Professor, In matching stage, did you use Brute Force Hamming distance matching for LIFT? Thanks! Best regards, |
We don't, because it's not a binary descriptor.
…On Thu, Jun 13, 2019 at 6:02 AM qiuweibo ***@***.***> wrote:
Dear Professor,
In matching stage, did you use Brute Force Hamming distance matching for
LIFT?
If you use Hamming distance, so LIFT is a binary descriptor?
Thanks!
Best regards,
Weibo.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#22?email_source=notifications&email_token=ABIK5W4MUUGKLSRS42TKCX3P2JANJA5CNFSM4FKB4VD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXTTUKY#issuecomment-501692971>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABIK5W2QMHWYA4RLV7OCMGTP2JANJANCNFSM4FKB4VDQ>
.
|
Then what matching method do you suggest me to use since I am doing evaluation on LIFT? For example, in opencv library, cv2.BFMatcher(), they have cv2.NORM_L2 that is appropriate for SIFT, SURF; |
@qiuweibo, I think you can use cv2.NORM_L2, because LIFT is similar to SIFT. |
@Shu-HowTing |
That's just a warning saying that you should change the code to match the new way of reading data. |
how to use the LIFT do the match?0.0
The text was updated successfully, but these errors were encountered: