Keine Beschreibung

class_main_window.tex 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. \hypertarget{class_main_window}{}\section{Referencia de la Clase Main\+Window}
  2. \label{class_main_window}\index{Main\+Window@{Main\+Window}}
  3. Diagrama de herencias de Main\+Window\begin{figure}[H]
  4. \begin{center}
  5. \leavevmode
  6. \includegraphics[height=2.000000cm]{class_main_window}
  7. \end{center}
  8. \end{figure}
  9. \subsection*{Métodos públicos}
  10. \begin{DoxyCompactItemize}
  11. \item
  12. \hyperlink{class_main_window_a8b244be8b7b7db1b08de2a2acb9409db}{Main\+Window} (Q\+Widget $\ast$parent=0)
  13. \begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item
  14. void \hyperlink{class_main_window_a92d8983ccdda1d49d2d9c6302e7aab52}{Gray\+Scale} (Q\+Image \&)
  15. \begin{DoxyCompactList}\small\item\em Funcion que aplica un filtro de escala gris en la imagen editada. Funciona cambiando cada pixel a un tono de color gris. \end{DoxyCompactList}\item
  16. void \hyperlink{class_main_window_a3d4e0cc1efd8a430d0a07901a9da96ae}{Vertical\+Flip} (Q\+Image \&)
  17. \begin{DoxyCompactList}\small\item\em 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. \end{DoxyCompactList}\item
  18. void \hyperlink{class_main_window_a6827de64beb6250700e8bafc005379c4}{Horizontal\+Flip} (Q\+Image \&)
  19. \begin{DoxyCompactList}\small\item\em 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. \end{DoxyCompactList}\item
  20. void \hyperlink{class_main_window_a4fc39fdbaf9fb6a3f551eea7c4e3c9ae}{Threshold\+Filter} (Q\+Image \&, Q\+Image \&, unsigned int, bool)
  21. \begin{DoxyCompactList}\small\item\em 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. \end{DoxyCompactList}\item
  22. \hypertarget{class_main_window_a8b244be8b7b7db1b08de2a2acb9409db}{}{\bfseries Main\+Window} (Q\+Widget $\ast$parent=0)\label{class_main_window_a8b244be8b7b7db1b08de2a2acb9409db}
  23. \item
  24. \hypertarget{class_main_window_a92d8983ccdda1d49d2d9c6302e7aab52}{}void {\bfseries Gray\+Scale} (Q\+Image \&)\label{class_main_window_a92d8983ccdda1d49d2d9c6302e7aab52}
  25. \item
  26. \hypertarget{class_main_window_a3d4e0cc1efd8a430d0a07901a9da96ae}{}void {\bfseries Vertical\+Flip} (Q\+Image \&)\label{class_main_window_a3d4e0cc1efd8a430d0a07901a9da96ae}
  27. \item
  28. \hypertarget{class_main_window_a6827de64beb6250700e8bafc005379c4}{}void {\bfseries Horizontal\+Flip} (Q\+Image \&)\label{class_main_window_a6827de64beb6250700e8bafc005379c4}
  29. \item
  30. \hypertarget{class_main_window_a4fc39fdbaf9fb6a3f551eea7c4e3c9ae}{}void {\bfseries Threshold\+Filter} (Q\+Image \&, Q\+Image \&, unsigned int, bool)\label{class_main_window_a4fc39fdbaf9fb6a3f551eea7c4e3c9ae}
  31. \end{DoxyCompactItemize}
  32. \subsection*{Slots privados}
  33. \begin{DoxyCompactItemize}
  34. \item
  35. void \hyperlink{class_main_window_a4ff08d0fe0eca41750440ca1f4d9c768}{on\+\_\+action\+Load\+\_\+\+Image\+\_\+triggered} ()
  36. \begin{DoxyCompactList}\small\item\em Invoca la funcion \hyperlink{class_main_window_a097fcba797448372b19307a32ced737d}{on\+\_\+btn\+Load\+Image\+\_\+clicked()} \end{DoxyCompactList}\item
  37. \hypertarget{class_main_window_a9064a0047e3e77e6d48ebb59bd711da4}{}void \hyperlink{class_main_window_a9064a0047e3e77e6d48ebb59bd711da4}{on\+\_\+action\+Save\+\_\+\+Image\+\_\+triggered} ()\label{class_main_window_a9064a0047e3e77e6d48ebb59bd711da4}
  38. \begin{DoxyCompactList}\small\item\em Invoca la funcion \hyperlink{class_main_window_ad495b5030e61fb55b8ab95c5a3a559d6}{on\+\_\+btn\+Save\+Image\+\_\+clicked()} \end{DoxyCompactList}\item
  39. \hypertarget{class_main_window_addb3dd1ec7fe84f4d8a7b63bc7431b5a}{}void {\bfseries on\+\_\+action\+Close\+\_\+\+Window\+\_\+triggered} ()\label{class_main_window_addb3dd1ec7fe84f4d8a7b63bc7431b5a}
  40. \item
  41. \hypertarget{class_main_window_aab8ca019ab84ef9c21ed9301abca6636}{}void \hyperlink{class_main_window_aab8ca019ab84ef9c21ed9301abca6636}{on\+\_\+action\+Invert\+\_\+\+Threshold\+\_\+\+Colors\+\_\+triggered} ()\label{class_main_window_aab8ca019ab84ef9c21ed9301abca6636}
  42. \begin{DoxyCompactList}\small\item\em Invoca la funcion \hyperlink{class_main_window_a803c210fefa9d0416f1b1c6c9769aa40}{on\+\_\+btn\+Invert\+Threshold\+\_\+clicked()} \end{DoxyCompactList}\item
  43. \hypertarget{class_main_window_a78d8ae530c062adf68cd5d5d05d13320}{}void \hyperlink{class_main_window_a78d8ae530c062adf68cd5d5d05d13320}{on\+\_\+action\+Flip\+\_\+\+Image\+\_\+\+Horizontally\+\_\+triggered} ()\label{class_main_window_a78d8ae530c062adf68cd5d5d05d13320}
  44. \begin{DoxyCompactList}\small\item\em Invoca la funcion \hyperlink{class_main_window_ad5d0ca46a9061f5a22f84494de29f8d9}{on\+\_\+btn\+Flip\+Image\+Horizontally\+\_\+clicked()} \end{DoxyCompactList}\item
  45. \hypertarget{class_main_window_aee732b0d048591cff1432aa7992ae474}{}void \hyperlink{class_main_window_aee732b0d048591cff1432aa7992ae474}{on\+\_\+action\+Flip\+\_\+\+Image\+\_\+\+Vertically\+\_\+triggered} ()\label{class_main_window_aee732b0d048591cff1432aa7992ae474}
  46. \begin{DoxyCompactList}\small\item\em Invoca la funcion \hyperlink{class_main_window_aeb76bf75157cc088511193f8190d0d95}{on\+\_\+btn\+Flip\+Image\+Vertically\+\_\+clicked()} \end{DoxyCompactList}\item
  47. \hypertarget{class_main_window_a86de73fc655de25fc6bed09f8ee304a0}{}void \hyperlink{class_main_window_a86de73fc655de25fc6bed09f8ee304a0}{on\+\_\+action\+Apply\+\_\+\+Grey\+\_\+\+Scale\+\_\+\+Filter\+\_\+triggered} ()\label{class_main_window_a86de73fc655de25fc6bed09f8ee304a0}
  48. \begin{DoxyCompactList}\small\item\em Invoca la funcion \hyperlink{class_main_window_aadc6d08a96c6003b94d29b254de97838}{on\+\_\+btn\+Grey\+Scale\+Filter\+\_\+clicked()} \end{DoxyCompactList}\item
  49. \hypertarget{class_main_window_a579dbaf9e4684318a252f7bc471e2db8}{}void \hyperlink{class_main_window_a579dbaf9e4684318a252f7bc471e2db8}{on\+\_\+action\+Revert\+\_\+\+Edited\+\_\+\+Image\+\_\+to\+\_\+\+Original\+\_\+triggered} ()\label{class_main_window_a579dbaf9e4684318a252f7bc471e2db8}
  50. \begin{DoxyCompactList}\small\item\em Invoca la funcion \hyperlink{class_main_window_a4a615fae77ffcbb3ff634215be270590}{on\+\_\+btn\+Revert\+Image\+\_\+clicked()} \end{DoxyCompactList}\item
  51. \hypertarget{class_main_window_a7a83ec2aee41b85977c9a832de61346b}{}void \hyperlink{class_main_window_a7a83ec2aee41b85977c9a832de61346b}{on\+\_\+action\+Instructions\+\_\+triggered} ()\label{class_main_window_a7a83ec2aee41b85977c9a832de61346b}
  52. \begin{DoxyCompactList}\small\item\em Para desplegar las instrucciones. \end{DoxyCompactList}\item
  53. \hypertarget{class_main_window_ab39da572361126e8b2b47b55dd8a9f51}{}void \hyperlink{class_main_window_ab39da572361126e8b2b47b55dd8a9f51}{apply\+Threshold\+Filter} ()\label{class_main_window_ab39da572361126e8b2b47b55dd8a9f51}
  54. \begin{DoxyCompactList}\small\item\em Para aplicar el filtro de umbral. \end{DoxyCompactList}\item
  55. \hypertarget{class_main_window_aeeabb8c67fc108c9df2b0da0d9674181}{}void \hyperlink{class_main_window_aeeabb8c67fc108c9df2b0da0d9674181}{instructions} ()\label{class_main_window_aeeabb8c67fc108c9df2b0da0d9674181}
  56. \begin{DoxyCompactList}\small\item\em Para desplegar las instrucciones. \end{DoxyCompactList}\item
  57. \hypertarget{class_main_window_aa2b30fce1731a2ba1818f60ee9dc45a4}{}void \hyperlink{class_main_window_aa2b30fce1731a2ba1818f60ee9dc45a4}{on\+\_\+threshold\+Slider\+\_\+slider\+Released} ()\label{class_main_window_aa2b30fce1731a2ba1818f60ee9dc45a4}
  58. \begin{DoxyCompactList}\small\item\em Para aplicar el filtro de umbral y cargar la imagen editada al G\+U\+I cuando el deslizador del G\+U\+I es movido. \end{DoxyCompactList}\item
  59. \hypertarget{class_main_window_a097fcba797448372b19307a32ced737d}{}void \hyperlink{class_main_window_a097fcba797448372b19307a32ced737d}{on\+\_\+btn\+Load\+Image\+\_\+clicked} ()\label{class_main_window_a097fcba797448372b19307a32ced737d}
  60. \begin{DoxyCompactList}\small\item\em Para cargar una imagen al G\+U\+I cuando se marca opcion de cargar imagen. \end{DoxyCompactList}\item
  61. \hypertarget{class_main_window_ad495b5030e61fb55b8ab95c5a3a559d6}{}void \hyperlink{class_main_window_ad495b5030e61fb55b8ab95c5a3a559d6}{on\+\_\+btn\+Save\+Image\+\_\+clicked} ()\label{class_main_window_ad495b5030e61fb55b8ab95c5a3a559d6}
  62. \begin{DoxyCompactList}\small\item\em Para guardar una imagen al sistema de archivos cuando se marca opcion de guardar imagen. \end{DoxyCompactList}\item
  63. \hypertarget{class_main_window_a9936e00b191c04ab938897cf13690dbe}{}void \hyperlink{class_main_window_a9936e00b191c04ab938897cf13690dbe}{on\+\_\+chbox\+Threshold\+\_\+clicked} ()\label{class_main_window_a9936e00b191c04ab938897cf13690dbe}
  64. \begin{DoxyCompactList}\small\item\em Para aplicar el filtro de umbral y cargar la imagen editada al G\+U\+I. \end{DoxyCompactList}\item
  65. \hypertarget{class_main_window_a803c210fefa9d0416f1b1c6c9769aa40}{}void \hyperlink{class_main_window_a803c210fefa9d0416f1b1c6c9769aa40}{on\+\_\+btn\+Invert\+Threshold\+\_\+clicked} ()\label{class_main_window_a803c210fefa9d0416f1b1c6c9769aa40}
  66. \begin{DoxyCompactList}\small\item\em Para aplicar el filtro de umbral y cargar la imagen editada al G\+U\+I cuando el color del umbral es invertido. \end{DoxyCompactList}\item
  67. \hypertarget{class_main_window_ad5d0ca46a9061f5a22f84494de29f8d9}{}void \hyperlink{class_main_window_ad5d0ca46a9061f5a22f84494de29f8d9}{on\+\_\+btn\+Flip\+Image\+Horizontally\+\_\+clicked} ()\label{class_main_window_ad5d0ca46a9061f5a22f84494de29f8d9}
  68. \begin{DoxyCompactList}\small\item\em Para llamar al filtro de imagen flip horizontal. \end{DoxyCompactList}\item
  69. \hypertarget{class_main_window_aeb76bf75157cc088511193f8190d0d95}{}void \hyperlink{class_main_window_aeb76bf75157cc088511193f8190d0d95}{on\+\_\+btn\+Flip\+Image\+Vertically\+\_\+clicked} ()\label{class_main_window_aeb76bf75157cc088511193f8190d0d95}
  70. \begin{DoxyCompactList}\small\item\em Para llamar al filtro de imagen flip vertical. \end{DoxyCompactList}\item
  71. \hypertarget{class_main_window_aadc6d08a96c6003b94d29b254de97838}{}void \hyperlink{class_main_window_aadc6d08a96c6003b94d29b254de97838}{on\+\_\+btn\+Grey\+Scale\+Filter\+\_\+clicked} ()\label{class_main_window_aadc6d08a96c6003b94d29b254de97838}
  72. \begin{DoxyCompactList}\small\item\em Para llamar al filtro de imagen de escalas grises. \end{DoxyCompactList}\item
  73. \hypertarget{class_main_window_a4a615fae77ffcbb3ff634215be270590}{}void \hyperlink{class_main_window_a4a615fae77ffcbb3ff634215be270590}{on\+\_\+btn\+Revert\+Image\+\_\+clicked} ()\label{class_main_window_a4a615fae77ffcbb3ff634215be270590}
  74. \begin{DoxyCompactList}\small\item\em Para reajustar la imagen editada a la imagen original. \end{DoxyCompactList}\item
  75. \hypertarget{class_main_window_a4ff08d0fe0eca41750440ca1f4d9c768}{}void {\bfseries on\+\_\+action\+Load\+\_\+\+Image\+\_\+triggered} ()\label{class_main_window_a4ff08d0fe0eca41750440ca1f4d9c768}
  76. \item
  77. \hypertarget{class_main_window_a9064a0047e3e77e6d48ebb59bd711da4}{}void {\bfseries on\+\_\+action\+Save\+\_\+\+Image\+\_\+triggered} ()\label{class_main_window_a9064a0047e3e77e6d48ebb59bd711da4}
  78. \item
  79. \hypertarget{class_main_window_addb3dd1ec7fe84f4d8a7b63bc7431b5a}{}void {\bfseries on\+\_\+action\+Close\+\_\+\+Window\+\_\+triggered} ()\label{class_main_window_addb3dd1ec7fe84f4d8a7b63bc7431b5a}
  80. \item
  81. \hypertarget{class_main_window_aab8ca019ab84ef9c21ed9301abca6636}{}void {\bfseries on\+\_\+action\+Invert\+\_\+\+Threshold\+\_\+\+Colors\+\_\+triggered} ()\label{class_main_window_aab8ca019ab84ef9c21ed9301abca6636}
  82. \item
  83. \hypertarget{class_main_window_a78d8ae530c062adf68cd5d5d05d13320}{}void {\bfseries on\+\_\+action\+Flip\+\_\+\+Image\+\_\+\+Horizontally\+\_\+triggered} ()\label{class_main_window_a78d8ae530c062adf68cd5d5d05d13320}
  84. \item
  85. \hypertarget{class_main_window_aee732b0d048591cff1432aa7992ae474}{}void {\bfseries on\+\_\+action\+Flip\+\_\+\+Image\+\_\+\+Vertically\+\_\+triggered} ()\label{class_main_window_aee732b0d048591cff1432aa7992ae474}
  86. \item
  87. \hypertarget{class_main_window_a86de73fc655de25fc6bed09f8ee304a0}{}void {\bfseries on\+\_\+action\+Apply\+\_\+\+Grey\+\_\+\+Scale\+\_\+\+Filter\+\_\+triggered} ()\label{class_main_window_a86de73fc655de25fc6bed09f8ee304a0}
  88. \item
  89. \hypertarget{class_main_window_a579dbaf9e4684318a252f7bc471e2db8}{}void {\bfseries on\+\_\+action\+Revert\+\_\+\+Edited\+\_\+\+Image\+\_\+to\+\_\+\+Original\+\_\+triggered} ()\label{class_main_window_a579dbaf9e4684318a252f7bc471e2db8}
  90. \item
  91. \hypertarget{class_main_window_a7a83ec2aee41b85977c9a832de61346b}{}void {\bfseries on\+\_\+action\+Instructions\+\_\+triggered} ()\label{class_main_window_a7a83ec2aee41b85977c9a832de61346b}
  92. \item
  93. \hypertarget{class_main_window_ab39da572361126e8b2b47b55dd8a9f51}{}void {\bfseries apply\+Threshold\+Filter} ()\label{class_main_window_ab39da572361126e8b2b47b55dd8a9f51}
  94. \item
  95. \hypertarget{class_main_window_aeeabb8c67fc108c9df2b0da0d9674181}{}void {\bfseries instructions} ()\label{class_main_window_aeeabb8c67fc108c9df2b0da0d9674181}
  96. \item
  97. \hypertarget{class_main_window_aa2b30fce1731a2ba1818f60ee9dc45a4}{}void {\bfseries on\+\_\+threshold\+Slider\+\_\+slider\+Released} ()\label{class_main_window_aa2b30fce1731a2ba1818f60ee9dc45a4}
  98. \item
  99. \hypertarget{class_main_window_a097fcba797448372b19307a32ced737d}{}void {\bfseries on\+\_\+btn\+Load\+Image\+\_\+clicked} ()\label{class_main_window_a097fcba797448372b19307a32ced737d}
  100. \item
  101. \hypertarget{class_main_window_ad495b5030e61fb55b8ab95c5a3a559d6}{}void {\bfseries on\+\_\+btn\+Save\+Image\+\_\+clicked} ()\label{class_main_window_ad495b5030e61fb55b8ab95c5a3a559d6}
  102. \item
  103. \hypertarget{class_main_window_a9936e00b191c04ab938897cf13690dbe}{}void {\bfseries on\+\_\+chbox\+Threshold\+\_\+clicked} ()\label{class_main_window_a9936e00b191c04ab938897cf13690dbe}
  104. \item
  105. \hypertarget{class_main_window_a803c210fefa9d0416f1b1c6c9769aa40}{}void {\bfseries on\+\_\+btn\+Invert\+Threshold\+\_\+clicked} ()\label{class_main_window_a803c210fefa9d0416f1b1c6c9769aa40}
  106. \item
  107. \hypertarget{class_main_window_ad5d0ca46a9061f5a22f84494de29f8d9}{}void {\bfseries on\+\_\+btn\+Flip\+Image\+Horizontally\+\_\+clicked} ()\label{class_main_window_ad5d0ca46a9061f5a22f84494de29f8d9}
  108. \item
  109. \hypertarget{class_main_window_aeb76bf75157cc088511193f8190d0d95}{}void {\bfseries on\+\_\+btn\+Flip\+Image\+Vertically\+\_\+clicked} ()\label{class_main_window_aeb76bf75157cc088511193f8190d0d95}
  110. \item
  111. \hypertarget{class_main_window_aadc6d08a96c6003b94d29b254de97838}{}void {\bfseries on\+\_\+btn\+Grey\+Scale\+Filter\+\_\+clicked} ()\label{class_main_window_aadc6d08a96c6003b94d29b254de97838}
  112. \item
  113. \hypertarget{class_main_window_a4a615fae77ffcbb3ff634215be270590}{}void {\bfseries on\+\_\+btn\+Revert\+Image\+\_\+clicked} ()\label{class_main_window_a4a615fae77ffcbb3ff634215be270590}
  114. \end{DoxyCompactItemize}
  115. \subsection*{Atributos privados}
  116. \begin{DoxyCompactItemize}
  117. \item
  118. \hypertarget{class_main_window_a43606649aeaf9e561328935fca0cd1bf}{}Ui\+::\+Main\+Window $\ast$ {\bfseries ui}\label{class_main_window_a43606649aeaf9e561328935fca0cd1bf}
  119. \item
  120. \hypertarget{class_main_window_a4e3a604a9d31eae583a1935b5694af3b}{}Q\+Image {\bfseries original\+Image}\label{class_main_window_a4e3a604a9d31eae583a1935b5694af3b}
  121. \item
  122. \hypertarget{class_main_window_a958e3bd8b0adbd5675083198a25d35ab}{}Q\+Image {\bfseries edited\+Image}\label{class_main_window_a958e3bd8b0adbd5675083198a25d35ab}
  123. \item
  124. \hypertarget{class_main_window_a81fc322ea9d4bf48c690011789e7badf}{}bool {\bfseries invert\+Color}\label{class_main_window_a81fc322ea9d4bf48c690011789e7badf}
  125. \end{DoxyCompactItemize}
  126. \subsection{Documentación del constructor y destructor}
  127. \hypertarget{class_main_window_a8b244be8b7b7db1b08de2a2acb9409db}{}\index{Main\+Window@{Main\+Window}!Main\+Window@{Main\+Window}}
  128. \index{Main\+Window@{Main\+Window}!Main\+Window@{Main\+Window}}
  129. \subsubsection[{Main\+Window}]{\setlength{\rightskip}{0pt plus 5cm}Main\+Window\+::\+Main\+Window (
  130. \begin{DoxyParamCaption}
  131. \item[{Q\+Widget $\ast$}]{parent = {\ttfamily 0}}
  132. \end{DoxyParamCaption}
  133. )\hspace{0.3cm}{\ttfamily [explicit]}}\label{class_main_window_a8b244be8b7b7db1b08de2a2acb9409db}
  134. Constructor.
  135. Destructor. K\+E\+Y\+B\+O\+A\+R\+D S\+H\+O\+R\+T\+C\+U\+T\+S Loads a image with cmd + o Carga una imagen con cmd + o
  136. Saves a image with cmd + s Guarda una imagen con cmd + s
  137. Closes window with cmd + w Cierra la ventana con cmd + w
  138. Inverts threshold color with cmd + t Invierte el color umbral con cmd + t
  139. Flips horizontally a image with cmd + f Rota horizontalmente una imagen con cmd + f
  140. Flips vertically a image with cmd + v Rota verticalmente una imagen con cmd + v
  141. Applies greyscale filter to a image with cmd + g Aplica el filtro de tonos grises a una imagen con cmd + g
  142. 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
  143. Display the instructions with cmd + i Despliega las instrucciones con cmd + i
  144. \subsection{Documentación de las funciones miembro}
  145. \hypertarget{class_main_window_a92d8983ccdda1d49d2d9c6302e7aab52}{}\index{Main\+Window@{Main\+Window}!Gray\+Scale@{Gray\+Scale}}
  146. \index{Gray\+Scale@{Gray\+Scale}!Main\+Window@{Main\+Window}}
  147. \subsubsection[{Gray\+Scale}]{\setlength{\rightskip}{0pt plus 5cm}void Main\+Window\+::\+Gray\+Scale (
  148. \begin{DoxyParamCaption}
  149. \item[{Q\+Image \&}]{edited\+Image}
  150. \end{DoxyParamCaption}
  151. )}\label{class_main_window_a92d8983ccdda1d49d2d9c6302e7aab52}
  152. Funcion que aplica un filtro de escala gris en la imagen editada. Funciona cambiando cada pixel a un tono de color gris.
  153. 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.
  154. \begin{DoxyParams}{Parámetros}
  155. {\em original\+Image} & Referencia a la imagen original (sin filtro) \\
  156. \hline
  157. {\em edited\+Image} & Referencia a la imagen destino con el filtro aplicado. \\
  158. \hline
  159. \end{DoxyParams}
  160. \hypertarget{class_main_window_a6827de64beb6250700e8bafc005379c4}{}\index{Main\+Window@{Main\+Window}!Horizontal\+Flip@{Horizontal\+Flip}}
  161. \index{Horizontal\+Flip@{Horizontal\+Flip}!Main\+Window@{Main\+Window}}
  162. \subsubsection[{Horizontal\+Flip}]{\setlength{\rightskip}{0pt plus 5cm}void Main\+Window\+::\+Horizontal\+Flip (
  163. \begin{DoxyParamCaption}
  164. \item[{Q\+Image \&}]{edited\+Image}
  165. \end{DoxyParamCaption}
  166. )}\label{class_main_window_a6827de64beb6250700e8bafc005379c4}
  167. 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.
  168. 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.
  169. \begin{DoxyParams}{Parámetros}
  170. {\em edited\+Image} & Referencia a la imagen destino con el filtro aplicado. \\
  171. \hline
  172. \end{DoxyParams}
  173. \hypertarget{class_main_window_a4ff08d0fe0eca41750440ca1f4d9c768}{}\index{Main\+Window@{Main\+Window}!on\+\_\+action\+Load\+\_\+\+Image\+\_\+triggered@{on\+\_\+action\+Load\+\_\+\+Image\+\_\+triggered}}
  174. \index{on\+\_\+action\+Load\+\_\+\+Image\+\_\+triggered@{on\+\_\+action\+Load\+\_\+\+Image\+\_\+triggered}!Main\+Window@{Main\+Window}}
  175. \subsubsection[{on\+\_\+action\+Load\+\_\+\+Image\+\_\+triggered}]{\setlength{\rightskip}{0pt plus 5cm}void Main\+Window\+::on\+\_\+action\+Load\+\_\+\+Image\+\_\+triggered (
  176. \begin{DoxyParamCaption}
  177. {}
  178. \end{DoxyParamCaption}
  179. )\hspace{0.3cm}{\ttfamily [private]}, {\ttfamily [slot]}}\label{class_main_window_a4ff08d0fe0eca41750440ca1f4d9c768}
  180. Invoca la funcion \hyperlink{class_main_window_a097fcba797448372b19307a32ced737d}{on\+\_\+btn\+Load\+Image\+\_\+clicked()}
  181. A\+C\+T\+I\+O\+N F\+U\+N\+C\+T\+I\+O\+N\+S \hypertarget{class_main_window_a4fc39fdbaf9fb6a3f551eea7c4e3c9ae}{}\index{Main\+Window@{Main\+Window}!Threshold\+Filter@{Threshold\+Filter}}
  182. \index{Threshold\+Filter@{Threshold\+Filter}!Main\+Window@{Main\+Window}}
  183. \subsubsection[{Threshold\+Filter}]{\setlength{\rightskip}{0pt plus 5cm}void Main\+Window\+::\+Threshold\+Filter (
  184. \begin{DoxyParamCaption}
  185. \item[{Q\+Image \&}]{original\+Image, }
  186. \item[{Q\+Image \&}]{edited\+Image, }
  187. \item[{unsigned int}]{threshold, }
  188. \item[{bool}]{color}
  189. \end{DoxyParamCaption}
  190. )}\label{class_main_window_a4fc39fdbaf9fb6a3f551eea7c4e3c9ae}
  191. 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.
  192. \begin{DoxyParams}{Parámetros}
  193. {\em original\+Image} & Referencia a la imagen original (sin filtro) \\
  194. \hline
  195. {\em edited\+Image} & Referencia a la imagen destino con el filtro aplicado. \\
  196. \hline
  197. {\em threshold} & Intero que sirve como un umbral de color entre blanco y negro \\
  198. \hline
  199. {\em color} & Booleano para seleccionar que color blanco o negro si el promedio del color esta bajo o sobre el umbral.\\
  200. \hline
  201. \end{DoxyParams}
  202. 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. \hypertarget{class_main_window_a3d4e0cc1efd8a430d0a07901a9da96ae}{}\index{Main\+Window@{Main\+Window}!Vertical\+Flip@{Vertical\+Flip}}
  203. \index{Vertical\+Flip@{Vertical\+Flip}!Main\+Window@{Main\+Window}}
  204. \subsubsection[{Vertical\+Flip}]{\setlength{\rightskip}{0pt plus 5cm}void Main\+Window\+::\+Vertical\+Flip (
  205. \begin{DoxyParamCaption}
  206. \item[{Q\+Image \&}]{edited\+Image}
  207. \end{DoxyParamCaption}
  208. )}\label{class_main_window_a3d4e0cc1efd8a430d0a07901a9da96ae}
  209. 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.
  210. 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.
  211. \begin{DoxyParams}{Parámetros}
  212. {\em edited\+Image} & Referencia a la imagen destino con el filtro aplicado. \\
  213. \hline
  214. \end{DoxyParams}
  215. La documentación para esta clase fue generada a partir de los siguientes ficheros\+:\begin{DoxyCompactItemize}
  216. \item
  217. bk/mainwindow.\+h\item
  218. bk/mainwindow.\+cpp\item
  219. filter.\+cpp\end{DoxyCompactItemize}