matlab第5讲.pptVIP

  • 8
  • 0
  • 约7.74千字
  • 约 31页
  • 2016-12-25 发布于贵州
  • 举报
2.3 图像的邻域操作 邻域操作 在图像处理时,输入要处理像素的某邻域内各个像素值,经运算输出该像素的新值。 一般使用算子模板逐行(或逐列)在图像上滑动,滑动时对模板经过区域进行运算,把计算的结果作为区域中心像素的新值。 应用于平滑、增强、边缘提取、滤波、恢复等 sum函数 B = sum(A) returns sums along different dimensions of an array. If A is a vector, sum(A) returns the sum of the elements. If A is a matrix, sum(A) treats the columns of A as vectors, returning a row vector of the sums of each column. a=[1 ,2, 3; 4, 5, 6; 7, 8, 9] a = 1 2 3 4 5 6 7 8 9 y=sum(a) y = 12 15 18 mean函数 M = mean(A) returns the mean values of th

文档评论(0)

1亿VIP精品文档

相关文档