1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
---|
2 | "http://www.w3.org/TR/REC-html40/loose.dtd"> |
---|
3 | <html> |
---|
4 | <head> |
---|
5 | <title>Description of read_geometry_calib</title> |
---|
6 | <meta name="keywords" content="read_geometry_calib"> |
---|
7 | <meta name="description" content="'read_geometry_calib': read data on the GUI geometry_calib"> |
---|
8 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
---|
9 | <meta name="generator" content="m2html © 2003 Guillaume Flandin"> |
---|
10 | <meta name="robots" content="index, follow"> |
---|
11 | <link type="text/css" rel="stylesheet" href="../m2html.css"> |
---|
12 | </head> |
---|
13 | <body> |
---|
14 | <a name="_top"></a> |
---|
15 | <div><a href="../index.html">Home</a> > <a href="index.html">.</a> > read_geometry_calib.m</div> |
---|
16 | |
---|
17 | <!--<table width="100%"><tr><td align="left"><a href="../index.html"><img alt="<" border="0" src="../left.png"> Master index</a></td> |
---|
18 | <td align="right"><a href="index.html">Index for . <img alt=">" border="0" src="../right.png"></a></td></tr></table>--> |
---|
19 | |
---|
20 | <h1>read_geometry_calib |
---|
21 | </h1> |
---|
22 | |
---|
23 | <h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2> |
---|
24 | <div class="box"><strong>'read_geometry_calib': read data on the GUI geometry_calib</strong></div> |
---|
25 | |
---|
26 | <h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2> |
---|
27 | <div class="box"><strong>function data=read_geometry_calib(Coord_cell) </strong></div> |
---|
28 | |
---|
29 | <h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2> |
---|
30 | <div class="fragment"><pre class="comment">'read_geometry_calib': read data on the GUI geometry_calib |
---|
31 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</pre></div> |
---|
32 | |
---|
33 | <!-- crossreference --> |
---|
34 | <h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2> |
---|
35 | This function calls: |
---|
36 | <ul style="list-style-image:url(../matlabicon.gif)"> |
---|
37 | </ul> |
---|
38 | This function is called by: |
---|
39 | <ul style="list-style-image:url(../matlabicon.gif)"> |
---|
40 | <li><a href="geometry_calib.html" class="code" title="function varargout = geometry_calib(varargin)">geometry_calib</a> 'geometry_calib': performs geometric calibration from a set of reference points</li><li><a href="mouse_down.html" class="code" title="function xy=mouse_down(hObject,eventdata)">mouse_down</a> 'mouse_down': function activated when the mouse button is pressed on a figure (callback for 'WindowButtonDownFcn'</li></ul> |
---|
41 | <!-- crossreference --> |
---|
42 | |
---|
43 | |
---|
44 | <h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2> |
---|
45 | <div class="fragment"><pre>0001 <span class="comment">%'read_geometry_calib': read data on the GUI geometry_calib</span> |
---|
46 | 0002 <span class="comment">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span> |
---|
47 | 0003 <a name="_sub0" href="#_subfunctions" class="code">function data=read_geometry_calib(Coord_cell)</a> |
---|
48 | 0004 data_XIma=[]; |
---|
49 | 0005 data_YIma=[]; |
---|
50 | 0006 data_XObject=[]; |
---|
51 | 0007 data_YObject=[]; |
---|
52 | 0008 data_ZObject=[]; |
---|
53 | 0009 <span class="comment">%Coord=get(handles.ListCoord,'String');</span> |
---|
54 | 0010 <span class="comment">% XImage=get(handles.XImage,'String');</span> |
---|
55 | 0011 <span class="comment">% YImage=get(handles.YImage,'String');</span> |
---|
56 | 0012 <span class="comment">% XObject=get(handles.XObject,'String');</span> |
---|
57 | 0013 <span class="comment">% YObject=get(handles.YObject,'String');</span> |
---|
58 | 0014 <span class="comment">% ZObject=get(handles.ZObject,'String');</span> |
---|
59 | 0015 <span class="comment">% if ischar(Xcolumn)</span> |
---|
60 | 0016 <span class="comment">% Xcolumn={Xcolumn};</span> |
---|
61 | 0017 <span class="comment">% end</span> |
---|
62 | 0018 nb_defining_points=length(Coord_cell); |
---|
63 | 0019 iline=0; |
---|
64 | 0020 <span class="keyword">for</span> i=1:nb_defining_points |
---|
65 | 0021 coord_str=Coord_cell{i};<span class="comment">%character string of line number i</span> |
---|
66 | 0022 k=findstr(<span class="string">'|'</span>,coord_str);<span class="comment">%find separators '|'</span> |
---|
67 | 0023 <span class="keyword">if</span> length(k)>=4 <span class="comment">% test for separators '|'</span> |
---|
68 | 0024 data1=str2num(coord_str(1:k(1)-5)); |
---|
69 | 0025 data2=str2num(coord_str(k(1)+5:k(2)-5)); |
---|
70 | 0026 data3=str2num(coord_str(k(2)+5:k(3)-5)); |
---|
71 | 0027 data4=str2num(coord_str(k(3)+5:k(4)-5)); |
---|
72 | 0028 data5=str2num(coord_str(k(4)+5:end)); |
---|
73 | 0029 <span class="keyword">if</span> ~isempty(data1)|~isempty(data2)|~isempty(data3)|~isempty(data4)|~isempty(data5) |
---|
74 | 0030 iline=iline+1; |
---|
75 | 0031 <span class="keyword">if</span> ~isempty(data1) |
---|
76 | 0032 data.Coord(iline,1)=data1; |
---|
77 | 0033 <span class="keyword">end</span> |
---|
78 | 0034 <span class="keyword">if</span> ~isempty(data2) |
---|
79 | 0035 data.Coord(iline,2)=data2; |
---|
80 | 0036 <span class="keyword">end</span> |
---|
81 | 0037 <span class="keyword">if</span> ~isempty(data3) |
---|
82 | 0038 data.Coord(iline,3)=data3; |
---|
83 | 0039 <span class="keyword">end</span> |
---|
84 | 0040 <span class="keyword">if</span> ~isempty(data4) |
---|
85 | 0041 data.Coord(iline,4)=data4; |
---|
86 | 0042 <span class="keyword">end</span> |
---|
87 | 0043 <span class="keyword">if</span> isempty(data5) |
---|
88 | 0044 data.Coord(iline,5)=0; |
---|
89 | 0045 <span class="keyword">else</span> |
---|
90 | 0046 data.Coord(iline,5)=data5; |
---|
91 | 0047 <span class="keyword">end</span> |
---|
92 | 0048 <span class="keyword">end</span> |
---|
93 | 0049 <span class="keyword">end</span> |
---|
94 | 0050 <span class="keyword">end</span> |
---|
95 | 0051 data.Style=<span class="string">'points'</span>;</pre></div> |
---|
96 | <hr><address>Generated on Fri 13-Nov-2009 11:17:03 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> © 2003</address> |
---|
97 | </body> |
---|
98 | </html> |
---|