<1> imfilter(f,w,filter_mode,boundary_options,size_options)
线性空间滤波函数
f:输入图像
w:滤波模板
g:输出图像
filter_mode:滤波模式 卷积:conv 相关: corr
boundary_options:边界选项
size_options: 大小选项 full: 输出与填充后的图像大小相同 same:输出与原图大小相同
imfilter常见语法为
imfilter(f,w,'replicate') replicate:图像的大小通过复制图像边界来扩展
<2> rgb2gary
RGB图像转换成灰度图
<3> edge边缘检测器
[g,t] = edge(f,'method',parameters)
f:输入图像
method:近似倒数方法有Sobel Prewwit 等
parameters:
<4> mean() & mean2()
mean(A,1) = mean(A)求列平均
mean2(A) 求整个数组的平均数,是个常数