immse same size error

13 visualizaciones (últimos 30 días)
Tomas Pechac
Tomas Pechac el 13 de Mzo. de 2018
Comentada: Image Analyst el 23 de Nov. de 2019
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?

Respuestas (2)

Image Analyst
Image Analyst el 13 de Mzo. de 2018
Figure WHAT out? Images with a lower MSE will be closer to the reference image. What are you doing with the panel() function?
  6 comentarios
Tomas Pechac
Tomas Pechac el 13 de Mzo. de 2018
panel function is removed it was just an experiment. Image on left is original noised image and on the right is de-noised.
Tomas Pechac
Tomas Pechac el 13 de Mzo. de 2018
both are in grayscale and don't have an 3rd dimension.

Iniciar sesión para comentar.


Steve Eddins
Steve Eddins el 13 de Mzo. de 2018
Compare the output of size(X) and size(C) to double-check your assumption that X and C are the same size.
  3 comentarios
nur Iqtiffah
nur Iqtiffah el 23 de Nov. de 2019
Hi, do you solve your problem yet? Cuz i have the same problem. Can you please respond asap?
Image Analyst
Image Analyst el 23 de Nov. de 2019
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Image Filtering and Enhancement en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by