fabiopoiesi / dip

Project page of the paper "Distinctive 3D local deep descriptors" accepted in IEEE International Conference on Pattern Recognition 2020.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem of no points inside the kernel size

epicjung opened this issue · comments

Hi, I am really appreciated with your works!

I am just wondering how you dealt with the situation where no points or fewer than 3 points are inside the LRF kernel in lpf.py:

dip/lrf.py

Line 21 in 6b72d5c

_, patch_idx, _ = self.pcd_tree.search_radius_vector_3d(pt, self.patch_kernel)

This results in complex numbers in xp, yp, zp.

dip/lrf.py

Line 45 in 6b72d5c

xp = 1 / np.linalg.norm(np.dot(v, (alpha * beta)[:, np.newaxis])) * np.dot(v, (alpha * beta)[:, np.newaxis])

image

How did you resolve this problem?

As a solution, putting in zero xyz values to the patch would be a problem. Any ideas?

Thank you very much!

This is actually a problem, you could either discard this patch or repeat these three points by adding some little Gaussian noise.