immse
평균 제곱 오차
설명
예제
잡음이 있는 영상의 평균 제곱 오차 계산하기
영상을 읽어 들인 후 이를 표시합니다.
ref = imread('pout.tif');
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);
The mean-squared error is 353.7631
입력 인수
출력 인수
err
— 평균 제곱 오차
양수
평균 제곱 오차로, 양수로 반환됩니다. err
의 데이터형은 double
형입니다. 단, 입력 영상의 데이터형이 single
형인 경우 err
의 데이터형은 single
형입니다.
데이터형: single
| double
확장 기능
C/C++ 코드 생성
MATLAB® Coder™를 사용하여 C 코드나 C++ 코드를 생성할 수 있습니다.
immse
함수는 C 코드 생성을 지원합니다(MATLAB® Coder™가 필요함). 자세한 내용은 Code Generation for Image Processing 항목을 참조하십시오.
GPU 코드 생성
GPU Coder™를 사용하여 NVIDIA® GPU용 CUDA® 코드를 생성할 수 있습니다.
버전 내역
R2014b에 개발됨
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)