xrenaa/Deblur-by-Fitting

Laplacian map

sczhou opened this issue · 2 comments

Hi Xuanchi,

Could you please share the code for computing the Laplacian map for my reference? Many thanks!

Best

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()

Got it. Thanks!