Keine Beschreibung

class_main_window.html 17KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.9.1"/>
  7. <title>My Project: MainWindow Class Reference</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  12. <script type="text/javascript" src="search/searchdata.js"></script>
  13. <script type="text/javascript" src="search/search.js"></script>
  14. <script type="text/javascript">
  15. $(document).ready(function() { init_search(); });
  16. </script>
  17. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  18. </head>
  19. <body>
  20. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  21. <div id="titlearea">
  22. <table cellspacing="0" cellpadding="0">
  23. <tbody>
  24. <tr style="height: 56px;">
  25. <td style="padding-left: 0.5em;">
  26. <div id="projectname">My Project
  27. </div>
  28. </td>
  29. </tr>
  30. </tbody>
  31. </table>
  32. </div>
  33. <!-- end header part -->
  34. <!-- Generated by Doxygen 1.8.9.1 -->
  35. <script type="text/javascript">
  36. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  37. </script>
  38. <div id="navrow1" class="tabs">
  39. <ul class="tablist">
  40. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  41. <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
  42. <li><a href="files.html"><span>Files</span></a></li>
  43. <li>
  44. <div id="MSearchBox" class="MSearchBoxInactive">
  45. <span class="left">
  46. <img id="MSearchSelect" src="search/mag_sel.png"
  47. onmouseover="return searchBox.OnSearchSelectShow()"
  48. onmouseout="return searchBox.OnSearchSelectHide()"
  49. alt=""/>
  50. <input type="text" id="MSearchField" value="Search" accesskey="S"
  51. onfocus="searchBox.OnSearchFieldFocus(true)"
  52. onblur="searchBox.OnSearchFieldFocus(false)"
  53. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  54. </span><span class="right">
  55. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
  56. </span>
  57. </div>
  58. </li>
  59. </ul>
  60. </div>
  61. <div id="navrow2" class="tabs2">
  62. <ul class="tablist">
  63. <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
  64. <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
  65. <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
  66. <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
  67. </ul>
  68. </div>
  69. <!-- window showing the filter options -->
  70. <div id="MSearchSelectWindow"
  71. onmouseover="return searchBox.OnSearchSelectShow()"
  72. onmouseout="return searchBox.OnSearchSelectHide()"
  73. onkeydown="return searchBox.OnSearchSelectKey(event)">
  74. </div>
  75. <!-- iframe showing the search results (closed by default) -->
  76. <div id="MSearchResultsWindow">
  77. <iframe src="javascript:void(0)" frameborder="0"
  78. name="MSearchResults" id="MSearchResults">
  79. </iframe>
  80. </div>
  81. </div><!-- top -->
  82. <div class="header">
  83. <div class="summary">
  84. <a href="#pub-methods">Public Member Functions</a> &#124;
  85. <a href="#pri-slots">Private Slots</a> &#124;
  86. <a href="#pri-methods">Private Member Functions</a> &#124;
  87. <a href="#pri-attribs">Private Attributes</a> &#124;
  88. <a href="class_main_window-members.html">List of all members</a> </div>
  89. <div class="headertitle">
  90. <div class="title">MainWindow Class Reference</div> </div>
  91. </div><!--header-->
  92. <div class="contents">
  93. <div class="dynheader">
  94. Inheritance diagram for MainWindow:</div>
  95. <div class="dyncontent">
  96. <div class="center">
  97. <img src="class_main_window.png" usemap="#MainWindow_map" alt=""/>
  98. <map id="MainWindow_map" name="MainWindow_map">
  99. </map>
  100. </div></div>
  101. <table class="memberdecls">
  102. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  103. Public Member Functions</h2></td></tr>
  104. <tr class="memitem:a8b244be8b7b7db1b08de2a2acb9409db"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#a8b244be8b7b7db1b08de2a2acb9409db">MainWindow</a> (QWidget *parent=0)</td></tr>
  105. <tr class="memdesc:a8b244be8b7b7db1b08de2a2acb9409db"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <a href="#a8b244be8b7b7db1b08de2a2acb9409db">More...</a><br /></td></tr>
  106. <tr class="separator:a8b244be8b7b7db1b08de2a2acb9409db"><td class="memSeparator" colspan="2">&#160;</td></tr>
  107. <tr class="memitem:a1ef271ff94a2ae4a2e2d4ddc5f78f7e6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#a1ef271ff94a2ae4a2e2d4ddc5f78f7e6">PixelSort</a> (vector&lt; QRgb &gt; &amp;pixels)</td></tr>
  108. <tr class="memdesc:a1ef271ff94a2ae4a2e2d4ddc5f78f7e6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function that sorts pixels using Selection Sort. <a href="#a1ef271ff94a2ae4a2e2d4ddc5f78f7e6">More...</a><br /></td></tr>
  109. <tr class="separator:a1ef271ff94a2ae4a2e2d4ddc5f78f7e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  110. <tr class="memitem:acb4d4a3692e9edf987f35b21edf1427d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#acb4d4a3692e9edf987f35b21edf1427d">RemoveNoise</a> (QImage &amp;finalImage, const vector&lt; QImage &gt; &amp;images)</td></tr>
  111. <tr class="memdesc:acb4d4a3692e9edf987f35b21edf1427d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function that removes the noise from a set of images. For each position (i,j) of the pixels, insert the pixel in that position of each of the images in a pixels vector, sort the pixel vector, and finally set the median pixel to the new image in position (i,j) <a href="#acb4d4a3692e9edf987f35b21edf1427d">More...</a><br /></td></tr>
  112. <tr class="separator:acb4d4a3692e9edf987f35b21edf1427d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  113. </table><table class="memberdecls">
  114. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-slots"></a>
  115. Private Slots</h2></td></tr>
  116. <tr class="memitem:a50277f5201555db09f53f5c721aedeea"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a50277f5201555db09f53f5c721aedeea"></a>
  117. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#a50277f5201555db09f53f5c721aedeea">on_btnLoadImages_clicked</a> ()</td></tr>
  118. <tr class="memdesc:a50277f5201555db09f53f5c721aedeea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function that sets an image to a given label. <br /></td></tr>
  119. <tr class="separator:a50277f5201555db09f53f5c721aedeea"><td class="memSeparator" colspan="2">&#160;</td></tr>
  120. <tr class="memitem:aae2244407f60009048a97972eaa9d2a8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aae2244407f60009048a97972eaa9d2a8"></a>
  121. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#aae2244407f60009048a97972eaa9d2a8">on_btnRemoveNoise_clicked</a> ()</td></tr>
  122. <tr class="memdesc:aae2244407f60009048a97972eaa9d2a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function that invokes the function that removes the noise from the images and set the returned image in the GUI. <br /></td></tr>
  123. <tr class="separator:aae2244407f60009048a97972eaa9d2a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  124. <tr class="memitem:ad495b5030e61fb55b8ab95c5a3a559d6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad495b5030e61fb55b8ab95c5a3a559d6"></a>
  125. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#ad495b5030e61fb55b8ab95c5a3a559d6">on_btnSaveImage_clicked</a> ()</td></tr>
  126. <tr class="memdesc:ad495b5030e61fb55b8ab95c5a3a559d6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function that saves the image without noise in the computer. <br /></td></tr>
  127. <tr class="separator:ad495b5030e61fb55b8ab95c5a3a559d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  128. <tr class="memitem:ab37ac3fb919fcbb12543a5c25813e5a6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab37ac3fb919fcbb12543a5c25813e5a6"></a>
  129. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#ab37ac3fb919fcbb12543a5c25813e5a6">on_actLoad_Images_triggered</a> ()</td></tr>
  130. <tr class="memdesc:ab37ac3fb919fcbb12543a5c25813e5a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Call <a class="el" href="class_main_window.html#a50277f5201555db09f53f5c721aedeea" title="Function that sets an image to a given label. ">on_btnLoadImages_clicked()</a> from the buttons. <br /></td></tr>
  131. <tr class="separator:ab37ac3fb919fcbb12543a5c25813e5a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  132. <tr class="memitem:ab6f80eeb70e84d0ae1295bd79a546468"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab6f80eeb70e84d0ae1295bd79a546468"></a>
  133. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#ab6f80eeb70e84d0ae1295bd79a546468">on_actRemoveNoise_triggered</a> ()</td></tr>
  134. <tr class="memdesc:ab6f80eeb70e84d0ae1295bd79a546468"><td class="mdescLeft">&#160;</td><td class="mdescRight">Call <a class="el" href="class_main_window.html#aae2244407f60009048a97972eaa9d2a8" title="Function that invokes the function that removes the noise from the images and set the returned image ...">on_btnRemoveNoise_clicked()</a> from the buttons. <br /></td></tr>
  135. <tr class="separator:ab6f80eeb70e84d0ae1295bd79a546468"><td class="memSeparator" colspan="2">&#160;</td></tr>
  136. <tr class="memitem:a5939455a2e03188852db2182a0247f18"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5939455a2e03188852db2182a0247f18"></a>
  137. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#a5939455a2e03188852db2182a0247f18">on_actSaveImage_triggered</a> ()</td></tr>
  138. <tr class="memdesc:a5939455a2e03188852db2182a0247f18"><td class="mdescLeft">&#160;</td><td class="mdescRight">Call <a class="el" href="class_main_window.html#a5939455a2e03188852db2182a0247f18" title="Call on_actSaveImage_triggered() from the buttons. ">on_actSaveImage_triggered()</a> from the buttons. <br /></td></tr>
  139. <tr class="separator:a5939455a2e03188852db2182a0247f18"><td class="memSeparator" colspan="2">&#160;</td></tr>
  140. </table><table class="memberdecls">
  141. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
  142. Private Member Functions</h2></td></tr>
  143. <tr class="memitem:a0e9e12ec3c93d49b12559ccf1d8fbb52"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#a0e9e12ec3c93d49b12559ccf1d8fbb52">loadImages</a> (vector&lt; QImage &gt; &amp;, QString)</td></tr>
  144. <tr class="memdesc:a0e9e12ec3c93d49b12559ccf1d8fbb52"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function that loads multiple images from a directory path. <a href="#a0e9e12ec3c93d49b12559ccf1d8fbb52">More...</a><br /></td></tr>
  145. <tr class="separator:a0e9e12ec3c93d49b12559ccf1d8fbb52"><td class="memSeparator" colspan="2">&#160;</td></tr>
  146. </table><table class="memberdecls">
  147. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
  148. Private Attributes</h2></td></tr>
  149. <tr class="memitem:a35466a70ed47252a0191168126a352a5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a35466a70ed47252a0191168126a352a5"></a>
  150. Ui::MainWindow *&#160;</td><td class="memItemRight" valign="bottom"><b>ui</b></td></tr>
  151. <tr class="separator:a35466a70ed47252a0191168126a352a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  152. <tr class="memitem:acf4a478c904743c5739eaea26c329271"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acf4a478c904743c5739eaea26c329271"></a>
  153. QImage&#160;</td><td class="memItemRight" valign="bottom"><b>finalImage</b></td></tr>
  154. <tr class="separator:acf4a478c904743c5739eaea26c329271"><td class="memSeparator" colspan="2">&#160;</td></tr>
  155. <tr class="memitem:a9e8eec97dd2fc09af9141de7e262d343"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9e8eec97dd2fc09af9141de7e262d343"></a>
  156. vector&lt; QImage &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>images</b></td></tr>
  157. <tr class="separator:a9e8eec97dd2fc09af9141de7e262d343"><td class="memSeparator" colspan="2">&#160;</td></tr>
  158. </table>
  159. <h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  160. <a class="anchor" id="a8b244be8b7b7db1b08de2a2acb9409db"></a>
  161. <div class="memitem">
  162. <div class="memproto">
  163. <table class="mlabels">
  164. <tr>
  165. <td class="mlabels-left">
  166. <table class="memname">
  167. <tr>
  168. <td class="memname">MainWindow::MainWindow </td>
  169. <td>(</td>
  170. <td class="paramtype">QWidget *&#160;</td>
  171. <td class="paramname"><em>parent</em> = <code>0</code></td><td>)</td>
  172. <td></td>
  173. </tr>
  174. </table>
  175. </td>
  176. <td class="mlabels-right">
  177. <span class="mlabels"><span class="mlabel">explicit</span></span> </td>
  178. </tr>
  179. </table>
  180. </div><div class="memdoc">
  181. <p>Constructor. </p>
  182. <p>Destructor. </p>
  183. <p>Keyboard shortcuts Atajos del teclado</p>
  184. <p>Closes window with cmd + w Cierra la ventana con cmd + w</p>
  185. <p>Loads a image with cmd + o Carga una imagen con cmd + o</p>
  186. <p>Removes noise from a image with cmd + r Remueve el ruido de una imagen con cmd + r</p>
  187. <p>Saves an image without noise with cmd + s Guarda una imagen sin ruido con cmd + s </p>
  188. </div>
  189. </div>
  190. <h2 class="groupheader">Member Function Documentation</h2>
  191. <a class="anchor" id="a0e9e12ec3c93d49b12559ccf1d8fbb52"></a>
  192. <div class="memitem">
  193. <div class="memproto">
  194. <table class="mlabels">
  195. <tr>
  196. <td class="mlabels-left">
  197. <table class="memname">
  198. <tr>
  199. <td class="memname">void MainWindow::loadImages </td>
  200. <td>(</td>
  201. <td class="paramtype">vector&lt; QImage &gt; &amp;&#160;</td>
  202. <td class="paramname"><em>images</em>, </td>
  203. </tr>
  204. <tr>
  205. <td class="paramkey"></td>
  206. <td></td>
  207. <td class="paramtype">QString&#160;</td>
  208. <td class="paramname"><em>path</em>&#160;</td>
  209. </tr>
  210. <tr>
  211. <td></td>
  212. <td>)</td>
  213. <td></td><td></td>
  214. </tr>
  215. </table>
  216. </td>
  217. <td class="mlabels-right">
  218. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  219. </tr>
  220. </table>
  221. </div><div class="memdoc">
  222. <p>Function that loads multiple images from a directory path. </p>
  223. <dl class="params"><dt>Parameters</dt><dd>
  224. <table class="params">
  225. <tr><td class="paramname">images</td><td>image vector for images with noise. </td></tr>
  226. <tr><td class="paramname">path</td><td>path of the directory with the images to load. </td></tr>
  227. </table>
  228. </dd>
  229. </dl>
  230. </div>
  231. </div>
  232. <a class="anchor" id="a1ef271ff94a2ae4a2e2d4ddc5f78f7e6"></a>
  233. <div class="memitem">
  234. <div class="memproto">
  235. <table class="memname">
  236. <tr>
  237. <td class="memname">void MainWindow::PixelSort </td>
  238. <td>(</td>
  239. <td class="paramtype">vector&lt; QRgb &gt; &amp;&#160;</td>
  240. <td class="paramname"><em>pixels</em></td><td>)</td>
  241. <td></td>
  242. </tr>
  243. </table>
  244. </div><div class="memdoc">
  245. <p>Function that sorts pixels using Selection Sort. </p>
  246. <dl class="params"><dt>Parameters</dt><dd>
  247. <table class="params">
  248. <tr><td class="paramname">pixels</td><td>pixels vector </td></tr>
  249. </table>
  250. </dd>
  251. </dl>
  252. </div>
  253. </div>
  254. <a class="anchor" id="acb4d4a3692e9edf987f35b21edf1427d"></a>
  255. <div class="memitem">
  256. <div class="memproto">
  257. <table class="memname">
  258. <tr>
  259. <td class="memname">void MainWindow::RemoveNoise </td>
  260. <td>(</td>
  261. <td class="paramtype">QImage &amp;&#160;</td>
  262. <td class="paramname"><em>finalImage</em>, </td>
  263. </tr>
  264. <tr>
  265. <td class="paramkey"></td>
  266. <td></td>
  267. <td class="paramtype">const vector&lt; QImage &gt; &amp;&#160;</td>
  268. <td class="paramname"><em>images</em>&#160;</td>
  269. </tr>
  270. <tr>
  271. <td></td>
  272. <td>)</td>
  273. <td></td><td></td>
  274. </tr>
  275. </table>
  276. </div><div class="memdoc">
  277. <p>Function that removes the noise from a set of images. For each position (i,j) of the pixels, insert the pixel in that position of each of the images in a pixels vector, sort the pixel vector, and finally set the median pixel to the new image in position (i,j) </p>
  278. <dl class="params"><dt>Parameters</dt><dd>
  279. <table class="params">
  280. <tr><td class="paramname">finalImage</td><td>Image with the noise removed </td></tr>
  281. <tr><td class="paramname">images</td><td>Vector of images to remove the noise </td></tr>
  282. </table>
  283. </dd>
  284. </dl>
  285. </div>
  286. </div>
  287. <hr/>The documentation for this class was generated from the following files:<ul>
  288. <li><a class="el" href="mainwindow_8h_source.html">mainwindow.h</a></li>
  289. <li>Filter.cpp</li>
  290. <li>mainwindow.cpp</li>
  291. </ul>
  292. </div><!-- contents -->
  293. <!-- start footer part -->
  294. <hr class="footer"/><address class="footer"><small>
  295. Generated on Mon Jun 15 2015 15:14:03 for My Project by &#160;<a href="http://www.doxygen.org/index.html">
  296. <img class="footer" src="doxygen.png" alt="doxygen"/>
  297. </a> 1.8.9.1
  298. </small></address>
  299. </body>
  300. </html>