123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta name="generator" content="Doxygen 1.8.9.1"/>
- <title>My Project: MergePanel.h Source File</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="dynsections.js"></script>
- <link href="search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="search/searchdata.js"></script>
- <script type="text/javascript" src="search/search.js"></script>
- <script type="text/javascript">
- $(document).ready(function() { init_search(); });
- </script>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
- <div id="titlearea">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
- <td style="padding-left: 0.5em;">
- <div id="projectname">My Project
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.8.9.1 -->
- <script type="text/javascript">
- var searchBox = new SearchBox("searchBox", "search",false,'Search');
- </script>
- <div id="navrow1" class="tabs">
- <ul class="tablist">
- <li><a href="index.html"><span>Main Page</span></a></li>
- <li><a href="namespaces.html"><span>Namespaces</span></a></li>
- <li><a href="annotated.html"><span>Classes</span></a></li>
- <li class="current"><a href="files.html"><span>Files</span></a></li>
- <li>
- <div id="MSearchBox" class="MSearchBoxInactive">
- <span class="left">
- <img id="MSearchSelect" src="search/mag_sel.png"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- alt=""/>
- <input type="text" id="MSearchField" value="Search" accesskey="S"
- onfocus="searchBox.OnSearchFieldFocus(true)"
- onblur="searchBox.OnSearchFieldFocus(false)"
- onkeyup="searchBox.OnSearchFieldChange(event)"/>
- </span><span class="right">
- <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
- </span>
- </div>
- </li>
- </ul>
- </div>
- <div id="navrow2" class="tabs2">
- <ul class="tablist">
- <li><a href="files.html"><span>File List</span></a></li>
- </ul>
- </div>
- </div><!-- top -->
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- </div>
-
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
- </iframe>
- </div>
-
- <div class="header">
- <div class="headertitle">
- <div class="title">MergePanel.h</div> </div>
- </div><!--header-->
- <div class="contents">
- <div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef MAINWINDOW_H</span></div>
- <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define MAINWINDOW_H</span></div>
- <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> </div>
- <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include <QMainWindow></span></div>
- <div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include <QFileDialog></span></div>
- <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include <QDir></span></div>
- <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include <QMessageBox></span></div>
- <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include <QShortcut></span></div>
- <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include <QImage></span></div>
- <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include <QDebug></span></div>
- <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include <cmath></span></div>
- <div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div>
- <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div>
- <div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="namespace_ui.html"> 20</a></span> <span class="keyword">namespace </span><a class="code" href="namespace_ui.html">Ui</a> {</div>
- <div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="keyword">class </span><a class="code" href="class_main_window.html">MainWindow</a>;</div>
- <div class="line"><a name="l00022"></a><span class="lineno"> 22</span> }</div>
- <div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div>
- <div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="class_main_window.html"> 24</a></span> <span class="keyword">class </span><a class="code" href="class_main_window.html">MainWindow</a> : <span class="keyword">public</span> QMainWindow</div>
- <div class="line"><a name="l00025"></a><span class="lineno"> 25</span> {</div>
- <div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  Q_OBJECT</div>
- <div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div>
- <div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="keyword">public</span>:</div>
- <div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keyword">explicit</span> <a class="code" href="class_main_window.html#a8b244be8b7b7db1b08de2a2acb9409db">MainWindow</a>(QWidget *parent = 0);</div>
- <div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div>
- <div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordtype">void</span> <a class="code" href="class_main_window.html#a46f80e359e19d2aac22df1fce85f3bdc">MergeImages</a>(<span class="keyword">const</span> QImage &, <span class="keyword">const</span> QImage &, QImage &, <span class="keywordtype">int</span>, <span class="keywordtype">bool</span>=<span class="keyword">false</span>, <span class="keywordtype">int</span>=0, <span class="keywordtype">int</span>=0, <span class="keywordtype">int</span>=0, <span class="keywordtype">int</span>=0) ;</div>
- <div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div>
- <div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <a class="code" href="class_main_window.html#ae98d00a93bc118200eeef9f9bba1dba7">~MainWindow</a>();</div>
- <div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div>
- <div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="keyword">private</span> slots:</div>
- <div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordtype">void</span> <a class="code" href="class_main_window.html#a515c32e265a56100d4c8e6a7718aec38">on_ghostBox_clicked</a>();</div>
- <div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div>
- <div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordtype">void</span> <a class="code" href="class_main_window.html#a0f9a3a6f81784e420db099e1bb051475">on_btnSelectImage_clicked</a>();</div>
- <div class="line"><a name="l00068"></a><span class="lineno"> 68</span> </div>
- <div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordtype">void</span> <a class="code" href="class_main_window.html#ac0ab1a7707da7b053b36b869eb7711d2">on_btnSelectBackground_clicked</a>();</div>
- <div class="line"><a name="l00075"></a><span class="lineno"> 75</span> </div>
- <div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keywordtype">void</span> <a class="code" href="class_main_window.html#a8ed5fa16d89ef45aa856b5cc4392a6d8">on_btnMergeImages_clicked</a>();</div>
- <div class="line"><a name="l00084"></a><span class="lineno"> 84</span> </div>
- <div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keywordtype">void</span> <a class="code" href="class_main_window.html#ad495b5030e61fb55b8ab95c5a3a559d6">on_btnSaveImage_clicked</a>();</div>
- <div class="line"><a name="l00093"></a><span class="lineno"> 93</span> </div>
- <div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordtype">void</span> <a class="code" href="class_main_window.html#a1d0a4664de36d7b98928cb815aaf29b9">Mouse_Pressed</a>();</div>
- <div class="line"><a name="l00100"></a><span class="lineno"> 100</span> </div>
- <div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keywordtype">void</span> Mouse_PressedBackground() ;</div>
- <div class="line"><a name="l00107"></a><span class="lineno"> 107</span> </div>
- <div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keywordtype">void</span> <a class="code" href="class_main_window.html#ad753a0e24a11fedfaeb6f3ba665749d7">on_thresholdSlider_actionTriggered</a>();</div>
- <div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div>
- <div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="keyword">private</span>:</div>
- <div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  Ui::MainWindow *ui;</div>
- <div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  QImage originalImage;</div>
- <div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  QImage backgroundImage;</div>
- <div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  QImage mergedImage;</div>
- <div class="line"><a name="l00120"></a><span class="lineno"> 120</span> };</div>
- <div class="line"><a name="l00121"></a><span class="lineno"> 121</span> </div>
- <div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="preprocessor">#endif // MAINWINDOW_H</span></div>
- <div class="ttc" id="namespace_ui_html"><div class="ttname"><a href="namespace_ui.html">Ui</a></div><div class="ttdef"><b>Definition:</b> MergePanel.h:20</div></div>
- <div class="ttc" id="class_main_window_html_ae98d00a93bc118200eeef9f9bba1dba7"><div class="ttname"><a href="class_main_window.html#ae98d00a93bc118200eeef9f9bba1dba7">MainWindow::~MainWindow</a></div><div class="ttdeci">~MainWindow()</div><div class="ttdoc">Destructor for the MainWindow. </div><div class="ttdef"><b>Definition:</b> MergePanel.cpp:47</div></div>
- <div class="ttc" id="class_main_window_html_ac0ab1a7707da7b053b36b869eb7711d2"><div class="ttname"><a href="class_main_window.html#ac0ab1a7707da7b053b36b869eb7711d2">MainWindow::on_btnSelectBackground_clicked</a></div><div class="ttdeci">void on_btnSelectBackground_clicked()</div><div class="ttdoc">Display the file browsing window to load a background image. </div><div class="ttdef"><b>Definition:</b> MergePanel.cpp:75</div></div>
- <div class="ttc" id="class_main_window_html_ad495b5030e61fb55b8ab95c5a3a559d6"><div class="ttname"><a href="class_main_window.html#ad495b5030e61fb55b8ab95c5a3a559d6">MainWindow::on_btnSaveImage_clicked</a></div><div class="ttdeci">void on_btnSaveImage_clicked()</div><div class="ttdoc">Displays the file browse window to choose the path to save the merged image in the file system...</div><div class="ttdef"><b>Definition:</b> MergePanel.cpp:113</div></div>
- <div class="ttc" id="class_main_window_html_a0f9a3a6f81784e420db099e1bb051475"><div class="ttname"><a href="class_main_window.html#a0f9a3a6f81784e420db099e1bb051475">MainWindow::on_btnSelectImage_clicked</a></div><div class="ttdeci">void on_btnSelectImage_clicked()</div><div class="ttdoc">Display the file browsing window to load an image. (Green Background) </div><div class="ttdef"><b>Definition:</b> MergePanel.cpp:56</div></div>
- <div class="ttc" id="class_main_window_html_a46f80e359e19d2aac22df1fce85f3bdc"><div class="ttname"><a href="class_main_window.html#a46f80e359e19d2aac22df1fce85f3bdc">MainWindow::MergeImages</a></div><div class="ttdeci">void MergeImages(const QImage &, const QImage &, QImage &, int, bool=false, int=0, int=0, int=0, int=0)</div><div class="ttdoc">Funcion that merges two images together. It takes an image with any background color and puts it in a...</div><div class="ttdef"><b>Definition:</b> Filter.cpp:13</div></div>
- <div class="ttc" id="class_main_window_html_a8b244be8b7b7db1b08de2a2acb9409db"><div class="ttname"><a href="class_main_window.html#a8b244be8b7b7db1b08de2a2acb9409db">MainWindow::MainWindow</a></div><div class="ttdeci">MainWindow(QWidget *parent=0)</div><div class="ttdoc">Default Constructor for the MainWindow. </div><div class="ttdef"><b>Definition:</b> MergePanel.cpp:12</div></div>
- <div class="ttc" id="class_main_window_html_a8ed5fa16d89ef45aa856b5cc4392a6d8"><div class="ttname"><a href="class_main_window.html#a8ed5fa16d89ef45aa856b5cc4392a6d8">MainWindow::on_btnMergeImages_clicked</a></div><div class="ttdeci">void on_btnMergeImages_clicked()</div><div class="ttdoc">Invokes the function that merges the green screen image with the background image, then displays the merged image. </div><div class="ttdef"><b>Definition:</b> MergePanel.cpp:96</div></div>
- <div class="ttc" id="class_main_window_html_a1d0a4664de36d7b98928cb815aaf29b9"><div class="ttname"><a href="class_main_window.html#a1d0a4664de36d7b98928cb815aaf29b9">MainWindow::Mouse_Pressed</a></div><div class="ttdeci">void Mouse_Pressed()</div><div class="ttdoc">Function that gets the coordinates of the image with the greenscreen. </div><div class="ttdef"><b>Definition:</b> MergePanel.cpp:126</div></div>
- <div class="ttc" id="class_main_window_html"><div class="ttname"><a href="class_main_window.html">MainWindow</a></div><div class="ttdef"><b>Definition:</b> MergePanel.h:24</div></div>
- <div class="ttc" id="class_main_window_html_a515c32e265a56100d4c8e6a7718aec38"><div class="ttname"><a href="class_main_window.html#a515c32e265a56100d4c8e6a7718aec38">MainWindow::on_ghostBox_clicked</a></div><div class="ttdeci">void on_ghostBox_clicked()</div><div class="ttdoc">Funtion that invokes the thresholdSlider function and creates a ghost version of the image with green...</div><div class="ttdef"><b>Definition:</b> MergePanel.cpp:179</div></div>
- <div class="ttc" id="class_main_window_html_ad753a0e24a11fedfaeb6f3ba665749d7"><div class="ttname"><a href="class_main_window.html#ad753a0e24a11fedfaeb6f3ba665749d7">MainWindow::on_thresholdSlider_actionTriggered</a></div><div class="ttdeci">void on_thresholdSlider_actionTriggered()</div><div class="ttdoc">Invokes the function that merges the green screen image with the background image. </div><div class="ttdef"><b>Definition:</b> MergePanel.cpp:164</div></div>
- </div><!-- fragment --></div><!-- contents -->
- <!-- start footer part -->
- <hr class="footer"/><address class="footer"><small>
- Generated on Fri Jun 12 2015 14:32:24 for My Project by  <a href="http://www.doxygen.org/index.html">
- <img class="footer" src="doxygen.png" alt="doxygen"/>
- </a> 1.8.9.1
- </small></address>
- </body>
- </html>
|