My Project
mainwindow.h
1 #ifndef MAINWINDOW_H
2 #define MAINWINDOW_H
3 
4 #include <QMainWindow>
5 #include <QFileDialog>
6 #include <QDir>
7 #include <QMessageBox>
8 #include <QImage>
9 
10 using namespace std;
11 
12 
13 //void RemoveNoise(QImage &, const vector<QImage> &) ;
14 
15 namespace Ui {
16  class MainWindow;
17 }
18 
19 class MainWindow : public QMainWindow{
20  Q_OBJECT
21 
22  public:
23 
29  explicit MainWindow(QWidget *parent = 0);
30 
38  void PixelSort(vector<QRgb> &pixels);
39 
53  void RemoveNoise(QImage & finalImage, const vector<QImage> & images);
54 
60  ~MainWindow();
61 
62  private slots:
63 
69  void on_btnLoadImages_clicked();
70 
78  void on_btnRemoveNoise_clicked();
79 
85  void on_btnSaveImage_clicked();
86 
92  void on_actLoad_Images_triggered();
93 
99  void on_actRemoveNoise_triggered();
100 
106  void on_actSaveImage_triggered();
107 
108  private:
109  Ui::MainWindow *ui;
110 
111  QImage finalImage;
112 
113  // Vectors that contain the image and its values
114  vector<QImage> images;
115 
125  void loadImages(vector<QImage> & , QString);
126 };
127 
128 #endif // MAINWINDOW_H
Definition: dialog.h:9
Definition: mainwindow.h:19