From d7d97e20a330855ef3b3b55334d4b10bd6f5d595 Mon Sep 17 00:00:00 2001 From: urwithajit9 Date: Tue, 8 Mar 2016 16:33:35 +0530 Subject: [PATCH] Mismatch in funcation declartion and it's call in features.py chist(im) function is defined but in simpleclassification.py from features import texture, color_histogram is used, so method not found/ not defined error will be raised. Solution: Changing either of these. i have change the function definition. --- ch10/features.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch10/features.py b/ch10/features.py index 42847b30..c183d909 100644 --- a/ch10/features.py +++ b/ch10/features.py @@ -37,7 +37,7 @@ def texture(im): return mh.features.haralick(im).ravel() -def chist(im): +def color_histogram(im): '''Compute color histogram of input image Parameters