RM-Zhang/SCPNet

About the homography estimation~

Opened this issue · 2 comments

Hello, I am a first-year graduate student. Your code is so excellent, but I want to know, what's the meaning of pair12/11/22_f_w, pair12/11/22_f_nw, pair12/11/22_pred_4p? If I input two pictures and only want to get a homography matrix, which part of the code should be modified? Thanks again!

Hello, thanks for your interest about our work. The pair11/12/22 denote two images with modality 11/12/22. For example, pair11 means the two images are both modality 1, and there is a homography transformation between them.
f_nw and f_w denote the consistent feature maps of two images, and pred_4p denotes the offsets of four corner points. Please refer to the function network_forward() for more details.
Moreover, you can use torchgeometry.get_perspective_transform() to obtain the homography matrix from the offsets.

Hello, thanks for your interest about our work. The pair11/12/22 denote two images with modality 11/12/22. For example, pair11 means the two images are both modality 1, and there is a homography transformation between them. f_nw and f_w denote the consistent feature maps of two images, and pred_4p denotes the offsets of four corner points. Please refer to the function network_forward() for more details. Moreover, you can use torchgeometry.get_perspective_transform() to obtain the homography matrix from the offsets.

Thank you for your patient reply. I added the return value pair12_pred_4p in forward. If I input two pictures, is pair12_pred_4p the final homography matrix result? I tested it with two pictures in the frame of the paper, and I didn't get satisfactory results. Why?
1727681857477