mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-01 12:31:10 +08:00
FIX: correct channel range in the multichannel case
This commit is contained in:
1 parent
6f3520b83e
commit
72577e9764
1 file changed
+1
-1
@@ -463,7 +463,7 @@ def denoise_wavelet(img, sigma=None, wavelet='db1', mode='soft',
|
||||
|
||||
if multichannel:
|
||||
out = np.empty_like(img)
|
||||
for c in range(img.ndim):
|
||||
for c in range(img.shape[-1]):
|
||||
out[..., c] = _wavelet_threshold(img[..., c], wavelet=wavelet,
|
||||
mode=mode, sigma=sigma)
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user