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:
Ah! So it turns out, despite our
documentation being unclear about this, that this function can only take 2D arrays. So you need to somehow convert your colour image to a grayscale one. The easiest way is with color.rgb2gray, but a different method might be appropriate for your data (e.g. computing the index separately for each channel).