When I run:
I = imread('circuit.tif');
J = entropy(I)
I get the error:
Index exceeds the number of array elements (1).
The same error occurs with the example at:
openExample('images/CalculateEntropyOfGrayscaleImageExample')
The Image Processing Toolkit is installed. The image is in the path.
What could be causing this error?
Any help would be appreciated.
2 件のコメント
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/485768-entropy-error-index-exceeds-the-number-of-array-elements-1#comment_757182
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/485768-entropy-error-index-exceeds-the-number-of-array-elements-1#comment_757182
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/485768-entropy-error-index-exceeds-the-number-of-array-elements-1#comment_757333
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/485768-entropy-error-index-exceeds-the-number-of-array-elements-1#comment_757333
サインインしてコメントする。