hanggegege

x=imread(‘x.jpg’); 
x=rbg2gray(x);  %转成灰度图像 
k=medfilt2(x);   %中值滤波,默认为3X3矩阵 
figure, imshow(k); 

medfilt2(A,[M,N]):使用 M X N 的模板读A矩阵做中值滤波

k=medfilt2(x,[5,5])

 

eg:

>> xx=rgb2gray(x);
>> figure,imshow(xx);

 

 

 

dd

 

分类:

技术点:

相关文章:

  • 2021-11-23
  • 2021-11-23
  • 2021-07-01
  • 2022-12-23
  • 2021-05-19
  • 2022-12-23
  • 2021-12-22
  • 2022-01-17
猜你喜欢
  • 2022-12-23
  • 2021-12-09
  • 2021-08-18
  • 2021-12-04
  • 2021-11-03
  • 2021-12-13
相关资源
相似解决方案