libcvautomation/libcvautomation_8h-source.html
2012-07-17 16:07:18 -04:00

97 lines
7.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>libcvautomation: libcvautomation.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.7 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li id="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
<li>
<form action="search.php" method="get">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td><label>&nbsp;<u>S</u>earch&nbsp;for&nbsp;</label></td>
<td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
</tr>
</table>
</form>
</li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul></div>
<h1>libcvautomation.h</h1><a href="libcvautomation_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * =====================================================================================</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * Filename: libcvautomation.h</span>
<a name="l00005"></a>00005 <span class="comment"> *</span>
<a name="l00006"></a>00006 <span class="comment"> * Description: Include wrapper for libcvautomation subsections</span>
<a name="l00007"></a>00007 <span class="comment"> *</span>
<a name="l00008"></a>00008 <span class="comment"> * Created: 06/21/2012 12:20:43 PM</span>
<a name="l00009"></a>00009 <span class="comment"> * Revision: none</span>
<a name="l00010"></a>00010 <span class="comment"> * Compiler: gcc</span>
<a name="l00011"></a>00011 <span class="comment"> *</span>
<a name="l00012"></a>00012 <span class="comment"> * Author: Bradlee Speice (), bspeice.nc@gmail.com</span>
<a name="l00013"></a>00013 <span class="comment"> * Organization: </span>
<a name="l00014"></a>00014 <span class="comment"> *</span>
<a name="l00015"></a>00015 <span class="comment"> * =====================================================================================</span>
<a name="l00016"></a>00016 <span class="comment"> */</span>
<a name="l00017"></a>00017 <span class="preprocessor">#ifndef LIBCVAUTOMATION_H</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define LIBCVAUTOMATION_H</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a><a class="code" href="libcvautomation_8h.html#6b6ab32b9a55421b91988946b2180bd0">00020</a> <span class="preprocessor">#define LIBCVAUTOMATION_VERSION "1.2"</span>
<a name="l00021"></a><a class="code" href="libcvautomation_8h.html#064f2ecb9f4013fd636368d0dd59e453">00021</a> <span class="preprocessor"></span><span class="preprocessor">#define LIBCVAUTOMATION_BUGREPORT "bspeice@uncc.edu"</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span>
<a name="l00023"></a>00023 <span class="comment">/* C includes */</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;string.h&gt;</span>
<a name="l00026"></a>00026
<a name="l00027"></a>00027 <span class="comment">/* OpenCV includes */</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;opencv/cv.h&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;opencv/highgui.h&gt;</span>
<a name="l00030"></a>00030
<a name="l00031"></a>00031 <span class="comment">/* X11 includes */</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include &lt;X11/Xlib.h&gt;</span>
<a name="l00033"></a>00033 <span class="preprocessor">#include &lt;X11/Xutil.h&gt;</span>
<a name="l00034"></a>00034 <span class="preprocessor">#include &lt;X11/extensions/XTest.h&gt;</span>
<a name="l00035"></a>00035
<a name="l00036"></a>00036 <span class="comment">/* Define a basic structure to help us with using multiple-picture arguments</span>
<a name="l00037"></a>00037 <span class="comment"> * Yes, it's a hackish implementation, nobody said you had to use this one. */</span>
<a name="l00038"></a><a class="code" href="structcvautomationList.html">00038</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
<a name="l00039"></a>00039 <span class="comment">/* Use one or the other of fileName or cvaImage - cvaImage takes priority */</span>
<a name="l00040"></a><a class="code" href="structcvautomationList.html#7608e8c8e792f6d7432841c94016bd50">00040</a> IplImage *cvaImage;
<a name="l00041"></a><a class="code" href="structcvautomationList.html#81c1bcaa3616b80a839eead6cde7a652">00041</a> <span class="keywordtype">char</span> *fileName;
<a name="l00042"></a>00042
<a name="l00043"></a><a class="code" href="structcvautomationList.html#44326574b58698c640110e846c9131fc">00043</a> CvPoint resultPoint;
<a name="l00044"></a><a class="code" href="structcvautomationList.html#c29f1b89cd1e02ef1ece7f9aacfdf831">00044</a> <span class="keywordtype">int</span> searchMethod;
<a name="l00045"></a><a class="code" href="structcvautomationList.html#d2ad67f51290f2291e8aec5bde3f049c">00045</a> <span class="keywordtype">int</span> tolerance;
<a name="l00046"></a>00046
<a name="l00047"></a>00047 } <a class="code" href="structcvautomationList.html">cvautomationList</a>;
<a name="l00048"></a>00048
<a name="l00049"></a>00049 <span class="comment">/* Define another basic structure for points */</span>
<a name="l00050"></a><a class="code" href="structcvaPoint.html">00050</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
<a name="l00051"></a><a class="code" href="structcvaPoint.html#3e7df78670c23fb2114a386750edbf1e">00051</a> <span class="keywordtype">int</span> x, y;
<a name="l00052"></a>00052 } <a class="code" href="structcvaPoint.html">cvaPoint</a>;
<a name="l00053"></a>00053
<a name="l00054"></a>00054 <span class="comment">/* Project component includes */</span>
<a name="l00055"></a>00055 <span class="comment">/* The includes come here to make sure all function prototypes have access</span>
<a name="l00056"></a>00056 <span class="comment"> * to the cvautomationList struct */</span>
<a name="l00057"></a>00057 <span class="preprocessor">#include &lt;<a class="code" href="libcvautomation-opencv_8h.html">libcvautomation/libcvautomation-opencv.h</a>&gt;</span>
<a name="l00058"></a>00058 <span class="preprocessor">#include &lt;<a class="code" href="libcvautomation-xlib_8h.html">libcvautomation/libcvautomation-xlib.h</a>&gt;</span>
<a name="l00059"></a>00059 <span class="preprocessor">#include &lt;<a class="code" href="libcvautomation-xtest_8h.html">libcvautomation/libcvautomation-xtest.h</a>&gt;</span>
<a name="l00060"></a>00060
<a name="l00061"></a>00061 <span class="preprocessor">#endif </span><span class="comment">/* LIBCVAUTOMATION_H */</span>
<a name="l00062"></a>00062 <span class="comment">/* Doxygen information */</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Tue Jul 17 12:19:00 2012 for libcvautomation by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>