Няма описание

class_main_window.tex 8.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. \hypertarget{class_main_window}{}\section{Main\+Window Class Reference}
  2. \label{class_main_window}\index{Main\+Window@{Main\+Window}}
  3. Inheritance diagram for 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*{Public Member Functions}
  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_a1ef271ff94a2ae4a2e2d4ddc5f78f7e6}{Pixel\+Sort} (vector$<$ Q\+Rgb $>$ \&pixels)
  15. \begin{DoxyCompactList}\small\item\em Function that sorts pixels using Selection Sort. \end{DoxyCompactList}\item
  16. void \hyperlink{class_main_window_acb4d4a3692e9edf987f35b21edf1427d}{Remove\+Noise} (Q\+Image \&final\+Image, const vector$<$ Q\+Image $>$ \&images)
  17. \begin{DoxyCompactList}\small\item\em Function that removes the noise from a set of images. For each position (i,j) of the pixels, insert the pixel in that position of each of the images in a pixels vector, sort the pixel vector, and finally set the median pixel to the new image in position (i,j) \end{DoxyCompactList}\end{DoxyCompactItemize}
  18. \subsection*{Private Slots}
  19. \begin{DoxyCompactItemize}
  20. \item
  21. \hypertarget{class_main_window_a50277f5201555db09f53f5c721aedeea}{}void \hyperlink{class_main_window_a50277f5201555db09f53f5c721aedeea}{on\+\_\+btn\+Load\+Images\+\_\+clicked} ()\label{class_main_window_a50277f5201555db09f53f5c721aedeea}
  22. \begin{DoxyCompactList}\small\item\em Function that sets an image to a given label. \end{DoxyCompactList}\item
  23. \hypertarget{class_main_window_aae2244407f60009048a97972eaa9d2a8}{}void \hyperlink{class_main_window_aae2244407f60009048a97972eaa9d2a8}{on\+\_\+btn\+Remove\+Noise\+\_\+clicked} ()\label{class_main_window_aae2244407f60009048a97972eaa9d2a8}
  24. \begin{DoxyCompactList}\small\item\em Function that invokes the function that removes the noise from the images and set the returned image in the G\+U\+I. \end{DoxyCompactList}\item
  25. \hypertarget{class_main_window_ad495b5030e61fb55b8ab95c5a3a559d6}{}void \hyperlink{class_main_window_ad495b5030e61fb55b8ab95c5a3a559d6}{on\+\_\+btn\+Save\+Image\+\_\+clicked} ()\label{class_main_window_ad495b5030e61fb55b8ab95c5a3a559d6}
  26. \begin{DoxyCompactList}\small\item\em Function that saves the image without noise in the computer. \end{DoxyCompactList}\item
  27. \hypertarget{class_main_window_ab37ac3fb919fcbb12543a5c25813e5a6}{}void \hyperlink{class_main_window_ab37ac3fb919fcbb12543a5c25813e5a6}{on\+\_\+act\+Load\+\_\+\+Images\+\_\+triggered} ()\label{class_main_window_ab37ac3fb919fcbb12543a5c25813e5a6}
  28. \begin{DoxyCompactList}\small\item\em Call \hyperlink{class_main_window_a50277f5201555db09f53f5c721aedeea}{on\+\_\+btn\+Load\+Images\+\_\+clicked()} from the buttons. \end{DoxyCompactList}\item
  29. \hypertarget{class_main_window_ab6f80eeb70e84d0ae1295bd79a546468}{}void \hyperlink{class_main_window_ab6f80eeb70e84d0ae1295bd79a546468}{on\+\_\+act\+Remove\+Noise\+\_\+triggered} ()\label{class_main_window_ab6f80eeb70e84d0ae1295bd79a546468}
  30. \begin{DoxyCompactList}\small\item\em Call \hyperlink{class_main_window_aae2244407f60009048a97972eaa9d2a8}{on\+\_\+btn\+Remove\+Noise\+\_\+clicked()} from the buttons. \end{DoxyCompactList}\item
  31. \hypertarget{class_main_window_a5939455a2e03188852db2182a0247f18}{}void \hyperlink{class_main_window_a5939455a2e03188852db2182a0247f18}{on\+\_\+act\+Save\+Image\+\_\+triggered} ()\label{class_main_window_a5939455a2e03188852db2182a0247f18}
  32. \begin{DoxyCompactList}\small\item\em Call \hyperlink{class_main_window_a5939455a2e03188852db2182a0247f18}{on\+\_\+act\+Save\+Image\+\_\+triggered()} from the buttons. \end{DoxyCompactList}\end{DoxyCompactItemize}
  33. \subsection*{Private Member Functions}
  34. \begin{DoxyCompactItemize}
  35. \item
  36. void \hyperlink{class_main_window_a0e9e12ec3c93d49b12559ccf1d8fbb52}{load\+Images} (vector$<$ Q\+Image $>$ \&, Q\+String)
  37. \begin{DoxyCompactList}\small\item\em Function that loads multiple images from a directory path. \end{DoxyCompactList}\end{DoxyCompactItemize}
  38. \subsection*{Private Attributes}
  39. \begin{DoxyCompactItemize}
  40. \item
  41. \hypertarget{class_main_window_a35466a70ed47252a0191168126a352a5}{}Ui\+::\+Main\+Window $\ast$ {\bfseries ui}\label{class_main_window_a35466a70ed47252a0191168126a352a5}
  42. \item
  43. \hypertarget{class_main_window_acf4a478c904743c5739eaea26c329271}{}Q\+Image {\bfseries final\+Image}\label{class_main_window_acf4a478c904743c5739eaea26c329271}
  44. \item
  45. \hypertarget{class_main_window_a9e8eec97dd2fc09af9141de7e262d343}{}vector$<$ Q\+Image $>$ {\bfseries images}\label{class_main_window_a9e8eec97dd2fc09af9141de7e262d343}
  46. \end{DoxyCompactItemize}
  47. \subsection{Constructor \& Destructor Documentation}
  48. \hypertarget{class_main_window_a8b244be8b7b7db1b08de2a2acb9409db}{}\index{Main\+Window@{Main\+Window}!Main\+Window@{Main\+Window}}
  49. \index{Main\+Window@{Main\+Window}!Main\+Window@{Main\+Window}}
  50. \subsubsection[{Main\+Window}]{\setlength{\rightskip}{0pt plus 5cm}Main\+Window\+::\+Main\+Window (
  51. \begin{DoxyParamCaption}
  52. \item[{Q\+Widget $\ast$}]{parent = {\ttfamily 0}}
  53. \end{DoxyParamCaption}
  54. )\hspace{0.3cm}{\ttfamily [explicit]}}\label{class_main_window_a8b244be8b7b7db1b08de2a2acb9409db}
  55. Constructor.
  56. Destructor. Keyboard shortcuts Atajos del teclado
  57. Closes window with cmd + w Cierra la ventana con cmd + w
  58. Loads a image with cmd + o Carga una imagen con cmd + o
  59. Removes noise from a image with cmd + r Remueve el ruido de una imagen con cmd + r
  60. Saves an image without noise with cmd + s Guarda una imagen sin ruido con cmd + s
  61. \subsection{Member Function Documentation}
  62. \hypertarget{class_main_window_a0e9e12ec3c93d49b12559ccf1d8fbb52}{}\index{Main\+Window@{Main\+Window}!load\+Images@{load\+Images}}
  63. \index{load\+Images@{load\+Images}!Main\+Window@{Main\+Window}}
  64. \subsubsection[{load\+Images}]{\setlength{\rightskip}{0pt plus 5cm}void Main\+Window\+::load\+Images (
  65. \begin{DoxyParamCaption}
  66. \item[{vector$<$ Q\+Image $>$ \&}]{images, }
  67. \item[{Q\+String}]{path}
  68. \end{DoxyParamCaption}
  69. )\hspace{0.3cm}{\ttfamily [private]}}\label{class_main_window_a0e9e12ec3c93d49b12559ccf1d8fbb52}
  70. Function that loads multiple images from a directory path.
  71. \begin{DoxyParams}{Parameters}
  72. {\em images} & image vector for images with noise. \\
  73. \hline
  74. {\em path} & path of the directory with the images to load. \\
  75. \hline
  76. \end{DoxyParams}
  77. \hypertarget{class_main_window_a1ef271ff94a2ae4a2e2d4ddc5f78f7e6}{}\index{Main\+Window@{Main\+Window}!Pixel\+Sort@{Pixel\+Sort}}
  78. \index{Pixel\+Sort@{Pixel\+Sort}!Main\+Window@{Main\+Window}}
  79. \subsubsection[{Pixel\+Sort}]{\setlength{\rightskip}{0pt plus 5cm}void Main\+Window\+::\+Pixel\+Sort (
  80. \begin{DoxyParamCaption}
  81. \item[{vector$<$ Q\+Rgb $>$ \&}]{pixels}
  82. \end{DoxyParamCaption}
  83. )}\label{class_main_window_a1ef271ff94a2ae4a2e2d4ddc5f78f7e6}
  84. Function that sorts pixels using Selection Sort.
  85. \begin{DoxyParams}{Parameters}
  86. {\em pixels} & pixels vector \\
  87. \hline
  88. \end{DoxyParams}
  89. \hypertarget{class_main_window_acb4d4a3692e9edf987f35b21edf1427d}{}\index{Main\+Window@{Main\+Window}!Remove\+Noise@{Remove\+Noise}}
  90. \index{Remove\+Noise@{Remove\+Noise}!Main\+Window@{Main\+Window}}
  91. \subsubsection[{Remove\+Noise}]{\setlength{\rightskip}{0pt plus 5cm}void Main\+Window\+::\+Remove\+Noise (
  92. \begin{DoxyParamCaption}
  93. \item[{Q\+Image \&}]{final\+Image, }
  94. \item[{const vector$<$ Q\+Image $>$ \&}]{images}
  95. \end{DoxyParamCaption}
  96. )}\label{class_main_window_acb4d4a3692e9edf987f35b21edf1427d}
  97. Function that removes the noise from a set of images. For each position (i,j) of the pixels, insert the pixel in that position of each of the images in a pixels vector, sort the pixel vector, and finally set the median pixel to the new image in position (i,j)
  98. \begin{DoxyParams}{Parameters}
  99. {\em final\+Image} & Image with the noise removed \\
  100. \hline
  101. {\em images} & Vector of images to remove the noise \\
  102. \hline
  103. \end{DoxyParams}
  104. The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
  105. \item
  106. mainwindow.\+h\item
  107. Filter.\+cpp\item
  108. mainwindow.\+cpp\end{DoxyCompactItemize}