immse same size error
8 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(2 个)
Image Analyst
2018-3-13
Figure WHAT out? Images with a lower MSE will be closer to the reference image. What are you doing with the panel() function?
Steve Eddins
2018-3-13
Compare the output of size(X) and size(C) to double-check your assumption that X and C are the same size.
3 个评论
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!