Нема описа

class_main_window.html 41KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  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-attribs">Private Attributes</a> &#124;
  87. <a href="class_main_window-members.html">List of all members</a> </div>
  88. <div class="headertitle">
  89. <div class="title">MainWindow Class Reference</div> </div>
  90. </div><!--header-->
  91. <div class="contents">
  92. <div class="dynheader">
  93. Inheritance diagram for 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. Public Member Functions</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">More...</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">Function that applies a greyscale filter in the edited image. It works by turning each pixel into the color grey. <a href="#a92d8983ccdda1d49d2d9c6302e7aab52">More...</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">Function that applies a vertical flip to the edited image. It works by putting the pixel from the original image in the heigth-1-j position of the edited image. <a href="#a3d4e0cc1efd8a430d0a07901a9da96ae">More...</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">Function that applies a horizontal flip to the edited image. It works by putting the pixel from the original image in the width-1-i position of the edited image. <a href="#a6827de64beb6250700e8bafc005379c4">More...</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">Function that applies a theshold filter to the edited image. It works by creating a black and white image where the color of the new pixel is white or black depending on a threshold value and the average of the colors of the pixel of the original image. <a href="#a4fc39fdbaf9fb6a3f551eea7c4e3c9ae">More...</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. Private Slots</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">Invokes function <a class="el" href="class_main_window.html#a097fcba797448372b19307a32ced737d" title="To load an image to the GUI when the load image option is selected. ">on_btnLoadImage_clicked()</a> <a href="#a4ff08d0fe0eca41750440ca1f4d9c768">More...</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">Invokes function <a class="el" href="class_main_window.html#ad495b5030e61fb55b8ab95c5a3a559d6" title="To save an image to the file system when the save image option is selected. ">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">Invokes function <a class="el" href="class_main_window.html#a803c210fefa9d0416f1b1c6c9769aa40" title="To apply the threshold filter and load the edited image to the GUI when the threshold color is invert...">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">Invokes function <a class="el" href="class_main_window.html#ad5d0ca46a9061f5a22f84494de29f8d9" title="To call the horizontal flip image filter. ">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">Invokes function <a class="el" href="class_main_window.html#aeb76bf75157cc088511193f8190d0d95" title="To call the vertical flip image filter. ">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">Invokes function <a class="el" href="class_main_window.html#aadc6d08a96c6003b94d29b254de97838" title="To call the Gray Scale image filter. ">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">Invokes function <a class="el" href="class_main_window.html#a4a615fae77ffcbb3ff634215be270590" title="To reset the edited image to the original image. ">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">To display the instructions. <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">To apply the threshold filter. <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">To display the instructions. <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">To apply the threshold filter and load the edited image to the GUI when the GUI slider is moved. <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">To load an image to the GUI when the load image option is selected. <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">To save an image to the file system when the save image option is selected. <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">To apply the threshold filter and load the edited image to the 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">To apply the threshold filter and load the edited image to the GUI when the threshold color is inverted. <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">To call the horizontal flip image filter. <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">To call the vertical flip image filter. <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">To call the Gray Scale image filter. <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">To reset the edited image to the original image. <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. Private Attributes</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">Constructor &amp; Destructor Documentation</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">Member Function Documentation</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>Function that applies a greyscale filter in the edited image. It works by turning each pixel into the color grey. </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>Parameters</dt><dd>
  342. <table class="params">
  343. <tr><td class="paramname">originalImage</td><td>Reference to the original image (no filter) </td></tr>
  344. <tr><td class="paramname">editedImage</td><td>Reference to the destination image with the filter applied. </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>Function that applies a horizontal flip to the edited image. It works by putting the pixel from the original image in the width-1-i position of the edited image. </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>Parameters</dt><dd>
  366. <table class="params">
  367. <tr><td class="paramname">originalImage</td><td>Reference to the original image (no filter) </td></tr>
  368. <tr><td class="paramname">editedImage</td><td>Reference to the destination image with the filter applied. </td></tr>
  369. </table>
  370. </dd>
  371. </dl>
  372. </div>
  373. </div>
  374. <a class="anchor" id="a4ff08d0fe0eca41750440ca1f4d9c768"></a>
  375. <div class="memitem">
  376. <div class="memproto">
  377. <table class="mlabels">
  378. <tr>
  379. <td class="mlabels-left">
  380. <table class="memname">
  381. <tr>
  382. <td class="memname">void MainWindow::on_actionLoad_Image_triggered </td>
  383. <td>(</td>
  384. <td class="paramname"></td><td>)</td>
  385. <td></td>
  386. </tr>
  387. </table>
  388. </td>
  389. <td class="mlabels-right">
  390. <span class="mlabels"><span class="mlabel">private</span><span class="mlabel">slot</span></span> </td>
  391. </tr>
  392. </table>
  393. </div><div class="memdoc">
  394. <p>Invokes function <a class="el" href="class_main_window.html#a097fcba797448372b19307a32ced737d" title="To load an image to the GUI when the load image option is selected. ">on_btnLoadImage_clicked()</a> </p>
  395. <p>ACTION FUNCTIONS </p>
  396. </div>
  397. </div>
  398. <a class="anchor" id="a4fc39fdbaf9fb6a3f551eea7c4e3c9ae"></a>
  399. <div class="memitem">
  400. <div class="memproto">
  401. <table class="memname">
  402. <tr>
  403. <td class="memname">void MainWindow::ThresholdFilter </td>
  404. <td>(</td>
  405. <td class="paramtype">QImage &amp;&#160;</td>
  406. <td class="paramname"><em>originalImage</em>, </td>
  407. </tr>
  408. <tr>
  409. <td class="paramkey"></td>
  410. <td></td>
  411. <td class="paramtype">QImage &amp;&#160;</td>
  412. <td class="paramname"><em>editedImage</em>, </td>
  413. </tr>
  414. <tr>
  415. <td class="paramkey"></td>
  416. <td></td>
  417. <td class="paramtype">unsigned int&#160;</td>
  418. <td class="paramname"><em>threshold</em>, </td>
  419. </tr>
  420. <tr>
  421. <td class="paramkey"></td>
  422. <td></td>
  423. <td class="paramtype">bool&#160;</td>
  424. <td class="paramname"><em>color</em>&#160;</td>
  425. </tr>
  426. <tr>
  427. <td></td>
  428. <td>)</td>
  429. <td></td><td></td>
  430. </tr>
  431. </table>
  432. </div><div class="memdoc">
  433. <p>Function that applies a theshold filter to the edited image. It works by creating a black and white image where the color of the new pixel is white or black depending on a threshold value and the average of the colors of the pixel of the original image. </p>
  434. <dl class="params"><dt>Parameters</dt><dd>
  435. <table class="params">
  436. <tr><td class="paramname">originalImage</td><td>Reference to the original image (no filter) </td></tr>
  437. <tr><td class="paramname">editedImage</td><td>Reference to the destination image with the filter applied. </td></tr>
  438. <tr><td class="paramname">threshold</td><td>Integer value that serves as a black or white color threshold </td></tr>
  439. <tr><td class="paramname">color</td><td>boolean value to select which color white or black if the color average is under or over the threshold.</td></tr>
  440. </table>
  441. </dd>
  442. </dl>
  443. <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>
  444. </div>
  445. </div>
  446. <a class="anchor" id="a3d4e0cc1efd8a430d0a07901a9da96ae"></a>
  447. <div class="memitem">
  448. <div class="memproto">
  449. <table class="memname">
  450. <tr>
  451. <td class="memname">void MainWindow::VerticalFlip </td>
  452. <td>(</td>
  453. <td class="paramtype">QImage &amp;&#160;</td>
  454. <td class="paramname"><em>editedImage</em></td><td>)</td>
  455. <td></td>
  456. </tr>
  457. </table>
  458. </div><div class="memdoc">
  459. <p>Function that applies a vertical flip to the edited image. It works by putting the pixel from the original image in the heigth-1-j position of the edited image. </p>
  460. <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>
  461. <dl class="params"><dt>Parameters</dt><dd>
  462. <table class="params">
  463. <tr><td class="paramname">originalImage</td><td>Reference to the original image (no filter) </td></tr>
  464. <tr><td class="paramname">editedImage</td><td>Reference to the destination image with the filter applied. </td></tr>
  465. </table>
  466. </dd>
  467. </dl>
  468. </div>
  469. </div>
  470. <hr/>The documentation for this class was generated from the following files:<ul>
  471. <li>bk/<a class="el" href="bk_2mainwindow_8h_source.html">mainwindow.h</a></li>
  472. <li>bk/mainwindow.cpp</li>
  473. <li>filter.cpp</li>
  474. </ul>
  475. </div><!-- contents -->
  476. <!-- start footer part -->
  477. <hr class="footer"/><address class="footer"><small>
  478. Generated on Tue Aug 11 2015 13:49:09 for My Project by &#160;<a href="http://www.doxygen.org/index.html">
  479. <img class="footer" src="doxygen.png" alt="doxygen"/>
  480. </a> 1.8.9.1
  481. </small></address>
  482. </body>
  483. </html>