소개글
1번 문제는 레나 이미지에 노이즈를 9dB의 강도로 입히고 마스크의 성능을 시험해 보는 과제Compare the performance of the gradient operators of Roberts, Sobel, Prewitt and the 5x5 stochastic gradient on a noisy image with SNR= 9dB.
(처음 이미지는 원 영상에 마스크를 씌운 결과이고 두 번째 이미지는 노이즈를 삽입한 이미지에 마스크를 씌운 결과이고 세 번째 이미지는 노이즈를 삽입한 이미지에 임계값을 150로 설정해 마스크를 씌운 결과 이미지이다.)
2번 문제는 보트 이미지에 8dB의 노이즈를 삽입후 lowpass 와 median filtering을 한 후 비교하고 MSE(Mean Square Error)값을 획득하는 과제이다.
Compare the performance between the 3x3 Low-pass and Median filters for a noisy image with SNR=8dB. For an objective comparison, obtain the MSE (mean square error) for each result. For this assignment, use 512x512 grayscale image of BOAT.raw
컴파일 실행환경
C language / visual studio 6.0본문내용
void main(){
int choose;
while(1)
{
printf("=================== 확인할 변수를 고르시오 ===================\n");
printf("== ==\n");
printf("== 1. Roberts Mask ==\n");
printf("== 2. Roberts Mask (Noise) ==\n");
printf("== 3. Roberts Mask Threshold (150) ==\n");
printf("== 4. Sobel Mask ==\n");
printf("== 5. Sobel Mask (Noise) ==\n");
printf("== 6. Sobel Mask Threshold (150) ==\n");
printf("== 7. Prewitt Mask ==\n");
printf("== 8. Prewitt Mask (Noise) ==\n");
printf("== 9. Prewitt Mask Threshold (150) ==\n");
printf("== 10. Stochastic gradient Mask ==\n");
printf("== 11. Stochastic gradient Mask (Noise) ==\n");
printf("== 12. Stochastic gradient Mask (150) ==\n");
printf("== 13. 종 료 ==\n");
printf("==============================================================\n");
printf("Number => "); // 메뉴를 출력하고 값을 받는다.
scanf("%d",&choose);
switch(choose)
{
case 1:
Roberts();
break;
압축파일 내 파일목록
영상처리 HW#3.hwp
1번 과제/add noise.cpp
1번 과제/Mask.cpp
1번 과제/lena_raw_512x512.raw
1번 과제/Debug/vc60.idb
1번 과제/Debug/vc60.pdb
1번 과제/Debug/add noise.pch
1번 과제/Debug/add noise.obj
1번 과제/Debug/add noise.ilk
1번 과제/Debug/add noise.exe
1번 과제/Debug/add noise.pdb
1번 과제/Debug/Mask.pch
1번 과제/Debug/Mask.obj
1번 과제/Debug/Mask.ilk
1번 과제/Debug/Mask.exe
1번 과제/Debug/Mask.pdb
2번 과제/boat.raw.raw
2번 과제/add noise.cpp
2번 과제/Filtering.cpp
2번 과제/Debug/vc60.idb
2번 과제/Debug/vc60.pdb
2번 과제/Debug/add noise.pch
2번 과제/Debug/add noise.obj
2번 과제/Debug/add noise.ilk
2번 과제/Debug/add noise.exe
2번 과제/Debug/add noise.pdb
2번 과제/Debug/Filtering.pch
2번 과제/Debug/Filtering.ilk
2번 과제/Debug/Filtering.exe
2번 과제/Debug/Filtering.pdb
2번 과제/Debug/Filtering.obj
1번 과제/add noise.cpp
1번 과제/Mask.cpp
1번 과제/lena_raw_512x512.raw
1번 과제/Debug/vc60.idb
1번 과제/Debug/vc60.pdb
1번 과제/Debug/add noise.pch
1번 과제/Debug/add noise.obj
1번 과제/Debug/add noise.ilk
1번 과제/Debug/add noise.exe
1번 과제/Debug/add noise.pdb
1번 과제/Debug/Mask.pch
1번 과제/Debug/Mask.obj
1번 과제/Debug/Mask.ilk
1번 과제/Debug/Mask.exe
1번 과제/Debug/Mask.pdb
2번 과제/boat.raw.raw
2번 과제/add noise.cpp
2번 과제/Filtering.cpp
2번 과제/Debug/vc60.idb
2번 과제/Debug/vc60.pdb
2번 과제/Debug/add noise.pch
2번 과제/Debug/add noise.obj
2번 과제/Debug/add noise.ilk
2번 과제/Debug/add noise.exe
2번 과제/Debug/add noise.pdb
2번 과제/Debug/Filtering.pch
2번 과제/Debug/Filtering.ilk
2번 과제/Debug/Filtering.exe
2번 과제/Debug/Filtering.pdb
2번 과제/Debug/Filtering.obj