Parskatt / DKM

[CVPR 2023] DKM: Dense Kernelized Feature Matching for Geometry Estimation
https://parskatt.github.io/DKM/
Other
378 stars 28 forks source link

Questions about the key points on Megadepth test images #43

Closed xmlyqing00 closed 11 months ago

xmlyqing00 commented 11 months ago

Hi,

Thanks for providing such elegant code. I ran the megadeath test script and saved the matches in files. I found the key points' locations are shifted from the input images. Do you have any ideas to solve it?

image

Best, Yongqing

Parskatt commented 11 months ago

Hi, it looks as though the coordinate systems used are different, maybe resized for DKM? Could you show me the code you ran?

xmlyqing00 commented 11 months ago

I figured it out. I divided it by scale1 and scale2, which are computed by

scale1 = 1200 / max(w1, h1)
scale2 = 1200 / max(w2, h2)