mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-12 12:30:16 +08:00
Merge pull request #1631 from stefanv/rename_denoise_nl_means
Rename denoise nl means
This commit is contained in:
@@ -15,7 +15,7 @@ import numpy as np
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
from skimage import data, img_as_float
|
||||
from skimage.restoration import nl_means_denoising
|
||||
from skimage.restoration import denoise_nl_means
|
||||
|
||||
|
||||
astro = img_as_float(data.astronaut())
|
||||
@@ -24,7 +24,7 @@ astro = astro[30:180, 150:300]
|
||||
noisy = astro + 0.3 * np.random.random(astro.shape)
|
||||
noisy = np.clip(noisy, 0, 1)
|
||||
|
||||
denoise = nl_means_denoising(noisy, 7, 9, 0.08)
|
||||
denoise = denoise_nl_means(noisy, 7, 9, 0.08)
|
||||
|
||||
fig, ax = plt.subplots(ncols=2, figsize=(8, 4))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user