Closed drperpen closed 1 year ago
Matching will get you the 2D points, to project into 3D (triangulate) I recommend using e.g. kornia :)
Thanks for your reply. Yes, but my question was aimed to where do I look to get the matches? In this line:
# Match
warp, certainty = dkm_model.match(im1_path, im2_path)
I get the warp, which is a tensor with H, W*2 and 4 values. Those 4 don't look like pixel coordinates to me (matches), although they could be normalized pixel values?
Yes, they are normalized in the grid [-1,1]. To convert to pixel coordinates you probably want to do something like (x+1)*H/2.
Note that the internal resolution in DKM might not match the original resolution of the image.
Thank you so much! Yes, I will have in mind DKM's internal resolution when doing the conversions.
I'll close for now :)
Hi, I have known camera extrinsics/intrinsics and I like to 3d project the pixels of 2 images matched by DKM. What would be a good point to get the matches between the images? Thanks! Daniel