799a21efa211907c19d3afdd611ac7d70774f462,skimage/restoration/_denoise.py,,_wavelet_threshold,#Any#Any#Any#Any#Any#,338
Before Change
if threshold is None:
// The BayesShrink threshold from [1]_ in docstring
threshold = sigma**2 / np.sqrt(max(img.var() - sigma**2, 0))
denoised_detail = [{key: pywt.threshold(level[key], value=threshold,
mode=mode) for key in level} for level in coeffs[1:]]
denoised_coeffs = [coeffs[0]] + [d for d in denoised_detail]
return pywt.waverecn(denoised_coeffs, wavelet)
After Change
if threshold is None:
// The BayesShrink thresholds from [1]_ in docstring
var = sigma**2
threshold = [{key: _bayes_thresh(level[key], var) for key in level}
for level in coeffs[1:]]
if np.isscalar(threshold):
// a single threshold for all coefficient arrays
denoised_detail = [{key: pywt.threshold(level[key],
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances Project Name: scikit-image/scikit-image
Commit Name: 799a21efa211907c19d3afdd611ac7d70774f462
Time: 2016-09-06
Author: gregory.lee@cchmc.org
File Name: skimage/restoration/_denoise.py
Class Name:
Method Name: _wavelet_threshold
Project Name: apache/incubator-tvm
Commit Name: b121278a451243630fb67bf978079a8930de6558
Time: 2020-10-15
Author: mbrookhart@octoml.ai
File Name: tests/python/relay/test_op_level10.py
Class Name:
Method Name: verify_adaptive_pool
Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: e70bdb2d089ae283781c45b8d97963823a984baa
Time: 2017-12-15
Author: max.lapan@gmail.com
File Name: ch10/00_pong_pg.py
Class Name:
Method Name: