
Hi Stefanie, happy new year to you too :-). I had a quick look at the code of feature.shape_index, and the function requires a 2D (hence grayscale image). Can you check that the function works on color.rgb2gray(image)? This also means that the docstring is incorrect, we should say image: 2D array instead of image : ndarray Would you mind opening an issue for this? (or even submitting a pull request?) All the best Emma On Tue, Jan 01, 2019 at 08:48:52PM +0100, Stefanie Lück wrote:
Hi everybody,
first of all I wish you a happy new year :)
I have a problem with the Shape Index example. When I try with my image (shape (778, 1802, 3)) I am getting the following error message:
Traceback (most recent call last): File "C:/Users/stefanie/PycharmProjects/BluVision/Testing/shape_index.py", line 16, in <module> s = shape_index(image) File "D:\Anaconda\lib\site-packages\skimage\feature\corner.py", line 419, in shape_index l1, l2 = hessian_matrix_eigvals(H) ValueError: too many values to unpack (expected 2)
System: scikit-image 0.14.1 Windows 10 Python 3.6
Any suggestions? Thanks Stefanie
_______________________________________________ scikit-image mailing list -- scikit-image@python.org To unsubscribe send an email to scikit-image-leave@python.org