cvg / SOLD2

Joint deep network for feature line detection and description
MIT License
545 stars 74 forks source link

How to match lines detected by LSD #73

Closed JosepLee closed 1 year ago

JosepLee commented 1 year ago

Hello, thank you very much for your work! I wonder how to match lines detected by LSD with our descriptor. I can only use the code in the jupyter notebook to match lines detected by SOLD2.

rpautrat commented 1 year ago

Hi,

The current repo doesn't allow you to match LSD lines directly, but it is fairly easy to adapt it to do so. Once you have detected your LSD lines (I recommend using this repo, which produces much better results than the OpenCV version), you can run the forward pass of SOLD2 and extract the dense descriptors. Then you can use our line matcher with SOLD2 descriptors and LSD lines here.

ccy-ustb commented 1 year ago

@JosepLee hello Have you implemented matching using the lines detected by LSD? I'm very interested. If you implement it, can you tell me how to do it? I would appreciate it very much if you could reply!!!

rpautrat commented 1 year ago

Hi, you could proceed as follows to match LSD lines with SOLD2:

  1. Install the pytlsd python package.
  2. Try this gist, which is basically replacing the SOLD2 lines with LSD.
ccy-ustb commented 1 year ago

@rpautrat Thank you very much. I have solved this problem. I use LSD to extract line segments from one image, and then use SOLD2 to extract line segments from another image, and then use SOLD2 to describe and match line segments from these two images.