본문 바로가기
Theory/Image Processing

07 필터링(마스킹) (22.10.21)

by Orangetasteboy 2023. 6. 21.

마스킹의 구현

  • 프로그래밍 : 마스크를 이용한 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);
}

댓글