Undefined function 'imgradientxy' for input arguments of type 'uint8'.

4 ビュー (過去 30 日間)
KaMu
KaMu 2013 年 12 月 4 日
コメント済み: Image Analyst 2013 年 12 月 4 日
Hello, I am trying simple example for imgradient:
I=imread('Gray.png');
[Gx, Gy] = imgradientxy(I);
[Gmag, Gdir] = imgradient(Gx, Gy);
figure, imshow(Gmag, []), title('Gradient magnitude')
figure, imshow(Gdir, []), title('Gradient direction')
title('Gradient Magnitude (Gmag) and Gradient Direction (Gdir) using Sobel method')
figure; imshowpair(Gx, Gy, 'montage'); axis off;
title('Directional Gradients, Gx and Gy, using Sobel method');
but it gave this error:
Undefined function 'imgradientxy' for input arguments of type 'uint8'.
I am using Matlab (R2011b) and as I heard that these functions are new. How can solve this problem?

採用された回答

Image Analyst
Image Analyst 2013 年 12 月 4 日
Easy. Just upgrade. It worked fine for me with R2013a.
  2 件のコメント
KaMu
KaMu 2013 年 12 月 4 日
Updating Matlab doesn't seems an easy process, thanks anyway Image Analyst for your reply.
Image Analyst
Image Analyst 2013 年 12 月 4 日
I'm going to do it tomorrow. I'll let you know.

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by