フィルターのクリア

Matrix dimensions must agree

1 回表示 (過去 30 日間)
Elysi Cochin
Elysi Cochin 2015 年 1 月 16 日
コメント済み: Image Analyst 2015 年 1 月 20 日
i used the builtin Matlab function weiner2 and did the example below... it was an example in the document of weiner function... but i get the below error... please can someone help me rectify it...
RGB = imread('saturn.png');
I = rgb2gray(RGB);
J = imnoise(I,'gaussian',0,0.025);
K = wiener2(J,[5 5]);
figure, imshow(K)
??? Error using ==> minus
Matrix dimensions must agree.
Error in ==> wiener2 at 71
f = g - localMean;
  1 件のコメント
Stephen23
Stephen23 2015 年 1 月 19 日
編集済み: Stephen23 2015 年 1 月 19 日
Running this code on MATLAB R2010b I don't get any error message.

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

採用された回答

Image Analyst
Image Analyst 2015 年 1 月 16 日
Please give the entire error message, not just a small part snipped out like you did.
The code works just fine for me. I don't get that error.
  3 件のコメント
Stephen23
Stephen23 2015 年 1 月 19 日
In their last comment, Image Analyst asked you for specific information. We need this information to be able to help you any further. You can help us by actually answering his question.
Image Analyst
Image Analyst 2015 年 1 月 20 日
Sorry I can't because, like I said, it works fine for me. You'll have to call the Mathworks for further help because something is messed up with your system since it works on everyone else's.

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by