How can I resolve the following error?

조회 수: 2 (최근 30일)
Syed Zenith Rhyhan
Syed Zenith Rhyhan 2018년 9월 17일
편집: KALYAN ACHARJYA 2018년 9월 17일
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); >>

채택된 답변

KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 9월 17일
편집: KALYAN ACHARJYA 2018년 9월 17일
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);
  댓글 수: 3
KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 9월 17일
Which Matlab version you are using?
This function imse(Mean Square Error) was introduced in 2014b onwards.
KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 9월 17일
편집: KALYAN ACHARJYA 2018년 9월 17일
Welcome! Happy to Help You!
Regards,
Kalyan Acharjya

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by