Нет описания

class_main_window.html 41KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495
  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: Referencia de la Clase MainWindow</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. <!-- Generado por Doxygen 1.8.9.1 -->
  35. <script type="text/javascript">
  36. var searchBox = new SearchBox("searchBox", "search",false,'Buscar');
  37. </script>
  38. <div id="navrow1" class="tabs">
  39. <ul class="tablist">
  40. <li><a href="index.html"><span>Página&#160;principal</span></a></li>
  41. <li class="current"><a href="annotated.html"><span>Clases</span></a></li>
  42. <li><a href="files.html"><span>Archivos</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="Buscar" 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>Lista&#160;de&#160;clases</span></a></li>
  64. <li><a href="classes.html"><span>Índice&#160;de&#160;clases</span></a></li>
  65. <li><a href="hierarchy.html"><span>Jerarquía&#160;de&#160;la&#160;clase</span></a></li>
  66. <li><a href="functions.html"><span>Miembros&#160;de&#160;las&#160;clases</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">Métodos públicos</a> &#124;
  85. <a href="#pri-slots">Slots privados</a> &#124;
  86. <a href="#pri-attribs">Atributos privados</a> &#124;
  87. <a href="class_main_window-members.html">Lista de todos los miembros</a> </div>
  88. <div class="headertitle">
  89. <div class="title">Referencia de la Clase MainWindow</div> </div>
  90. </div><!--header-->
  91. <div class="contents">
  92. <div class="dynheader">
  93. Diagrama de herencias de MainWindow</div>
  94. <div class="dyncontent">
  95. <div class="center">
  96. <img src="class_main_window.png" usemap="#MainWindow_map" alt=""/>
  97. <map id="MainWindow_map" name="MainWindow_map">
  98. </map>
  99. </div></div>
  100. <table class="memberdecls">
  101. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  102. Métodos públicos</h2></td></tr>
  103. <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>
  104. <tr class="memdesc:a8b244be8b7b7db1b08de2a2acb9409db"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <a href="#a8b244be8b7b7db1b08de2a2acb9409db">Más...</a><br /></td></tr>
  105. <tr class="separator:a8b244be8b7b7db1b08de2a2acb9409db"><td class="memSeparator" colspan="2">&#160;</td></tr>
  106. <tr class="memitem:a92d8983ccdda1d49d2d9c6302e7aab52"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#a92d8983ccdda1d49d2d9c6302e7aab52">GrayScale</a> (QImage &amp;)</td></tr>
  107. <tr class="memdesc:a92d8983ccdda1d49d2d9c6302e7aab52"><td class="mdescLeft">&#160;</td><td class="mdescRight">Funcion que aplica un filtro de escala gris en la imagen editada. Funciona cambiando cada pixel a un tono de color gris. <a href="#a92d8983ccdda1d49d2d9c6302e7aab52">Más...</a><br /></td></tr>
  108. <tr class="separator:a92d8983ccdda1d49d2d9c6302e7aab52"><td class="memSeparator" colspan="2">&#160;</td></tr>
  109. <tr class="memitem:a3d4e0cc1efd8a430d0a07901a9da96ae"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#a3d4e0cc1efd8a430d0a07901a9da96ae">VerticalFlip</a> (QImage &amp;)</td></tr>
  110. <tr class="memdesc:a3d4e0cc1efd8a430d0a07901a9da96ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Funcion que aplica un filtro de flip vertical en la imagen editada. Funciona poniendo el pixel de la imagen original en la posicion height-1-j (altura) de la imagen editada. <a href="#a3d4e0cc1efd8a430d0a07901a9da96ae">Más...</a><br /></td></tr>
  111. <tr class="separator:a3d4e0cc1efd8a430d0a07901a9da96ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. <tr class="memitem:a6827de64beb6250700e8bafc005379c4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#a6827de64beb6250700e8bafc005379c4">HorizontalFlip</a> (QImage &amp;)</td></tr>
  113. <tr class="memdesc:a6827de64beb6250700e8bafc005379c4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Funcion que aplica un filtro de flip horizontal en la imagen editada. Funciona poniendo el pixel de la imagen original en la posicion width-1-i (altura) de la imagen editada. <a href="#a6827de64beb6250700e8bafc005379c4">Más...</a><br /></td></tr>
  114. <tr class="separator:a6827de64beb6250700e8bafc005379c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  115. <tr class="memitem:a4fc39fdbaf9fb6a3f551eea7c4e3c9ae"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#a4fc39fdbaf9fb6a3f551eea7c4e3c9ae">ThresholdFilter</a> (QImage &amp;, QImage &amp;, unsigned int, bool)</td></tr>
  116. <tr class="memdesc:a4fc39fdbaf9fb6a3f551eea7c4e3c9ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Funcion que aplica un filtro de umbral en la imagen editada. Funciona creando una imagen en blanco y negro donde el color del pixel nuevo is blanco o negro dependiendo de un valor umbral y el promedio de los colores del pixel de la imagen original. <a href="#a4fc39fdbaf9fb6a3f551eea7c4e3c9ae">Más...</a><br /></td></tr>
  117. <tr class="separator:a4fc39fdbaf9fb6a3f551eea7c4e3c9ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
  118. <tr class="memitem:a8b244be8b7b7db1b08de2a2acb9409db"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8b244be8b7b7db1b08de2a2acb9409db"></a>
  119. &#160;</td><td class="memItemRight" valign="bottom"><b>MainWindow</b> (QWidget *parent=0)</td></tr>
  120. <tr class="separator:a8b244be8b7b7db1b08de2a2acb9409db"><td class="memSeparator" colspan="2">&#160;</td></tr>
  121. <tr class="memitem:a92d8983ccdda1d49d2d9c6302e7aab52"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a92d8983ccdda1d49d2d9c6302e7aab52"></a>
  122. void&#160;</td><td class="memItemRight" valign="bottom"><b>GrayScale</b> (QImage &amp;)</td></tr>
  123. <tr class="separator:a92d8983ccdda1d49d2d9c6302e7aab52"><td class="memSeparator" colspan="2">&#160;</td></tr>
  124. <tr class="memitem:a3d4e0cc1efd8a430d0a07901a9da96ae"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3d4e0cc1efd8a430d0a07901a9da96ae"></a>
  125. void&#160;</td><td class="memItemRight" valign="bottom"><b>VerticalFlip</b> (QImage &amp;)</td></tr>
  126. <tr class="separator:a3d4e0cc1efd8a430d0a07901a9da96ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
  127. <tr class="memitem:a6827de64beb6250700e8bafc005379c4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6827de64beb6250700e8bafc005379c4"></a>
  128. void&#160;</td><td class="memItemRight" valign="bottom"><b>HorizontalFlip</b> (QImage &amp;)</td></tr>
  129. <tr class="separator:a6827de64beb6250700e8bafc005379c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  130. <tr class="memitem:a4fc39fdbaf9fb6a3f551eea7c4e3c9ae"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4fc39fdbaf9fb6a3f551eea7c4e3c9ae"></a>
  131. void&#160;</td><td class="memItemRight" valign="bottom"><b>ThresholdFilter</b> (QImage &amp;, QImage &amp;, unsigned int, bool)</td></tr>
  132. <tr class="separator:a4fc39fdbaf9fb6a3f551eea7c4e3c9ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
  133. </table><table class="memberdecls">
  134. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-slots"></a>
  135. Slots privados</h2></td></tr>
  136. <tr class="memitem:a4ff08d0fe0eca41750440ca1f4d9c768"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#a4ff08d0fe0eca41750440ca1f4d9c768">on_actionLoad_Image_triggered</a> ()</td></tr>
  137. <tr class="memdesc:a4ff08d0fe0eca41750440ca1f4d9c768"><td class="mdescLeft">&#160;</td><td class="mdescRight">Invoca la funcion <a class="el" href="class_main_window.html#a097fcba797448372b19307a32ced737d" title="Para cargar una imagen al GUI cuando se marca opcion de cargar imagen. ">on_btnLoadImage_clicked()</a> <a href="#a4ff08d0fe0eca41750440ca1f4d9c768">Más...</a><br /></td></tr>
  138. <tr class="separator:a4ff08d0fe0eca41750440ca1f4d9c768"><td class="memSeparator" colspan="2">&#160;</td></tr>
  139. <tr class="memitem:a9064a0047e3e77e6d48ebb59bd711da4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9064a0047e3e77e6d48ebb59bd711da4"></a>
  140. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#a9064a0047e3e77e6d48ebb59bd711da4">on_actionSave_Image_triggered</a> ()</td></tr>
  141. <tr class="memdesc:a9064a0047e3e77e6d48ebb59bd711da4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Invoca la funcion <a class="el" href="class_main_window.html#ad495b5030e61fb55b8ab95c5a3a559d6" title="Para guardar una imagen al sistema de archivos cuando se marca opcion de guardar imagen. ">on_btnSaveImage_clicked()</a> <br /></td></tr>
  142. <tr class="separator:a9064a0047e3e77e6d48ebb59bd711da4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  143. <tr class="memitem:addb3dd1ec7fe84f4d8a7b63bc7431b5a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="addb3dd1ec7fe84f4d8a7b63bc7431b5a"></a>
  144. void&#160;</td><td class="memItemRight" valign="bottom"><b>on_actionClose_Window_triggered</b> ()</td></tr>
  145. <tr class="separator:addb3dd1ec7fe84f4d8a7b63bc7431b5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  146. <tr class="memitem:aab8ca019ab84ef9c21ed9301abca6636"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aab8ca019ab84ef9c21ed9301abca6636"></a>
  147. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#aab8ca019ab84ef9c21ed9301abca6636">on_actionInvert_Threshold_Colors_triggered</a> ()</td></tr>
  148. <tr class="memdesc:aab8ca019ab84ef9c21ed9301abca6636"><td class="mdescLeft">&#160;</td><td class="mdescRight">Invoca la funcion <a class="el" href="class_main_window.html#a803c210fefa9d0416f1b1c6c9769aa40" title="Para aplicar el filtro de umbral y cargar la imagen editada al GUI cuando el color del umbral es inve...">on_btnInvertThreshold_clicked()</a> <br /></td></tr>
  149. <tr class="separator:aab8ca019ab84ef9c21ed9301abca6636"><td class="memSeparator" colspan="2">&#160;</td></tr>
  150. <tr class="memitem:a78d8ae530c062adf68cd5d5d05d13320"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a78d8ae530c062adf68cd5d5d05d13320"></a>
  151. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#a78d8ae530c062adf68cd5d5d05d13320">on_actionFlip_Image_Horizontally_triggered</a> ()</td></tr>
  152. <tr class="memdesc:a78d8ae530c062adf68cd5d5d05d13320"><td class="mdescLeft">&#160;</td><td class="mdescRight">Invoca la funcion <a class="el" href="class_main_window.html#ad5d0ca46a9061f5a22f84494de29f8d9" title="Para llamar al filtro de imagen flip horizontal. ">on_btnFlipImageHorizontally_clicked()</a> <br /></td></tr>
  153. <tr class="separator:a78d8ae530c062adf68cd5d5d05d13320"><td class="memSeparator" colspan="2">&#160;</td></tr>
  154. <tr class="memitem:aee732b0d048591cff1432aa7992ae474"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aee732b0d048591cff1432aa7992ae474"></a>
  155. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#aee732b0d048591cff1432aa7992ae474">on_actionFlip_Image_Vertically_triggered</a> ()</td></tr>
  156. <tr class="memdesc:aee732b0d048591cff1432aa7992ae474"><td class="mdescLeft">&#160;</td><td class="mdescRight">Invoca la funcion <a class="el" href="class_main_window.html#aeb76bf75157cc088511193f8190d0d95" title="Para llamar al filtro de imagen flip vertical. ">on_btnFlipImageVertically_clicked()</a> <br /></td></tr>
  157. <tr class="separator:aee732b0d048591cff1432aa7992ae474"><td class="memSeparator" colspan="2">&#160;</td></tr>
  158. <tr class="memitem:a86de73fc655de25fc6bed09f8ee304a0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a86de73fc655de25fc6bed09f8ee304a0"></a>
  159. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#a86de73fc655de25fc6bed09f8ee304a0">on_actionApply_Grey_Scale_Filter_triggered</a> ()</td></tr>
  160. <tr class="memdesc:a86de73fc655de25fc6bed09f8ee304a0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Invoca la funcion <a class="el" href="class_main_window.html#aadc6d08a96c6003b94d29b254de97838" title="Para llamar al filtro de imagen de escalas grises. ">on_btnGreyScaleFilter_clicked()</a> <br /></td></tr>
  161. <tr class="separator:a86de73fc655de25fc6bed09f8ee304a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  162. <tr class="memitem:a579dbaf9e4684318a252f7bc471e2db8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a579dbaf9e4684318a252f7bc471e2db8"></a>
  163. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#a579dbaf9e4684318a252f7bc471e2db8">on_actionRevert_Edited_Image_to_Original_triggered</a> ()</td></tr>
  164. <tr class="memdesc:a579dbaf9e4684318a252f7bc471e2db8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Invoca la funcion <a class="el" href="class_main_window.html#a4a615fae77ffcbb3ff634215be270590" title="Para reajustar la imagen editada a la imagen original. ">on_btnRevertImage_clicked()</a> <br /></td></tr>
  165. <tr class="separator:a579dbaf9e4684318a252f7bc471e2db8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  166. <tr class="memitem:a7a83ec2aee41b85977c9a832de61346b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7a83ec2aee41b85977c9a832de61346b"></a>
  167. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#a7a83ec2aee41b85977c9a832de61346b">on_actionInstructions_triggered</a> ()</td></tr>
  168. <tr class="memdesc:a7a83ec2aee41b85977c9a832de61346b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Para desplegar las instrucciones. <br /></td></tr>
  169. <tr class="separator:a7a83ec2aee41b85977c9a832de61346b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  170. <tr class="memitem:ab39da572361126e8b2b47b55dd8a9f51"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab39da572361126e8b2b47b55dd8a9f51"></a>
  171. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#ab39da572361126e8b2b47b55dd8a9f51">applyThresholdFilter</a> ()</td></tr>
  172. <tr class="memdesc:ab39da572361126e8b2b47b55dd8a9f51"><td class="mdescLeft">&#160;</td><td class="mdescRight">Para aplicar el filtro de umbral. <br /></td></tr>
  173. <tr class="separator:ab39da572361126e8b2b47b55dd8a9f51"><td class="memSeparator" colspan="2">&#160;</td></tr>
  174. <tr class="memitem:aeeabb8c67fc108c9df2b0da0d9674181"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aeeabb8c67fc108c9df2b0da0d9674181"></a>
  175. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#aeeabb8c67fc108c9df2b0da0d9674181">instructions</a> ()</td></tr>
  176. <tr class="memdesc:aeeabb8c67fc108c9df2b0da0d9674181"><td class="mdescLeft">&#160;</td><td class="mdescRight">Para desplegar las instrucciones. <br /></td></tr>
  177. <tr class="separator:aeeabb8c67fc108c9df2b0da0d9674181"><td class="memSeparator" colspan="2">&#160;</td></tr>
  178. <tr class="memitem:aa2b30fce1731a2ba1818f60ee9dc45a4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa2b30fce1731a2ba1818f60ee9dc45a4"></a>
  179. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#aa2b30fce1731a2ba1818f60ee9dc45a4">on_thresholdSlider_sliderReleased</a> ()</td></tr>
  180. <tr class="memdesc:aa2b30fce1731a2ba1818f60ee9dc45a4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Para aplicar el filtro de umbral y cargar la imagen editada al GUI cuando el deslizador del GUI es movido. <br /></td></tr>
  181. <tr class="separator:aa2b30fce1731a2ba1818f60ee9dc45a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  182. <tr class="memitem:a097fcba797448372b19307a32ced737d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a097fcba797448372b19307a32ced737d"></a>
  183. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#a097fcba797448372b19307a32ced737d">on_btnLoadImage_clicked</a> ()</td></tr>
  184. <tr class="memdesc:a097fcba797448372b19307a32ced737d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Para cargar una imagen al GUI cuando se marca opcion de cargar imagen. <br /></td></tr>
  185. <tr class="separator:a097fcba797448372b19307a32ced737d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  186. <tr class="memitem:ad495b5030e61fb55b8ab95c5a3a559d6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad495b5030e61fb55b8ab95c5a3a559d6"></a>
  187. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#ad495b5030e61fb55b8ab95c5a3a559d6">on_btnSaveImage_clicked</a> ()</td></tr>
  188. <tr class="memdesc:ad495b5030e61fb55b8ab95c5a3a559d6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Para guardar una imagen al sistema de archivos cuando se marca opcion de guardar imagen. <br /></td></tr>
  189. <tr class="separator:ad495b5030e61fb55b8ab95c5a3a559d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  190. <tr class="memitem:a9936e00b191c04ab938897cf13690dbe"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9936e00b191c04ab938897cf13690dbe"></a>
  191. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#a9936e00b191c04ab938897cf13690dbe">on_chboxThreshold_clicked</a> ()</td></tr>
  192. <tr class="memdesc:a9936e00b191c04ab938897cf13690dbe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Para aplicar el filtro de umbral y cargar la imagen editada al GUI. <br /></td></tr>
  193. <tr class="separator:a9936e00b191c04ab938897cf13690dbe"><td class="memSeparator" colspan="2">&#160;</td></tr>
  194. <tr class="memitem:a803c210fefa9d0416f1b1c6c9769aa40"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a803c210fefa9d0416f1b1c6c9769aa40"></a>
  195. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#a803c210fefa9d0416f1b1c6c9769aa40">on_btnInvertThreshold_clicked</a> ()</td></tr>
  196. <tr class="memdesc:a803c210fefa9d0416f1b1c6c9769aa40"><td class="mdescLeft">&#160;</td><td class="mdescRight">Para aplicar el filtro de umbral y cargar la imagen editada al GUI cuando el color del umbral es invertido. <br /></td></tr>
  197. <tr class="separator:a803c210fefa9d0416f1b1c6c9769aa40"><td class="memSeparator" colspan="2">&#160;</td></tr>
  198. <tr class="memitem:ad5d0ca46a9061f5a22f84494de29f8d9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad5d0ca46a9061f5a22f84494de29f8d9"></a>
  199. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#ad5d0ca46a9061f5a22f84494de29f8d9">on_btnFlipImageHorizontally_clicked</a> ()</td></tr>
  200. <tr class="memdesc:ad5d0ca46a9061f5a22f84494de29f8d9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Para llamar al filtro de imagen flip horizontal. <br /></td></tr>
  201. <tr class="separator:ad5d0ca46a9061f5a22f84494de29f8d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  202. <tr class="memitem:aeb76bf75157cc088511193f8190d0d95"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aeb76bf75157cc088511193f8190d0d95"></a>
  203. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#aeb76bf75157cc088511193f8190d0d95">on_btnFlipImageVertically_clicked</a> ()</td></tr>
  204. <tr class="memdesc:aeb76bf75157cc088511193f8190d0d95"><td class="mdescLeft">&#160;</td><td class="mdescRight">Para llamar al filtro de imagen flip vertical. <br /></td></tr>
  205. <tr class="separator:aeb76bf75157cc088511193f8190d0d95"><td class="memSeparator" colspan="2">&#160;</td></tr>
  206. <tr class="memitem:aadc6d08a96c6003b94d29b254de97838"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aadc6d08a96c6003b94d29b254de97838"></a>
  207. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#aadc6d08a96c6003b94d29b254de97838">on_btnGreyScaleFilter_clicked</a> ()</td></tr>
  208. <tr class="memdesc:aadc6d08a96c6003b94d29b254de97838"><td class="mdescLeft">&#160;</td><td class="mdescRight">Para llamar al filtro de imagen de escalas grises. <br /></td></tr>
  209. <tr class="separator:aadc6d08a96c6003b94d29b254de97838"><td class="memSeparator" colspan="2">&#160;</td></tr>
  210. <tr class="memitem:a4a615fae77ffcbb3ff634215be270590"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4a615fae77ffcbb3ff634215be270590"></a>
  211. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#a4a615fae77ffcbb3ff634215be270590">on_btnRevertImage_clicked</a> ()</td></tr>
  212. <tr class="memdesc:a4a615fae77ffcbb3ff634215be270590"><td class="mdescLeft">&#160;</td><td class="mdescRight">Para reajustar la imagen editada a la imagen original. <br /></td></tr>
  213. <tr class="separator:a4a615fae77ffcbb3ff634215be270590"><td class="memSeparator" colspan="2">&#160;</td></tr>
  214. <tr class="memitem:a4ff08d0fe0eca41750440ca1f4d9c768"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4ff08d0fe0eca41750440ca1f4d9c768"></a>
  215. void&#160;</td><td class="memItemRight" valign="bottom"><b>on_actionLoad_Image_triggered</b> ()</td></tr>
  216. <tr class="separator:a4ff08d0fe0eca41750440ca1f4d9c768"><td class="memSeparator" colspan="2">&#160;</td></tr>
  217. <tr class="memitem:a9064a0047e3e77e6d48ebb59bd711da4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9064a0047e3e77e6d48ebb59bd711da4"></a>
  218. void&#160;</td><td class="memItemRight" valign="bottom"><b>on_actionSave_Image_triggered</b> ()</td></tr>
  219. <tr class="separator:a9064a0047e3e77e6d48ebb59bd711da4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  220. <tr class="memitem:addb3dd1ec7fe84f4d8a7b63bc7431b5a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="addb3dd1ec7fe84f4d8a7b63bc7431b5a"></a>
  221. void&#160;</td><td class="memItemRight" valign="bottom"><b>on_actionClose_Window_triggered</b> ()</td></tr>
  222. <tr class="separator:addb3dd1ec7fe84f4d8a7b63bc7431b5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  223. <tr class="memitem:aab8ca019ab84ef9c21ed9301abca6636"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aab8ca019ab84ef9c21ed9301abca6636"></a>
  224. void&#160;</td><td class="memItemRight" valign="bottom"><b>on_actionInvert_Threshold_Colors_triggered</b> ()</td></tr>
  225. <tr class="separator:aab8ca019ab84ef9c21ed9301abca6636"><td class="memSeparator" colspan="2">&#160;</td></tr>
  226. <tr class="memitem:a78d8ae530c062adf68cd5d5d05d13320"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a78d8ae530c062adf68cd5d5d05d13320"></a>
  227. void&#160;</td><td class="memItemRight" valign="bottom"><b>on_actionFlip_Image_Horizontally_triggered</b> ()</td></tr>
  228. <tr class="separator:a78d8ae530c062adf68cd5d5d05d13320"><td class="memSeparator" colspan="2">&#160;</td></tr>
  229. <tr class="memitem:aee732b0d048591cff1432aa7992ae474"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aee732b0d048591cff1432aa7992ae474"></a>
  230. void&#160;</td><td class="memItemRight" valign="bottom"><b>on_actionFlip_Image_Vertically_triggered</b> ()</td></tr>
  231. <tr class="separator:aee732b0d048591cff1432aa7992ae474"><td class="memSeparator" colspan="2">&#160;</td></tr>
  232. <tr class="memitem:a86de73fc655de25fc6bed09f8ee304a0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a86de73fc655de25fc6bed09f8ee304a0"></a>
  233. void&#160;</td><td class="memItemRight" valign="bottom"><b>on_actionApply_Grey_Scale_Filter_triggered</b> ()</td></tr>
  234. <tr class="separator:a86de73fc655de25fc6bed09f8ee304a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  235. <tr class="memitem:a579dbaf9e4684318a252f7bc471e2db8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a579dbaf9e4684318a252f7bc471e2db8"></a>
  236. void&#160;</td><td class="memItemRight" valign="bottom"><b>on_actionRevert_Edited_Image_to_Original_triggered</b> ()</td></tr>
  237. <tr class="separator:a579dbaf9e4684318a252f7bc471e2db8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  238. <tr class="memitem:a7a83ec2aee41b85977c9a832de61346b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7a83ec2aee41b85977c9a832de61346b"></a>
  239. void&#160;</td><td class="memItemRight" valign="bottom"><b>on_actionInstructions_triggered</b> ()</td></tr>
  240. <tr class="separator:a7a83ec2aee41b85977c9a832de61346b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  241. <tr class="memitem:ab39da572361126e8b2b47b55dd8a9f51"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab39da572361126e8b2b47b55dd8a9f51"></a>
  242. void&#160;</td><td class="memItemRight" valign="bottom"><b>applyThresholdFilter</b> ()</td></tr>
  243. <tr class="separator:ab39da572361126e8b2b47b55dd8a9f51"><td class="memSeparator" colspan="2">&#160;</td></tr>
  244. <tr class="memitem:aeeabb8c67fc108c9df2b0da0d9674181"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aeeabb8c67fc108c9df2b0da0d9674181"></a>
  245. void&#160;</td><td class="memItemRight" valign="bottom"><b>instructions</b> ()</td></tr>
  246. <tr class="separator:aeeabb8c67fc108c9df2b0da0d9674181"><td class="memSeparator" colspan="2">&#160;</td></tr>
  247. <tr class="memitem:aa2b30fce1731a2ba1818f60ee9dc45a4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa2b30fce1731a2ba1818f60ee9dc45a4"></a>
  248. void&#160;</td><td class="memItemRight" valign="bottom"><b>on_thresholdSlider_sliderReleased</b> ()</td></tr>
  249. <tr class="separator:aa2b30fce1731a2ba1818f60ee9dc45a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  250. <tr class="memitem:a097fcba797448372b19307a32ced737d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a097fcba797448372b19307a32ced737d"></a>
  251. void&#160;</td><td class="memItemRight" valign="bottom"><b>on_btnLoadImage_clicked</b> ()</td></tr>
  252. <tr class="separator:a097fcba797448372b19307a32ced737d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  253. <tr class="memitem:ad495b5030e61fb55b8ab95c5a3a559d6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad495b5030e61fb55b8ab95c5a3a559d6"></a>
  254. void&#160;</td><td class="memItemRight" valign="bottom"><b>on_btnSaveImage_clicked</b> ()</td></tr>
  255. <tr class="separator:ad495b5030e61fb55b8ab95c5a3a559d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  256. <tr class="memitem:a9936e00b191c04ab938897cf13690dbe"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9936e00b191c04ab938897cf13690dbe"></a>
  257. void&#160;</td><td class="memItemRight" valign="bottom"><b>on_chboxThreshold_clicked</b> ()</td></tr>
  258. <tr class="separator:a9936e00b191c04ab938897cf13690dbe"><td class="memSeparator" colspan="2">&#160;</td></tr>
  259. <tr class="memitem:a803c210fefa9d0416f1b1c6c9769aa40"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a803c210fefa9d0416f1b1c6c9769aa40"></a>
  260. void&#160;</td><td class="memItemRight" valign="bottom"><b>on_btnInvertThreshold_clicked</b> ()</td></tr>
  261. <tr class="separator:a803c210fefa9d0416f1b1c6c9769aa40"><td class="memSeparator" colspan="2">&#160;</td></tr>
  262. <tr class="memitem:ad5d0ca46a9061f5a22f84494de29f8d9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad5d0ca46a9061f5a22f84494de29f8d9"></a>
  263. void&#160;</td><td class="memItemRight" valign="bottom"><b>on_btnFlipImageHorizontally_clicked</b> ()</td></tr>
  264. <tr class="separator:ad5d0ca46a9061f5a22f84494de29f8d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  265. <tr class="memitem:aeb76bf75157cc088511193f8190d0d95"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aeb76bf75157cc088511193f8190d0d95"></a>
  266. void&#160;</td><td class="memItemRight" valign="bottom"><b>on_btnFlipImageVertically_clicked</b> ()</td></tr>
  267. <tr class="separator:aeb76bf75157cc088511193f8190d0d95"><td class="memSeparator" colspan="2">&#160;</td></tr>
  268. <tr class="memitem:aadc6d08a96c6003b94d29b254de97838"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aadc6d08a96c6003b94d29b254de97838"></a>
  269. void&#160;</td><td class="memItemRight" valign="bottom"><b>on_btnGreyScaleFilter_clicked</b> ()</td></tr>
  270. <tr class="separator:aadc6d08a96c6003b94d29b254de97838"><td class="memSeparator" colspan="2">&#160;</td></tr>
  271. <tr class="memitem:a4a615fae77ffcbb3ff634215be270590"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4a615fae77ffcbb3ff634215be270590"></a>
  272. void&#160;</td><td class="memItemRight" valign="bottom"><b>on_btnRevertImage_clicked</b> ()</td></tr>
  273. <tr class="separator:a4a615fae77ffcbb3ff634215be270590"><td class="memSeparator" colspan="2">&#160;</td></tr>
  274. </table><table class="memberdecls">
  275. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
  276. Atributos privados</h2></td></tr>
  277. <tr class="memitem:a43606649aeaf9e561328935fca0cd1bf"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a43606649aeaf9e561328935fca0cd1bf"></a>
  278. Ui::MainWindow *&#160;</td><td class="memItemRight" valign="bottom"><b>ui</b></td></tr>
  279. <tr class="separator:a43606649aeaf9e561328935fca0cd1bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
  280. <tr class="memitem:a4e3a604a9d31eae583a1935b5694af3b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4e3a604a9d31eae583a1935b5694af3b"></a>
  281. QImage&#160;</td><td class="memItemRight" valign="bottom"><b>originalImage</b></td></tr>
  282. <tr class="separator:a4e3a604a9d31eae583a1935b5694af3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  283. <tr class="memitem:a958e3bd8b0adbd5675083198a25d35ab"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a958e3bd8b0adbd5675083198a25d35ab"></a>
  284. QImage&#160;</td><td class="memItemRight" valign="bottom"><b>editedImage</b></td></tr>
  285. <tr class="separator:a958e3bd8b0adbd5675083198a25d35ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
  286. <tr class="memitem:a81fc322ea9d4bf48c690011789e7badf"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a81fc322ea9d4bf48c690011789e7badf"></a>
  287. bool&#160;</td><td class="memItemRight" valign="bottom"><b>invertColor</b></td></tr>
  288. <tr class="separator:a81fc322ea9d4bf48c690011789e7badf"><td class="memSeparator" colspan="2">&#160;</td></tr>
  289. </table>
  290. <h2 class="groupheader">Documentación del constructor y destructor</h2>
  291. <a class="anchor" id="a8b244be8b7b7db1b08de2a2acb9409db"></a>
  292. <div class="memitem">
  293. <div class="memproto">
  294. <table class="mlabels">
  295. <tr>
  296. <td class="mlabels-left">
  297. <table class="memname">
  298. <tr>
  299. <td class="memname">MainWindow::MainWindow </td>
  300. <td>(</td>
  301. <td class="paramtype">QWidget *&#160;</td>
  302. <td class="paramname"><em>parent</em> = <code>0</code></td><td>)</td>
  303. <td></td>
  304. </tr>
  305. </table>
  306. </td>
  307. <td class="mlabels-right">
  308. <span class="mlabels"><span class="mlabel">explicit</span></span> </td>
  309. </tr>
  310. </table>
  311. </div><div class="memdoc">
  312. <p>Constructor. </p>
  313. <p>Destructor. </p>
  314. <p>KEYBOARD SHORTCUTS Loads a image with cmd + o Carga una imagen con cmd + o</p>
  315. <p>Saves a image with cmd + s Guarda una imagen con cmd + s</p>
  316. <p>Closes window with cmd + w Cierra la ventana con cmd + w</p>
  317. <p>Inverts threshold color with cmd + t Invierte el color umbral con cmd + t</p>
  318. <p>Flips horizontally a image with cmd + f Rota horizontalmente una imagen con cmd + f</p>
  319. <p>Flips vertically a image with cmd + v Rota verticalmente una imagen con cmd + v</p>
  320. <p>Applies greyscale filter to a image with cmd + g Aplica el filtro de tonos grises a una imagen con cmd + g</p>
  321. <p>Resets an edited image to the orignal one to a image with cmd + r Devuelve la imagen editada a su estado original con cmd + r</p>
  322. <p>Display the instructions with cmd + i Despliega las instrucciones con cmd + i </p>
  323. </div>
  324. </div>
  325. <h2 class="groupheader">Documentación de las funciones miembro</h2>
  326. <a class="anchor" id="a92d8983ccdda1d49d2d9c6302e7aab52"></a>
  327. <div class="memitem">
  328. <div class="memproto">
  329. <table class="memname">
  330. <tr>
  331. <td class="memname">void MainWindow::GrayScale </td>
  332. <td>(</td>
  333. <td class="paramtype">QImage &amp;&#160;</td>
  334. <td class="paramname"><em>editedImage</em></td><td>)</td>
  335. <td></td>
  336. </tr>
  337. </table>
  338. </div><div class="memdoc">
  339. <p>Funcion que aplica un filtro de escala gris en la imagen editada. Funciona cambiando cada pixel a un tono de color gris. </p>
  340. <p>Function that applies a greyscale filter to the edited image. It works by turning each pixel into the color grey. For this we use two for loops to access the pixels of the edited image.</p>
  341. <dl class="params"><dt>Parámetros</dt><dd>
  342. <table class="params">
  343. <tr><td class="paramname">originalImage</td><td>Referencia a la imagen original (sin filtro) </td></tr>
  344. <tr><td class="paramname">editedImage</td><td>Referencia a la imagen destino con el filtro aplicado. </td></tr>
  345. </table>
  346. </dd>
  347. </dl>
  348. </div>
  349. </div>
  350. <a class="anchor" id="a6827de64beb6250700e8bafc005379c4"></a>
  351. <div class="memitem">
  352. <div class="memproto">
  353. <table class="memname">
  354. <tr>
  355. <td class="memname">void MainWindow::HorizontalFlip </td>
  356. <td>(</td>
  357. <td class="paramtype">QImage &amp;&#160;</td>
  358. <td class="paramname"><em>editedImage</em></td><td>)</td>
  359. <td></td>
  360. </tr>
  361. </table>
  362. </div><div class="memdoc">
  363. <p>Funcion que aplica un filtro de flip horizontal en la imagen editada. Funciona poniendo el pixel de la imagen original en la posicion width-1-i (altura) de la imagen editada. </p>
  364. <p>Function that applies a horizontal flip to the edited image For this we use two for loops to access the pixels of the images. In the first loop we go through the x axis and in the second we go through the y axis and inside of it we put the pixel from the original image in the width-1-i position of the edited image.</p>
  365. <dl class="params"><dt>Parámetros</dt><dd>
  366. <table class="params">
  367. <tr><td class="paramname">editedImage</td><td>Referencia a la imagen destino con el filtro aplicado. </td></tr>
  368. </table>
  369. </dd>
  370. </dl>
  371. </div>
  372. </div>
  373. <a class="anchor" id="a4ff08d0fe0eca41750440ca1f4d9c768"></a>
  374. <div class="memitem">
  375. <div class="memproto">
  376. <table class="mlabels">
  377. <tr>
  378. <td class="mlabels-left">
  379. <table class="memname">
  380. <tr>
  381. <td class="memname">void MainWindow::on_actionLoad_Image_triggered </td>
  382. <td>(</td>
  383. <td class="paramname"></td><td>)</td>
  384. <td></td>
  385. </tr>
  386. </table>
  387. </td>
  388. <td class="mlabels-right">
  389. <span class="mlabels"><span class="mlabel">private</span><span class="mlabel">slot</span></span> </td>
  390. </tr>
  391. </table>
  392. </div><div class="memdoc">
  393. <p>Invoca la funcion <a class="el" href="class_main_window.html#a097fcba797448372b19307a32ced737d" title="Para cargar una imagen al GUI cuando se marca opcion de cargar imagen. ">on_btnLoadImage_clicked()</a> </p>
  394. <p>ACTION FUNCTIONS </p>
  395. </div>
  396. </div>
  397. <a class="anchor" id="a4fc39fdbaf9fb6a3f551eea7c4e3c9ae"></a>
  398. <div class="memitem">
  399. <div class="memproto">
  400. <table class="memname">
  401. <tr>
  402. <td class="memname">void MainWindow::ThresholdFilter </td>
  403. <td>(</td>
  404. <td class="paramtype">QImage &amp;&#160;</td>
  405. <td class="paramname"><em>originalImage</em>, </td>
  406. </tr>
  407. <tr>
  408. <td class="paramkey"></td>
  409. <td></td>
  410. <td class="paramtype">QImage &amp;&#160;</td>
  411. <td class="paramname"><em>editedImage</em>, </td>
  412. </tr>
  413. <tr>
  414. <td class="paramkey"></td>
  415. <td></td>
  416. <td class="paramtype">unsigned int&#160;</td>
  417. <td class="paramname"><em>threshold</em>, </td>
  418. </tr>
  419. <tr>
  420. <td class="paramkey"></td>
  421. <td></td>
  422. <td class="paramtype">bool&#160;</td>
  423. <td class="paramname"><em>color</em>&#160;</td>
  424. </tr>
  425. <tr>
  426. <td></td>
  427. <td>)</td>
  428. <td></td><td></td>
  429. </tr>
  430. </table>
  431. </div><div class="memdoc">
  432. <p>Funcion que aplica un filtro de umbral en la imagen editada. Funciona creando una imagen en blanco y negro donde el color del pixel nuevo is blanco o negro dependiendo de un valor umbral y el promedio de los colores del pixel de la imagen original. </p>
  433. <dl class="params"><dt>Parámetros</dt><dd>
  434. <table class="params">
  435. <tr><td class="paramname">originalImage</td><td>Referencia a la imagen original (sin filtro) </td></tr>
  436. <tr><td class="paramname">editedImage</td><td>Referencia a la imagen destino con el filtro aplicado. </td></tr>
  437. <tr><td class="paramname">threshold</td><td>Intero que sirve como un umbral de color entre blanco y negro </td></tr>
  438. <tr><td class="paramname">color</td><td>Booleano para seleccionar que color blanco o negro si el promedio del color esta bajo o sobre el umbral.</td></tr>
  439. </table>
  440. </dd>
  441. </dl>
  442. <p>Function that applies a threshold filter to the edited image. For this we use two for loops to access the pixels of the images. In the first loop we go through the x axis and in the second we go through the y axis. </p>
  443. </div>
  444. </div>
  445. <a class="anchor" id="a3d4e0cc1efd8a430d0a07901a9da96ae"></a>
  446. <div class="memitem">
  447. <div class="memproto">
  448. <table class="memname">
  449. <tr>
  450. <td class="memname">void MainWindow::VerticalFlip </td>
  451. <td>(</td>
  452. <td class="paramtype">QImage &amp;&#160;</td>
  453. <td class="paramname"><em>editedImage</em></td><td>)</td>
  454. <td></td>
  455. </tr>
  456. </table>
  457. </div><div class="memdoc">
  458. <p>Funcion que aplica un filtro de flip vertical en la imagen editada. Funciona poniendo el pixel de la imagen original en la posicion height-1-j (altura) de la imagen editada. </p>
  459. <p>Function that applies a vertical flip to the edited image. For this we use two for loops to access the pixels of the images. In the first loop we go through the x axis and in the second we go through the y axis and inside of it we put the pixel from the original image in the heigth-1-j position of the edited image.</p>
  460. <dl class="params"><dt>Parámetros</dt><dd>
  461. <table class="params">
  462. <tr><td class="paramname">editedImage</td><td>Referencia a la imagen destino con el filtro aplicado. </td></tr>
  463. </table>
  464. </dd>
  465. </dl>
  466. </div>
  467. </div>
  468. <hr/>La documentación para esta clase fue generada a partir de los siguientes ficheros:<ul>
  469. <li>bk/<a class="el" href="bk_2mainwindow_8h_source.html">mainwindow.h</a></li>
  470. <li>bk/mainwindow.cpp</li>
  471. <li>filter.cpp</li>
  472. </ul>
  473. </div><!-- contents -->
  474. <!-- start footer part -->
  475. <hr class="footer"/><address class="footer"><small>
  476. Generado el Martes, 11 de Agosto de 2015 13:49:11 para My Project por &#160;<a href="http://www.doxygen.org/index.html">
  477. <img class="footer" src="doxygen.png" alt="doxygen"/>
  478. </a> 1.8.9.1
  479. </small></address>
  480. </body>
  481. </html>