From 0597cec0061a3bba17d86778cfdd70910db1d4f7 Mon Sep 17 00:00:00 2001 From: Neil Yager Date: Mon, 21 Nov 2011 10:06:59 +0000 Subject: [PATCH] BUG: Fix typo and docstrng --- doc/examples/plot_glcm.py | 2 +- skimage/feature/greycomatrix.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/examples/plot_glcm.py b/doc/examples/plot_glcm.py index e30f10d7..8871a14a 100644 --- a/doc/examples/plot_glcm.py +++ b/doc/examples/plot_glcm.py @@ -90,5 +90,5 @@ plt.ylabel('GLVM Correlation') plt.legend() # display the patches and plot -plt.suptitle('Grey level co-occurance matrix features', fontsize=14) +plt.suptitle('Grey level co-occurrence matrix features', fontsize=14) plt.show() diff --git a/skimage/feature/greycomatrix.py b/skimage/feature/greycomatrix.py index 00929ee8..2b98386d 100644 --- a/skimage/feature/greycomatrix.py +++ b/skimage/feature/greycomatrix.py @@ -156,7 +156,7 @@ def greycoprops(P, prop='contrast'): ... [2, 2, 3, 3]], dtype=np.uint8) >>> g = greycomatrix(image, [1, 2], [0, np.pi/2], levels=4, ... normed=True, symmetric=True) - >>> contrast = compute_glcm_prop(g, 'contrast') + >>> contrast = greycoprops(g, 'contrast') >>> contrast array([[ 0.58333333, 1. ], [ 1.25 , 2.75 ]])