마스킹의 구현
- 프로그래밍 : 마스크를 이용한 3x3 평균필터

void Avg3x3_WithMask(int** img, int height, int width, int** img_out);
void main()
{
int height, width;
int** img = (int**)ReadImage(“lena.png", &height, &width);
int** img_out = (int**)IntAlloc2(height, width);
Avg3x3_WithMask(img, height, width, img_out);
ImageShow("입력영상보기", img, height, width);
ImageShow("출력영상보기", img_out, height, width);
}
'Theory > Image Processing' 카테고리의 다른 글
09 에지 검출 (라플라시안 & 기타 연산자) (22.10.28) (0) | 2023.06.21 |
---|---|
08 에지 검출 (미분 연산자) (22.10.28) (0) | 2023.06.21 |
06 평균 필터 (22.10.14) (0) | 2023.06.21 |
05 히스토그램 평활화 (22.10.07) (0) | 2023.06.21 |
04 스트레칭 (22.09.30) (0) | 2023.06.21 |
댓글