Laplacian map
sczhou opened this issue · 2 comments
sczhou commented
Hi Xuanchi,
Could you please share the code for computing the Laplacian map for my reference? Many thanks!
Best
xrenaa commented
Hi,
This is quiet simple in our code:
gray = cv2.cvtColor(gt_patch[0,:,:,:]*255, cv2.COLOR_RGB2GRAY)
variance = cv2.Laplacian(gray, cv2.CV_32F).var()
sczhou commented
Got it. Thanks!