\hypertarget{class_main_window}{}\section{Main\+Window Class Reference}
\label{class_main_window}\index{Main\+Window@{Main\+Window}}
Inheritance diagram for Main\+Window\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_main_window}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_main_window_a8b244be8b7b7db1b08de2a2acb9409db}{Main\+Window} (Q\+Widget $\ast$parent=0)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
void \hyperlink{class_main_window_a1ef271ff94a2ae4a2e2d4ddc5f78f7e6}{Pixel\+Sort} (vector$<$ Q\+Rgb $>$ \&pixels)
\begin{DoxyCompactList}\small\item\em Function that sorts pixels using Selection Sort. \end{DoxyCompactList}\item 
void \hyperlink{class_main_window_acb4d4a3692e9edf987f35b21edf1427d}{Remove\+Noise} (Q\+Image \&final\+Image, const vector$<$ Q\+Image $>$ \&images)
\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}
\subsection*{Private Slots}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_main_window_a50277f5201555db09f53f5c721aedeea}{}void \hyperlink{class_main_window_a50277f5201555db09f53f5c721aedeea}{on\+\_\+btn\+Load\+Images\+\_\+clicked} ()\label{class_main_window_a50277f5201555db09f53f5c721aedeea}

\begin{DoxyCompactList}\small\item\em Function that sets an image to a given label. \end{DoxyCompactList}\item 
\hypertarget{class_main_window_aae2244407f60009048a97972eaa9d2a8}{}void \hyperlink{class_main_window_aae2244407f60009048a97972eaa9d2a8}{on\+\_\+btn\+Remove\+Noise\+\_\+clicked} ()\label{class_main_window_aae2244407f60009048a97972eaa9d2a8}

\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 
\hypertarget{class_main_window_ad495b5030e61fb55b8ab95c5a3a559d6}{}void \hyperlink{class_main_window_ad495b5030e61fb55b8ab95c5a3a559d6}{on\+\_\+btn\+Save\+Image\+\_\+clicked} ()\label{class_main_window_ad495b5030e61fb55b8ab95c5a3a559d6}

\begin{DoxyCompactList}\small\item\em Function that saves the image without noise in the computer. \end{DoxyCompactList}\item 
\hypertarget{class_main_window_ab37ac3fb919fcbb12543a5c25813e5a6}{}void \hyperlink{class_main_window_ab37ac3fb919fcbb12543a5c25813e5a6}{on\+\_\+act\+Load\+\_\+\+Images\+\_\+triggered} ()\label{class_main_window_ab37ac3fb919fcbb12543a5c25813e5a6}

\begin{DoxyCompactList}\small\item\em Call \hyperlink{class_main_window_a50277f5201555db09f53f5c721aedeea}{on\+\_\+btn\+Load\+Images\+\_\+clicked()} from the buttons. \end{DoxyCompactList}\item 
\hypertarget{class_main_window_ab6f80eeb70e84d0ae1295bd79a546468}{}void \hyperlink{class_main_window_ab6f80eeb70e84d0ae1295bd79a546468}{on\+\_\+act\+Remove\+Noise\+\_\+triggered} ()\label{class_main_window_ab6f80eeb70e84d0ae1295bd79a546468}

\begin{DoxyCompactList}\small\item\em Call \hyperlink{class_main_window_aae2244407f60009048a97972eaa9d2a8}{on\+\_\+btn\+Remove\+Noise\+\_\+clicked()} from the buttons. \end{DoxyCompactList}\item 
\hypertarget{class_main_window_a5939455a2e03188852db2182a0247f18}{}void \hyperlink{class_main_window_a5939455a2e03188852db2182a0247f18}{on\+\_\+act\+Save\+Image\+\_\+triggered} ()\label{class_main_window_a5939455a2e03188852db2182a0247f18}

\begin{DoxyCompactList}\small\item\em Call \hyperlink{class_main_window_a5939455a2e03188852db2182a0247f18}{on\+\_\+act\+Save\+Image\+\_\+triggered()} from the buttons. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{class_main_window_a0e9e12ec3c93d49b12559ccf1d8fbb52}{load\+Images} (vector$<$ Q\+Image $>$ \&, Q\+String)
\begin{DoxyCompactList}\small\item\em Function that loads multiple images from a directory path. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_main_window_a35466a70ed47252a0191168126a352a5}{}Ui\+::\+Main\+Window $\ast$ {\bfseries ui}\label{class_main_window_a35466a70ed47252a0191168126a352a5}

\item 
\hypertarget{class_main_window_acf4a478c904743c5739eaea26c329271}{}Q\+Image {\bfseries final\+Image}\label{class_main_window_acf4a478c904743c5739eaea26c329271}

\item 
\hypertarget{class_main_window_a9e8eec97dd2fc09af9141de7e262d343}{}vector$<$ Q\+Image $>$ {\bfseries images}\label{class_main_window_a9e8eec97dd2fc09af9141de7e262d343}

\end{DoxyCompactItemize}


\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_main_window_a8b244be8b7b7db1b08de2a2acb9409db}{}\index{Main\+Window@{Main\+Window}!Main\+Window@{Main\+Window}}
\index{Main\+Window@{Main\+Window}!Main\+Window@{Main\+Window}}
\subsubsection[{Main\+Window}]{\setlength{\rightskip}{0pt plus 5cm}Main\+Window\+::\+Main\+Window (
\begin{DoxyParamCaption}
\item[{Q\+Widget $\ast$}]{parent = {\ttfamily 0}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [explicit]}}\label{class_main_window_a8b244be8b7b7db1b08de2a2acb9409db}


Constructor. 

Destructor. Keyboard shortcuts Atajos del teclado

Closes window with cmd + w Cierra la ventana con cmd + w

Loads a image with cmd + o Carga una imagen con cmd + o

Removes noise from a image with cmd + r Remueve el ruido de una imagen con cmd + r

Saves an image without noise with cmd + s Guarda una imagen sin ruido con cmd + s 

\subsection{Member Function Documentation}
\hypertarget{class_main_window_a0e9e12ec3c93d49b12559ccf1d8fbb52}{}\index{Main\+Window@{Main\+Window}!load\+Images@{load\+Images}}
\index{load\+Images@{load\+Images}!Main\+Window@{Main\+Window}}
\subsubsection[{load\+Images}]{\setlength{\rightskip}{0pt plus 5cm}void Main\+Window\+::load\+Images (
\begin{DoxyParamCaption}
\item[{vector$<$ Q\+Image $>$ \&}]{images, }
\item[{Q\+String}]{path}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [private]}}\label{class_main_window_a0e9e12ec3c93d49b12559ccf1d8fbb52}


Function that loads multiple images from a directory path. 


\begin{DoxyParams}{Parameters}
{\em images} & image vector for images with noise. \\
\hline
{\em path} & path of the directory with the images to load. \\
\hline
\end{DoxyParams}
\hypertarget{class_main_window_a1ef271ff94a2ae4a2e2d4ddc5f78f7e6}{}\index{Main\+Window@{Main\+Window}!Pixel\+Sort@{Pixel\+Sort}}
\index{Pixel\+Sort@{Pixel\+Sort}!Main\+Window@{Main\+Window}}
\subsubsection[{Pixel\+Sort}]{\setlength{\rightskip}{0pt plus 5cm}void Main\+Window\+::\+Pixel\+Sort (
\begin{DoxyParamCaption}
\item[{vector$<$ Q\+Rgb $>$ \&}]{pixels}
\end{DoxyParamCaption}
)}\label{class_main_window_a1ef271ff94a2ae4a2e2d4ddc5f78f7e6}


Function that sorts pixels using Selection Sort. 


\begin{DoxyParams}{Parameters}
{\em pixels} & pixels vector \\
\hline
\end{DoxyParams}
\hypertarget{class_main_window_acb4d4a3692e9edf987f35b21edf1427d}{}\index{Main\+Window@{Main\+Window}!Remove\+Noise@{Remove\+Noise}}
\index{Remove\+Noise@{Remove\+Noise}!Main\+Window@{Main\+Window}}
\subsubsection[{Remove\+Noise}]{\setlength{\rightskip}{0pt plus 5cm}void Main\+Window\+::\+Remove\+Noise (
\begin{DoxyParamCaption}
\item[{Q\+Image \&}]{final\+Image, }
\item[{const vector$<$ Q\+Image $>$ \&}]{images}
\end{DoxyParamCaption}
)}\label{class_main_window_acb4d4a3692e9edf987f35b21edf1427d}


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) 


\begin{DoxyParams}{Parameters}
{\em final\+Image} & Image with the noise removed \\
\hline
{\em images} & Vector of images to remove the noise \\
\hline
\end{DoxyParams}


The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
mainwindow.\+h\item 
Filter.\+cpp\item 
mainwindow.\+cpp\end{DoxyCompactItemize}
