Skip to content

Commit 4d623e2

Browse files
author
Daniel Buscombe
committed
Sun Jan 21 14:43:18 MST 2018
1 parent f43453c commit 4d623e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

PyHum/_pyhum_correct.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171

7272
from scipy.special import jv
7373
from scipy.ndimage.filters import median_filter
74+
from skimage.restoration import denoise_tv_chambolle
7475

7576
#plotting
7677
import matplotlib.pyplot as plt
@@ -784,6 +785,8 @@ def c_scans_lambertian(fp, a_fp, TL, R, c, f, theta, alpha):
784785
mg = 10**np.log10(mg + TL)
785786
mg[fp==0] = np.nan
786787
mg[mg<0] = np.nan
788+
789+
mg = denoise_tv_chambolle(mg.copy(), weight=2, multichannel=False).astype('float32')
787790

788791
return mg
789792

0 commit comments

Comments
 (0)