fspecial函数用于建立预定义的滤波算子,其语法格式为:

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 image, 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中counter怎么用,matlab中fspecial函数的用法相关推荐

  1. mysql中计算两个日期的时间差函数TIMESTAMPDIFF用法

    mysql中计算两个日期的时间差函数TIMESTAMPDIFF用法:  语法:  TIMESTAMPDIFF(interval,datetime_expr1,datetime_expr2)  说明:  ...

  2. Python编程语言学习:python语言中快速查询python自带模块函数的用法及其属性方法、如何查询某个函数关键词的用法、输出一个类或者实例化对象的所有属性和方法名之详细攻略

    Python编程语言学习:python语言中快速查询python自带模块&函数的用法及其属性方法.如何查询某个函数&关键词的用法.输出一个类或者实例化对象的所有属性和方法名之详细攻略 ...

  3. Hive 中的复合数据结构简介以及一些函数的用法说明

    目前 hive 支持的复合数据类型有以下几种: map (key1, value1, key2, value2, ...) Creates a map with the given key/value ...

  4. 数据库中自定义排序规则,Mysql中自定义字段排序规则,Oracle中自定义字段排序规则,decode函数的用法,field函数的用法

    数据库中自定义排序 场景:有一张banner表,表中有一个status字段,有0, 1, 2三个状态位,我想要 1,0,2的自定义排序(这里是重点),然后再进行之上对sequence字段进行二次排序( ...

  5. JS中的Math.ceil和Math.floor函数的用法

    Math.ceil(x) -- 返回大于等于数字参数的最小整数(取整函数),对数字进行上舍入 Math.floor(x)--返回小于等于数字参数的最大整数,对数字进行下舍入 例如: document. ...

  6. python中字典值的求和以及lambda函数的用法

    lambda函数用于排序以及字典值的求和 data = input() # 课程名 考分 d = {} while data:data = data.split()d[data[0]] = int(d ...

  7. Matlab中fspecial函数 和imfilter函数的用法

    fspecial函数用于建立预定义的滤波算子,其语法格式为: h = fspecial(type) h = fspecial(type,para) 其中type指定算子的类型,para指定相应的参数: ...

  8. matlab实现中值滤波程序,中值滤波流程(matlab平滑滤波和中值滤波程序)

    matlab平滑滤波和中值滤波程序 glRasterPos2i(100,100); //定位当前光标 glutBitmapCharacter(GLUT_BITMAP_9_BY_15,'H'); //写 ...

  9. matlab imfilter函数,Matlab中imfilter()函数的用法

    Matlab中imfilter()函数的用法 功能:对任意类型数组或多维图像进行滤波. 用法:B = imfilter(A,H) B = imfilter(A,H,option1,option2,.. ...

  10. matlab 画 矩阵点,在MATLAB中绘制矩阵中点之间的线

    3 个答案: 答案 0 :(得分:1) 这适用于我的数据结构: data = [ 0, 0, 1, 0;... 1, 0, 1, 1;... 1, 1, 0, 1;... 0, 1, 0, 0 ... ...

最新文章

  1. GetLogicalDriveStrings FindFirstVolume和FindNextVolume
  2. [剑指offer] 27. 字符串的排列
  3. 全新的企业通讯软件 FreeEIM 2.0
  4. php图片遍历,php – 如何遍历图像的所有像素?
  5. python常用代码总结-常见的排序算法的总结及python代码实现
  6. PHP之webservice调用接口
  7. 收货地址列表html,收货地址.html
  8. 同济大学计算机专业考研的教材,同济大学电子信息(计算机与智能技术)专业考研参考书目-指定教材-辅导资料...
  9. UNet++ 论文翻译
  10. C#中的bin和obj文件夹有什么用?
  11. JIRA部署破解和confluence整合
  12. 【tool】动态注释LOG_NDEBUG宏定义
  13. 着色器实例 代码+注释 更新中【描边、卡通渲染、法线颜色、贴图动画等等】
  14. vue中的data为什么是一个函数?起到什么作用?
  15. 别焦虑了,这才是中国各行业平均工资的真相
  16. 重庆市家庭人口信息平台服务器地址,重庆人口信息平台(IC).doc
  17. 笔记:以太网帧格式及其type取值说明
  18. 人物百度词条怎么创建,人物类百度百科创建更新
  19. Android 申请权限前简单封装弹框阐述申请理由工具类,应付app合规检查
  20. 测试覆盖率工具:EclEmma

热门文章

  1. MySQL数据库视图:视图定义、创建视图、修改视图
  2. GPT/GP2/GPT3
  3. 【FPGA 学习笔记】sof文件和jic文件的区别,程序固化(将sof文件装换位jic文件)
  4. pvp服务器有什么项目,N服PVP服率先回归!压测后未来3-4周正式开服
  5. Android Styler插件
  6. 如何克隆linux操作系统,Ubuntu Linux操作系统的3种克隆方法
  7. 百宝云Post与Get事件教程
  8. 大数据分析技术与应用
  9. The run destination''''is not valid for Running the scheme
  10. PHP发送邮件类库PHPMailer的简单使用 摘自 现代魔法研究协会