matlab fspeical,matlab的special函数用法
h = fspecial(type)
h = fspecial(type,para)其中type指定算子的类型,para指定相应的参数;
type的类型有:
1、'average'
averaging filter为均值滤波,参数为hsize代表模板尺寸,默认值为【3,3】。
H = FSPECIAL('average',HSIZE) returns an averaging filter H of size
HSIZE. HSIZE can be a vector specifying the number of rows and columns in
H or a scalar, in which case H is a square matrix.
The default HSIZE is [3 3].
2、'disk'
circular averaging filter
为圆形区域均值滤波,参数为radius代表区域半径,默认值为5.
H = FSPECIAL('disk',RADIUS) returns a circular averaging filter
(pillbox) within the square matrix of side 2*RADIUS+1.
The default RADIUS is 5.
3、'gaussian'
Gaussian lowpass filter
为高斯低通滤波,有两个参数,hsize表示模板尺寸,默认值为【3 3】,sigma为滤波器的标准值,单位为像素,默认值为0.5.
H = FSPECIAL('gaussian',HSIZE,SIGMA) returns a rotationally
symmetric Gaussian lowpass filter
of size HSIZE with standard
deviation SIGMA (positive). HSIZE can be a vector specifying the
number of rows and columns in H or a scalar, in which case H is a
square matrix.
The default HSIZE is [3 3], the default SIGMA is 0.5.
4、'laplacian' filter approximating the 2-D Laplacian operator
为拉普拉斯算子,参数alpha用于控制算子形状,取值范围为【0,1】,默认值为0.2.
H = FSPECIAL('laplacian',ALPHA) returns a 3-by-3 filter
approximating the shape of the two-dimensional Laplacian
operator. The parameter ALPHA controls the shape of the
Laplacian and must be in the range 0.0 to 1.0.
The default ALPHA is 0.2.
5、'log'
Laplacian of Gaussian filter
为拉普拉斯高斯算子,有两个参数,hsize表示模板尺寸,默认值为【3 3】,sigma为滤波器的标准差,单位为像素,默认值为0.5.
H = FSPECIAL('log',HSIZE,SIGMA) returns a rotationally symmetric
Laplacian of Gaussian filter of size HSIZE with standard deviation
SIGMA (positive). HSIZE can be a vector specifying the number of rows
and columns in H or a scalar, in which case H is a square matrix.
The default HSIZE is [5 5], the default SIGMA is 0.5.
6、'motion'
motion filter
为运动模糊算子,有两个参数,表示摄像物体逆时针方向以theta角度运动了len个像素,len的默认值为9,theta的默认值为0;
H = FSPECIAL('motion',LEN,THETA) returns a filter to approximate, once
convolved with an p_w_picpath, the linear motion of a camera by LEN pixels,
with an angle of THETA degrees in a counter-clockwise direction. The
filter becomes a vector for horizontal and vertical motions.
The
default LEN is 9, the default THETA is 0, which corresponds to a
horizontal motion of 9 pixels.
7、'prewitt'
Prewitt horizontal edge-emphasizing filter
用于边缘增强,大小为【3 3】,无参数
H = FSPECIAL('prewitt') returns 3-by-3 filter that emphasizes
horizontal edges by approximating a vertical gradient. If you need to
emphasize vertical edges, transpose the filter H: H'.
[1 1 1;0 0 0;-1 -1 -1].
8、'sobel'
Sobel horizontal edge-emphasizing filter
用于边缘提取,无参数
H = FSPECIAL('sobel') returns 3-by-3 filter that emphasizes
horizontal edges utilizing the smoothing effect by approximating a
vertical gradient. If you need to emphasize vertical edges, transpose
the filter H: H'.
[1 2 1;0 0 0;-1 -2 -1].
9、'unsharp'
unsharp contrast enhancement filter
为对比度增强滤波器。参数alpha用于控制滤波器的形状,范围为【0,1】,默认值为0.2.
H = FSPECIAL('unsharp',ALPHA) returns a 3-by-3 unsharp contrast
enhancement filter. FSPECIAL creates the unsharp filter from the
negative of the Laplacian filter with parameter ALPHA. ALPHA controls
the shape of the Laplacian and must be in the range 0.0 to 1.0.
The default ALPHA is 0.2.
matlab fspeical,matlab的special函数用法相关推荐
- Matlab中repmat、permute函数用法
repmat函数用法 复制和平铺矩阵 函数repmat 格式: B = repmat(A, m, n) %将矩阵A复制m*n块,即B由m*n块A平铺而成 B = repmat(A, [m n])%与 ...
- matlab的special函数用法
fspecial函数用于建立预定义的滤波算子,其语法格式为: h = fspecial(type) h = fspecial(type,para) 其中type指定算子的类型,para指定相应的参数: ...
- matlab中find()函数用法
一.基本用法 返回矩阵或向量中非零元素的索引 注意:matlab中下标从1开始 举例: (1)向量 返回非零元素下标 find(vector) x=[1 2 3 0 0 6 7 8 9]; find( ...
- matlab randomsample,randperm和randsample函数用法对比
构建替代数据的时候,一种常见的思路是打乱原数据的排列次序,通过随机置换原数据的排列次序从而产生和原数据系列统计特征(如均值.方差.分布)一致的随机数据.具体到Matlab中,此思路的实现会涉及到两个命 ...
- matlab中libsvm的svmtrain函数用法
这里的LIBSVM是一个由台湾大学林智仁(Lin Chih-Jen)教授等开发的SVM模式识别与回归的软件包,使用简单,功能强大,本文主要介绍其在Matlab中的使用. 注意不是matlab自带的sv ...
- matlab中短时傅里叶变换tfrstft函数用法
[TFR,T,F]=TFRSTFT(X,T,N,H,TRACE) X : 信号. T : 时间序列 (默认值 :1:length(X)). N : 频率点数 (默认值: length(X)). H : ...
- matlab中find、sub2ind函数用法
[i,j,v]=find(A); 解释:i是A中非零元素的行索引(按一列一列的看,第一个非零元素在第几行,看完第一列再看第二列,依次) j是A中非零元素的列索引 v是A中非零元素的值 b=sub2in ...
- matlab fspeical,MATLAB数字图像处理.doc
MATLAB数字图像处理 MATLAB常用图像操作 转换图像类型 例1.对一幅图像进行二值化处理,代码及结果如下: load trees BW=im2bw(X,map,0.4); imshow(X,m ...
- matlab repmate,MATLAB中“repmat”与“cat”函数的用法
MATLAB中"repmat"与"cat"函数的用法 1. repmat函数 >> z=repmat(5,2,3) z = 5 5 5 5 5 5 ...
最新文章
- swiper超出部分出现滚动条
- redis3.2.1php扩展,php7.2.1+redis3.2.1 安装redis扩展(windows系统)
- .NET 生态系统的蜕变之 .NET 6云原生
- Apache Spark:更改架构之前必须解决的5个陷阱
- 控件注册 - 利用资源文件将dll、ocx打包进exe文件(转)
- flume简介(大数据技术)
- Linux忘记root密码怎么办?
- 华策影视:控股股东、实控人等拟合计减持不超4.01%股份
- FFMPEG基于内存的转码实例
- pcie usb3.0 驱动 for linux_Linux 中的虚拟网络
- 苹果ipad怎么录屏_追剧,玩游戏必备,这才是苹果手机正确的投屏操作,网友:没白拿...
- oracle加索引 oracle,Oracle索引创建及管理
- Pandas 学习笔记二
- 2020年美容师(中级)证模拟考试题库及美容师(中级)理论考试试题
- AutoCAD Civil 3D-纵断面-纵断面与纵断面图
- http协议入门之Content-Disposition
- 正达信通ZedaIOT物联网平台设备管理功能浅析
- FPGA学习——驱动WS2812B
- 计算机耗材发放管理,医用耗材条码管理,让耗材管理更轻松
- 关于讲故事的游戏设计
热门文章
- doT js 宏的使用
- hadoop中datanode无法启动,报Caused by: java.net.NoRouteToHostException: No route to host
- 【Cocos2d-x】源代码分析之 2d/ui/Widget
- 用oc/c编写冒泡排序
- 1.2 Name That Number
- PHP 表单的提交完美示例
- mysql 平均月份_Mysql按月份统计和按时段统计SQL
- 【IDEA】自动导入无歧义的包
- Spring中的InitializingBean的使用详解
- 本地kubectl客户端连接远程K8S集群