immse same size error
古いコメントを表示
I have problem with MSE. I'm working on noise-reduction filters and one of type how to figure out which filter is bether is MSE. Here's code:
X = getappdata (0, 'X');
C = uigetfile('*.*');
C = imread(C);
err = immse(X,C);
panel(handles.panel);
fprintf('\n The mean-squared error is %0.4f\n', err);
Where X is imported image in other function. Denoised image is result from X so they have same size, I allready checked that. Any ideas how to figure this out?
回答 (2 件)
Image Analyst
2018 年 3 月 13 日
0 投票
Figure WHAT out? Images with a lower MSE will be closer to the reference image. What are you doing with the panel() function?
6 件のコメント
Tomas Pechac
2018 年 3 月 13 日
Image Analyst
2018 年 3 月 13 日
What does this show
>> size(X)
>> size(C)
>> whos X
>> whos C
By the way, it's probably not good practice to use C as a string at one point, then as a numerical array later.
Tomas Pechac
2018 年 3 月 13 日
Image Analyst
2018 年 3 月 13 日
編集済み: Image Analyst
2018 年 3 月 13 日
Please attach the images you used for X and C so we can reproduce. Also explain what the panel() function is doing because it's not a built-in function.
Tomas Pechac
2018 年 3 月 13 日
Tomas Pechac
2018 年 3 月 13 日
Steve Eddins
2018 年 3 月 13 日
0 投票
Compare the output of size(X) and size(C) to double-check your assumption that X and C are the same size.
3 件のコメント
Tomas Pechac
2018 年 3 月 13 日
nur Iqtiffah
2019 年 11 月 23 日
Hi, do you solve your problem yet? Cuz i have the same problem. Can you please respond asap?
Image Analyst
2019 年 11 月 23 日
I don't understand your problem. Are your images the same size and number of color channels and immse() throws an error? Attach both your images with the paper clip icon.
カテゴリ
ヘルプ センター および File Exchange で Image Filtering and Enhancement についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

