日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 人文社科 > 生活经验 >内容正文

生活经验

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

發布時間:2023/11/27 生活经验 35 豆豆
生活随笔 收集整理的這篇文章主要介紹了 图像处理和图像识别中常用的matlab函数 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

下面僅給出函數的大概意思,詳細用法見: 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(列舉當前文件夾里(或指定文件夾)所有的文件與文件夾);

總結

以上是生活随笔為你收集整理的图像处理和图像识别中常用的matlab函数的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

歡迎分享!

轉載請說明來源于"生活随笔",并保留原作者的名字。

本文地址:图像处理和图像识别中常用的matlab函数