免费预览已结束,剩余1页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1. 有关命令行环境的一些操作:l(1) clc擦去一页命令窗口,光标回屏幕左上角 l(2) clear从工作空间清除所有变量l(3) clf 清除图形窗口内容 l(4) who列出当前工作空间中的变量 l(5) whos列出当前工作空间中的变量及信息 或用工具栏上的 Workspace 浏览器 l(6) delete 从磁盘删除指定文件 l(7) whech 查找指定文件的路径 ( 9 ) clear all从工作空间清除所有变量和函数 l(10) help 查询所列命令的帮助信息 l(11) savename保存工作空间变量到文件name.mat l(12) savenamexy保存工作空间变量 x y到文件name.mat l(13)loadname下载name文件中的所有变量到工作空间 l(14)loadnamexy 下载name文件中的变量x y到工作空间 l(15)diary name1.m保存工作空间一段文本到文件 name1.m l diary off l(16)type name.m在工作空间查看name.m文件内容 l(17)what列出当前目录下的m文件和mat文件Ctrl+p调用上一次的命令Ctrl+n调用下一行的命令 Ctrl+b 退后一格Ctrl+f前移一格Ctrl + Ctrl+r向右移一个单词Ctrl + Ctrl+l向左移一个单词HomeCtrl+a光标移到行首EndCtrl+e光标移到行尾EscCtrl+u清除一行DelCtrl+d清除光标后字符BackspaceCtrl+h清除光标前字符 Ctrl+k清除光标至行尾字Ctrl+c中断程序运行一常用的窗口命令help 启动联机帮助文件显示what 列出当前目录下的有关文件type 列出M文件lookfor 对help信息中的关键词查找which 找出函数与文件所在的目录名demo 运行MATLAB的演示程序path 设置或查询MATLAB的路径Matlab 的fspecial函数用法fspecial函数用于建立预定义的滤波算子,其语法格式为:h = fspecial(type)h = fspecial(type,para)其中type指定算子的类型,para指定相应的参数;type的类型有:1、averageaveraging filter为均值滤波,参数为hsize代表模板尺寸,默认值为【3,3】。H = FSPECIAL(average,HSIZE) returns an averaging filter H of sizeHSIZE. HSIZE can be a vector specifying the number of rows and columns inH or a scalar, in which case H is a square matrix.The default HSIZE is 3 3.2、diskcircular 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、gaussianGaussian lowpass filter为高斯低通滤波,有两个参数,hsize表示模板尺寸,默认值为【3 3】,sigma为滤波器的标准值,单位为像素,默认值为0.5.H = FSPECIAL(gaussian,HSIZE,SIGMA) returns a rotationallysymmetric Gaussian lowpass filterof size HSIZE with standarddeviation SIGMA (positive). HSIZE can be a vector specifying thenumber of rows and columns in H or a scalar, in which case H is asquare 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 filterapproximating the shape of the two-dimensional Laplacianoperator. The parameter ALPHA controls the shape of theLaplacian and must be in the range 0.0 to 1.0.The default ALPHA is 0.2.5、logLaplacian of Gaussian filter为拉普拉斯高斯算子,有两个参数,hsize表示模板尺寸,默认值为【3 3】,sigma为滤波器的标准差,单位为像素,默认值为0.5.H = FSPECIAL(log,HSIZE,SIGMA) returns a rotationally symmetricLaplacian of Gaussian filter of size HSIZE with standard deviationSIGMA (positive). HSIZE can be a vector specifying the number of rowsand 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、motionmotion filter为运动模糊算子,有两个参数,表示摄像物体逆时针方向以theta角度运动了len个像素,len的默认值为9,theta的默认值为0;H = FSPECIAL(motion,LEN,THETA) returns a filter to approximate, onceconvolved with an image, the linear motion of a camera by LEN pixels,with an angle of THETA degrees in a counter-clockwise direction. Thefilter becomes a vector for horizontal and vertical motions.Thedefault LEN is 9, the default THETA is 0, which corresponds to ahorizontal motion of 9 pixels.7、prewittPrewitt horizontal edge-emphasizing filter用于边缘增强,大小为【3 3】,无参数H = FSPECIAL(prewitt) returns 3-by-3 filter that emphasizeshorizontal edges by approximating a vertical gradient. If you need toemphasize vertical edges, transpose the filter H: H.1 1 1;0 0 0;-1 -1 -1.8、sobelSobel horizontal edge-emphasizing filter用于边缘提取,无参数H = FSPECIAL(sobel) returns 3-by-3 filter that emphasizeshorizontal edges utilizing the smoothing effect by approximating avertical gradient. If you need to emphasize vertical edges, transposethe filter H: H.1 2 1;0 0 0;-1 -2 -1.9、unsharpunsharp contrast enhancement filter为对比度增强滤波器。参数alpha用于控制滤波器的形状,范围为【0,1】,默认值为0.2.H = FSPECIAL(unsharp,ALPHA) returns a 3-by-3 unsharp contrastenhancement filter. FSPEC
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- tcp传输协议书安全
- 产品销毁协议书英文模板
- 食品供应廉洁协议书
- 快速冷冻机创新创业项目商业计划书
- 客车运维研究创新创业项目商业计划书
- 摩托车智能停车辅助技术创新创业项目商业计划书
- 家具色彩管理系统创新创业项目商业计划书
- (2024-2025)国家开放大学电大专科《市场营销学》期末试题及答案
- 购销合同模板
- 人教版(2024)六年级全一册信息科技第13课 控制系统有特点 教案
- 高二期中考数学试卷
- 《泊船瓜洲》课件
- 时尚餐饮店共同投资经营合作协议
- 2025年泸州市中考物理试卷真题(含答案解析)
- 英语二必考500词
- 2025年确有专长中医试题
- 2025中联重科股份有限公司招聘280人笔试参考题库附带答案详解析集合
- 健康饮食心理健康课件
- 医疗机构中药饮片验收规范-公示稿
- 《中医养生与亚健康》课件
- DB11T 695-2025 建筑工程资料管理规程
评论
0/150
提交评论