热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

图像处理和图像识别中常用的matlab函数

下面仅给出函数的大概意思,详细用法见:help函数名或matlabhelp1、imread:readimagefromgraphicsfile;2、imshow:display

下面仅给出函数的大概意思,详细用法见: help  函数名 或 matlab help

 

1、imread:read image from graphics file;
2、imshow:display image in Handle Graphics figure;
3、imwrite:write image to graphics file;
4、rgb2gray:convert RGB image or colormap to grayscale;
5、im2bw:convert image to binary image, based on threshold;
6、exist:check existence of variable, function, directory, or class;
7、size:size of array,用此函数可以获得图像的高和宽;
8、min:smallest elements in array;
9、max:largest elements in array;
10、fprintf:write data to text file;将信息显示到屏幕上或将数据写到指定的文件中;
11、conv2:two dimensional convolution;二维卷积(图像滤波);
12、ones(m, n):create array of all ones;
13、zeros(m, n):create array of all zeros;
14、interp2:2-D data interpolation;二维插值(图像插值),多和meshgrid一起用;
15、meshgrid:generate X and Y arrays for 3-D plots;用于产生网格,将向量区域转换成矩阵;
16、clf:clear current figure window;清除当前的图像,图像窗口仍存在;
17、pause:halt execution temporarily;暂停;
18、figure:create figure graphics object;
19、pinv:Moore-Penrose pseudoinverse of matrix;求矩阵的伪逆;
20、hold on:holds the current plot and all axis properties so that subsequent graphingcommands add to the existing graph;
21、hold off:returns to the default mode whereby PLOT commands erase the previousplots and reset all axis properties before drawing new plots;
22、error:display message and abort function;
23、isempty:determine whether array is empty;
24、close:remove specified figure;
25、repmat:replicate and tile an array;
26、find:find indices and values of nonzero elements;
27、cell:construct cell array;
28、atan2: four quadrant inverse tangent;
29、prod:product(乘积) of array elements,对于向量返回的是其所有元素的积、对于矩阵返回的是按列向量的所有元素的积,然后组成 一行向量;
30、abs:absolute value and complex magnitude;
31、disp:Display text or array;
32、clear:remove items from workspace, freeing up system memory;
33、clc:clear command window;
34、delete:delete file or graphics object;
35、diary:save text of MATLAB session(a copy of all subsequent command window input and most of the resulting command window output to be appended to the named file);
36、save:saves all workspace variables to the binary "MAT-file"(disk);
37、rand:uniformly distributed pseudo-random numbers;均匀分布的伪随机数;
38、memory:display memory information;
39、pack:consolidate workspace memory;
40、pwd:displays the current working directory;
41、feature('memstats'):可以用来查看内存的使用情况;
42、length:length of vector or largest array dimension;
43、floor:round towards minus infinity;朝负无穷方向靠近最近的整数;
44、ceil:round towards plus infinity;朝正无穷方向靠近最近的整数;
45、round:round towards nearest integer;取最近的整数(相当于四舍五入);
46、fix:round towards zero;取离0最近的整数;
47、norm:matrix or vector norms(范数);
48、mod:modulus after division;求余数;
49、reshape:reshape array;改变指定矩阵的形状,元素个数不变;
50、graythresh:global image threshold using Otsu's method;
51、xor:logical exclusive OR;逻辑异或;
52、imopen:morphologically open image;形态学开运算;
53、imclose:morphologically close image;形态学闭运算;
54、imerode:erode image;图像腐蚀;
55、imdilate:dilate image;图像膨胀;
56、bwlabel:label connected components in 2-D binary image;
57、cpselect:is a graphical user interface that enables you to select control points from two related images;手动在两幅图像中选取配准控制点;它会自动存到两个points 数组里面
58、cp2tform:takes pairs of control points and uses them to infer spatial transformation;图象配准一个求坐标转换参数的函数;能修正6种变形;
59、imcrop:crops an image to a specified rectangle;图像剪切;
60、imresize:resize image;
61、imrotate:rotate image;
62、imtransform:apply 2-D spatial transformation to image;图像空间变换;多与cp2tform或maketform一 起用;
63、maketform:create spatial transformation structure (TFORM);
64、edge:find edges in grayscale image;包括Sobel、Prewitt、Roberts、Laplacian of Gaussian、Zero-cross、Canny;
65、cpcorr:tune control point locations using cross-correlation;采用互相关法协调控制点位置,在图像配准中,对已选定的控制点进行微调;
66、isnan:array elements that are NaN;
67、ischar:determine whether item is character array;
68、strcmp:compare strings;
69、colstyle:parse color and style from string;
70、gcf:get handle to current figure;
71、print:print figure or model; save to disk as image or M-file;
72、warning:display warning message;disable or enable warning messages;
73、nargout:number of function output arguments;
74、nargin:number of function input arguments;
75、any:determine whether any array elements are nonzero;
76、median:median value of array;
77、imfinfo:information about graphics file;
78、filter2:two-dimensional digital filter;在计算filter2时先将卷积核旋转180度,再调用conv2函数进行计算,其实filter2和conv2是等价的;
79、fspecial:create predefined 2-D filters;
80、det:matrix determinant(行列式);
81、trace:sum of diagonal(对角线) elements;矩阵的迹;
82、plot:2-D line plot;用于在指定位置标注;
83、eye:identity matrix(单位矩阵);
84、mean:average or mean value of array;
85、exp:exponential(指数);
86、imagesc:scale data and display as image;
87、all:determine whether all array elements are nonzero or true;
88、sort:sort array elements in ascending or descending order;
89、sparse:create sparse matrix;
90、set:set Handle Graphics object properties;
91、inv:matrix inverse(逆矩阵);
92、drawnow:flush event queue and update figure window;
93、rem:remainder after division(取余数);
94、tril:extract lower triangular part of matrix;
95、nargchk:validate number of input arguments;
96、ordfilt2:2-D order-statistic filtering;
97、im2double:convert image to double precision;
98、pdist:pairwise distance between pairs of objects;
99、version:version number for MATLAB and libraries;
100、nargchk:validate number of input arguments;
101、isa:determine whether input is object of given class(类型,如:char、int8);
102、varargin:variable length input argument list;
103、varargout:variable length output argument list;
104、strcmpi:compare strings ignoring case(忽略大小写);
105、ndims:number of array dimensions;
106、assert:generate an error when a condition is violated;
107、strcmp:compare strings;
108、ordfilt2:2-D order-statistic filtering(类似于形态学灰度图像膨胀);
109、eps:floating-point relative accuracy;
110、randsample:random sample, with or without replacement;
111、feval:execute the specified function;
112、dot:vector dot product(向量点积);
113、cross:vector cross product(向量叉积);
114、svd:singular value decomposition(奇异值分解);
115、numel:number of elements in an array or subscripted array expression;
116、nnz:number of nonzero matrix elements;可以用来计算某矩阵中某元素的个数;
117、wiener2:2-D adaptive noise-removal filtering(二维自适应维纳滤波);
118、medfilt2:2-D median filtering;
119、wavedec2:multilevel 2-D wavelet decomposition;
120、wrcoef2:reconstruct single branch from 2-D wavelet coefficients;
121、wpdencmp:de-noising or compression using wavelet packets;
122、adjust:adjust image intensity values or colormap;
123、movegui:move a figure window to a specified position on the screen;
124、uicontrol:create user interface control;
125、waitforbuttonpress:wait for key/buttonpress over figure;
126、imhist:display histogram of image data;
127、smooth:smooth response data;
128、cputime:returns the CPU time in seconds;
129、bitset:set bit at specified position;设置数的某一位二进制位为1或0;
130、bitget:get bit at specified position;取的数的某一位二进制位(只能是0或1);
131、load:load workspace variables from disk;
132、axis:control axis scaling and appearance;
133、subplot:create axes in tiled positions;
134、uimenu:create user interface menu;
135、eval:execute string with MATLAB expression;
136、segment:segments data and estimate models for each segment(分割字符);
137、strcat:concatenate strings horizontally;
138、num2str:convert numbers to string;
139、diff:difference and approximate derivative(导数);
140、imcomplement:complement image(图像反色处理);
141、bwmorph:morphological operations on binary image(二值图像形态学运算);
142、strel:create morphological structuring element;
143、regionprops:measure properties of image regions;
144、rectangle:create rectangle, rounded-rectangle, or ellipse;
145、text:create text object in current axes;
146、radon:radon transform(用于检测图像中的线);
147、ind2sub:multiple subscripts from linear index(把数组的单索引值(按列进行排列)转化相应的下标值(行列值));
148、uigetfile:open standard dialog box for retrieving files;
149、im2col:rearrange image blocks into columns(按列重新排列图像块);
150、sim:simulate dynamic system(仿真动态系统,如仿真神经网络);
151、newff:create feed-forward backpropagation network(生成一个BP网络);
152、imadjust:adjust image intensity values or colormap;
153、stretchlim:find limits to contrast stretch an image(获得图像对比度拉伸范围);
154、input:request user input;
155、mse:mean squared normalized error performance function(可用来计算神经网络的均方误差);
156、legend:graph legend for lines and patches(图例的线条和patches);
157、init:initialize neural network(初始化一个神经网络);
158、train:train neural network(训练一个神经网络);
159、dir:folder listing(列举当前文件夹里(或指定文件夹)所有的文件与文件夹);


推荐阅读
  • 本文总结了在编写JS代码时,不同浏览器间的兼容性差异,并提供了相应的解决方法。其中包括阻止默认事件的代码示例和猎取兄弟节点的函数。这些方法可以帮助开发者在不同浏览器上实现一致的功能。 ... [详细]
  • 本文介绍了机器学习手册中关于日期和时区操作的重要性以及其在实际应用中的作用。文章以一个故事为背景,描述了学童们面对老先生的教导时的反应,以及上官如在这个过程中的表现。同时,文章也提到了顾慎为对上官如的恨意以及他们之间的矛盾源于早年的结局。最后,文章强调了日期和时区操作在机器学习中的重要性,并指出了其在实际应用中的作用和意义。 ... [详细]
  • 展开全部下面的代码是创建一个立方体Thisexamplescreatesanddisplaysasimplebox.#Thefirstlineloadstheinit_disp ... [详细]
  • 本文讨论了在手机移动端如何使用HTML5和JavaScript实现视频上传并压缩视频质量,或者降低手机摄像头拍摄质量的问题。作者指出HTML5和JavaScript无法直接压缩视频,只能通过将视频传送到服务器端由后端进行压缩。对于控制相机拍摄质量,只有使用JAVA编写Android客户端才能实现压缩。此外,作者还解释了在交作业时使用zip格式压缩包导致CSS文件和图片音乐丢失的原因,并提供了解决方法。最后,作者还介绍了一个用于处理图片的类,可以实现图片剪裁处理和生成缩略图的功能。 ... [详细]
  • 如何在HTML中获取鼠标的当前位置
    本文介绍了在HTML中获取鼠标当前位置的三种方法,分别是相对于屏幕的位置、相对于窗口的位置以及考虑了页面滚动因素的位置。通过这些方法可以准确获取鼠标的坐标信息。 ... [详细]
  • 本文介绍了如何使用n3-charts绘制以日期为x轴的数据,并提供了相应的代码示例。通过设置x轴的类型为日期,可以实现对日期数据的正确显示和处理。同时,还介绍了如何设置y轴的类型和其他相关参数。通过本文的学习,读者可以掌握使用n3-charts绘制日期数据的方法。 ... [详细]
  • 如何优化Webpack打包后的代码分割
    本文介绍了如何通过优化Webpack的代码分割来减小打包后的文件大小。主要包括拆分业务逻辑代码和引入第三方包的代码、配置Webpack插件、异步代码的处理、代码分割重命名、配置vendors和cacheGroups等方面的内容。通过合理配置和优化,可以有效减小打包后的文件大小,提高应用的加载速度。 ... [详细]
  • vue使用
    关键词: ... [详细]
  • GetWindowLong函数
    今天在看一个代码里头写了GetWindowLong(hwnd,0),我当时就有点费解,靠,上网搜索函数原型说明,死活找不到第 ... [详细]
  • 在Android开发中,使用Picasso库可以实现对网络图片的等比例缩放。本文介绍了使用Picasso库进行图片缩放的方法,并提供了具体的代码实现。通过获取图片的宽高,计算目标宽度和高度,并创建新图实现等比例缩放。 ... [详细]
  • 本文介绍了在开发Android新闻App时,搭建本地服务器的步骤。通过使用XAMPP软件,可以一键式搭建起开发环境,包括Apache、MySQL、PHP、PERL。在本地服务器上新建数据库和表,并设置相应的属性。最后,给出了创建new表的SQL语句。这个教程适合初学者参考。 ... [详细]
  • 本文介绍了在Mac上搭建php环境后无法使用localhost连接mysql的问题,并通过将localhost替换为127.0.0.1或本机IP解决了该问题。文章解释了localhost和127.0.0.1的区别,指出了使用socket方式连接导致连接失败的原因。此外,还提供了相关链接供读者深入了解。 ... [详细]
  • 不同优化算法的比较分析及实验验证
    本文介绍了神经网络优化中常用的优化方法,包括学习率调整和梯度估计修正,并通过实验验证了不同优化算法的效果。实验结果表明,Adam算法在综合考虑学习率调整和梯度估计修正方面表现较好。该研究对于优化神经网络的训练过程具有指导意义。 ... [详细]
  • 本文介绍了如何使用C#制作Java+Mysql+Tomcat环境安装程序,实现一键式安装。通过将JDK、Mysql、Tomcat三者制作成一个安装包,解决了客户在安装软件时的复杂配置和繁琐问题,便于管理软件版本和系统集成。具体步骤包括配置JDK环境变量和安装Mysql服务,其中使用了MySQL Server 5.5社区版和my.ini文件。安装方法为通过命令行将目录转到mysql的bin目录下,执行mysqld --install MySQL5命令。 ... [详细]
  • 本文介绍了深入浅出Linux设备驱动编程的重要性,以及两种加载和删除Linux内核模块的方法。通过一个内核模块的例子,展示了模块的编译和加载过程,并讨论了模块对内核大小的控制。深入理解Linux设备驱动编程对于开发者来说非常重要。 ... [详细]
author-avatar
手机用户2602901471
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有