Mean filter for smoothing images in Matlab

后端 未结 5 1983
后悔当初
后悔当初 2020-12-30 04:12

I need to test some basic image processing techniques in Matlab. I need to test and compare especially two types of filters: mean filter and median filter.

To smooth

5条回答
  •  余生分开走
    2020-12-30 04:45

    h = fspecial('average', n);
    filter2(h, img);
    

    See doc fspecial: h = fspecial('average', n) returns an averaging filter. n is a 1-by-2 vector specifying the number of rows and columns in h.

提交回复
热议问题