From e1caa9d4cdc12a8f1e4c8d0747a3a51a27bffcd9 Mon Sep 17 00:00:00 2001 From: Tony S Yu Date: Thu, 9 Aug 2012 00:25:26 -0400 Subject: [PATCH] Update function names that were changed since original PR. --- doc/examples/applications/plot_peak_detection_comparison.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/examples/applications/plot_peak_detection_comparison.py b/doc/examples/applications/plot_peak_detection_comparison.py index 2cf7f933..5c0c7669 100644 --- a/doc/examples/applications/plot_peak_detection_comparison.py +++ b/doc/examples/applications/plot_peak_detection_comparison.py @@ -158,7 +158,7 @@ White tophat """ selem = morph.disk(10) img_t = np.uint8(img_smooth) -opening = morph.greyscale_open(img_t, selem) +opening = morph.opening(img_t, selem) top_hat = img_t - opening imshow(opening, vmin=0, vmax=255) @@ -177,7 +177,7 @@ plt.title("Tophat with disk of r = 10") """ selem = morph.disk(5) -top_hat = morph.greyscale_white_top_hat(img_t, selem) +top_hat = morph.white_tophat(img_t, selem) imshow(top_hat) plt.title("Tophat with disk of r = 5") @@ -187,7 +187,7 @@ plt.title("Tophat with disk of r = 5") """ selem = morph.square(20) -opening = morph.greyscale_open(img_t, selem) +opening = morph.opening(img_t, selem) # scikit's top hat filter uses uint8 and doesn't check for over(under)flow. mask = opening > img_t opening[mask] = img_t[mask]