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_imatext</title> |
---|
6 | <meta name="keywords" content="read_imatext"> |
---|
7 | <meta name="description" content="'read_imatext': reads the .civ file for image documentation (obsolete)"> |
---|
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_imatext.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_imatext |
---|
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_imatext': reads the .civ file for image documentation (obsolete)</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 [error,time,TimeUnit,mode,npx,npy,pxcmx,pxcmy]=read_imatext(fileinput); </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_imatext': reads the .civ file for image documentation (obsolete) |
---|
31 | fileinput: name of the documentation file |
---|
32 | time: matrix of times for the set of images |
---|
33 | pxcmx: scale along x in pixels/cm |
---|
34 | pxcmy: scale along y in pixels/cm</pre></div> |
---|
35 | |
---|
36 | <!-- crossreference --> |
---|
37 | <h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2> |
---|
38 | This function calls: |
---|
39 | <ul style="list-style-image:url(../matlabicon.gif)"> |
---|
40 | </ul> |
---|
41 | This function is called by: |
---|
42 | <ul style="list-style-image:url(../matlabicon.gif)"> |
---|
43 | <li><a href="civ.html" class="code" title="function varargout = civ(varargin)">civ</a> 'civ': function associated with the interface 'civ.fig' for PIV, spline interpolation and stereo PIV (patch)</li><li><a href="series.html" class="code" title="function varargout = series(varargin)">series</a> 'series': master function associated to the GUI series.m for analysis field series</li><li><a href="uvmat.html" class="code" title="function varargout = uvmat(varargin)">uvmat</a> 'uvmat': function associated with the GUI 'uvmat.fig' for images and data field visualization</li></ul> |
---|
44 | <!-- crossreference --> |
---|
45 | |
---|
46 | |
---|
47 | <h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2> |
---|
48 | <div class="fragment"><pre>0001 <span class="comment">%'read_imatext': reads the .civ file for image documentation (obsolete)</span> |
---|
49 | 0002 <span class="comment">% fileinput: name of the documentation file</span> |
---|
50 | 0003 <span class="comment">% time: matrix of times for the set of images</span> |
---|
51 | 0004 <span class="comment">%pxcmx: scale along x in pixels/cm</span> |
---|
52 | 0005 <span class="comment">%pxcmy: scale along y in pixels/cm</span> |
---|
53 | 0006 <a name="_sub0" href="#_subfunctions" class="code">function [error,time,TimeUnit,mode,npx,npy,pxcmx,pxcmy]=read_imatext(fileinput);</a> |
---|
54 | 0007 error=0;<span class="comment">%default</span> |
---|
55 | 0008 time=[]; <span class="comment">%default</span> |
---|
56 | 0009 TimeUnit=<span class="string">'s'</span>; |
---|
57 | 0010 mode=<span class="string">'pairs'</span>; |
---|
58 | 0011 npx=[]; <span class="comment">%default</span> |
---|
59 | 0012 npy=[]; <span class="comment">%default</span> |
---|
60 | 0013 pxcmx=1;<span class="comment">%default</span> |
---|
61 | 0014 pxcmy=1;<span class="comment">%default</span> |
---|
62 | 0015 <span class="keyword">if</span> exist(fileinput,<span class="string">'file'</span>)~=2, error=2, <span class="keyword">return</span>;<span class="keyword">end</span>;<span class="comment">%input file does not exist</span> |
---|
63 | 0016 dotciv=textread(fileinput); |
---|
64 | 0017 sizdot=size(dotciv); |
---|
65 | 0018 <span class="keyword">if</span> ~isequal(sizdot(1)-8,dotciv(1,1)); |
---|
66 | 0019 error=1; <span class="comment">%inconsistent number of bursts</span> |
---|
67 | 0020 <span class="keyword">end</span> |
---|
68 | 0021 nbfield=sizdot(1)-8; |
---|
69 | 0022 npx=(dotciv(2,1)); |
---|
70 | 0023 npy=(dotciv(2,2)); |
---|
71 | 0024 pxcmx=(dotciv(6,1));<span class="comment">% pixels/cm in the .civ file</span> |
---|
72 | 0025 pxcmy=(dotciv(6,2)); |
---|
73 | 0026 <span class="comment">% nburst=dotciv(3,1); % nbre of bursts</span> |
---|
74 | 0027 abs_time1=dotciv([9:nbfield+8],2); |
---|
75 | 0028 dtime=dotciv(5,1)*(dotciv([9:nbfield+8],[3:end-1])+1); |
---|
76 | 0029 timeshift=[abs_time1 dtime]; |
---|
77 | 0030 time=cumsum(timeshift,2);</pre></div> |
---|
78 | <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> |
---|
79 | </body> |
---|
80 | </html> |
---|