![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/195899/image.png)
How can I resolve the following error?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Syed Zenith Rhyhan
el 17 de Sept. de 2018
Editada: KALYAN ACHARJYA
el 17 de Sept. de 2018
ref = imread('6.jpg'); imshow(ref) A = imnoise(ref,'salt & pepper', 0.02); imshow(A) err = immse(A, ref); fprintf('\n The mean-squared error is %0.4f\n', err);
::::::::::Error:::::::::
Undefined function 'immse' for input arguments of type 'uint8'. Error in main (line 17) err = immse(I, im); >>
0 comentarios
Respuesta aceptada
KALYAN ACHARJYA
el 17 de Sept. de 2018
Editada: KALYAN ACHARJYA
el 17 de Sept. de 2018
ref=imread('test.jpg'); % Change the image Name
figure, imshow(ref), title('Input Image');
A=imnoise(ref,'salt & pepper', 0.02);
figure,imshow(A), title('InputImage with Noise');
err=immse(A,ref);
fprintf('\n The mean-squared error is %0.4f\n',err);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/195899/image.png)
3 comentarios
KALYAN ACHARJYA
el 17 de Sept. de 2018
Which Matlab version you are using?
This function imse(Mean Square Error) was introduced in 2014b onwards.
KALYAN ACHARJYA
el 17 de Sept. de 2018
Editada: KALYAN ACHARJYA
el 17 de Sept. de 2018
Welcome! Happy to Help You!
Regards,
Kalyan Acharjya
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!