centernet-pytorch icon indicating copy to clipboard operation
centernet-pytorch copied to clipboard

求教def gaussian2D中为什么要*h.max()?

Open leesirgo opened this issue 3 years ago • 1 comments
trafficstars

h[h < np.finfo(h.dtype).eps * h.max()] = 0 请问这句代码里 *h.max() 是做什么用呢?直接判断 h < np.finfo(h.dtype).eps 行否?

leesirgo avatar Dec 23 '21 14:12 leesirgo

0 0我也不是很理解,我参考实现的,不过貌似就是判断是否大于 eps,如果小于则置零的样子。

bubbliiiing avatar Dec 26 '21 15:12 bubbliiiing