source: trunk/src/uvmat_doc/FUNCTIONS_DOC/read_imatext.html @ 37

Last change on this file since 37 was 37, checked in by sommeria, 14 years ago

create_grid.fig ,
uvmat_doc and all the included files added

File size: 4.8 KB
Line 
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 &copy; 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> &gt;  <a href="index.html">.</a> &gt; read_imatext.m</div>
16
17<!--<table width="100%"><tr><td align="left"><a href="../index.html"><img alt="<" border="0" src="../left.png">&nbsp;Master index</a></td>
18<td align="right"><a href="index.html">Index for .&nbsp;<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
33pxcmx: scale along x in pixels/cm
34pxcmy: 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>
38This function calls:
39<ul style="list-style-image:url(../matlabicon.gif)">
40</ul>
41This 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>
490002 <span class="comment">% fileinput: name of the documentation file</span>
500003 <span class="comment">% time: matrix of times for the set of images</span>
510004 <span class="comment">%pxcmx: scale along x in pixels/cm</span>
520005 <span class="comment">%pxcmy: scale along y in pixels/cm</span>
530006 <a name="_sub0" href="#_subfunctions" class="code">function [error,time,TimeUnit,mode,npx,npy,pxcmx,pxcmy]=read_imatext(fileinput);</a>
540007 error=0;<span class="comment">%default</span>
550008 time=[]; <span class="comment">%default</span>
560009 TimeUnit=<span class="string">'s'</span>;
570010 mode=<span class="string">'pairs'</span>;
580011 npx=[]; <span class="comment">%default</span>
590012 npy=[]; <span class="comment">%default</span>
600013 pxcmx=1;<span class="comment">%default</span>
610014 pxcmy=1;<span class="comment">%default</span>
620015 <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>
630016 dotciv=textread(fileinput);
640017 sizdot=size(dotciv);
650018 <span class="keyword">if</span> ~isequal(sizdot(1)-8,dotciv(1,1));
660019     error=1; <span class="comment">%inconsistent number of bursts</span>
670020 <span class="keyword">end</span>
680021 nbfield=sizdot(1)-8;
690022 npx=(dotciv(2,1));
700023 npy=(dotciv(2,2));
710024 pxcmx=(dotciv(6,1));<span class="comment">% pixels/cm in the .civ file</span>
720025 pxcmy=(dotciv(6,2));
730026 <span class="comment">% nburst=dotciv(3,1); % nbre of bursts</span>
740027 abs_time1=dotciv([9:nbfield+8],2);
750028 dtime=dotciv(5,1)*(dotciv([9:nbfield+8],[3:end-1])+1);
760029 timeshift=[abs_time1 dtime];
770030 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> &copy; 2003</address>
79</body>
80</html>
Note: See TracBrowser for help on using the repository browser.