My Project
MergePanel.h
1 #ifndef MAINWINDOW_H
2 #define MAINWINDOW_H
3 
4 #include <QMainWindow>
5 #include <QFileDialog>
6 #include <QDir>
7 #include <QMessageBox>
8 #include <QShortcut>
9 #include <QImage>
10 #include <QDebug>
11 #include <cmath>
12 
19 
20 namespace Ui {
21 class MainWindow;
22 }
23 
24 class MainWindow : public QMainWindow
25 {
26  Q_OBJECT
27 
28 public:
34  explicit MainWindow(QWidget *parent = 0);
35 
43  void MergeImages(const QImage &, const QImage &, QImage &, int, bool=false, int=0, int=0, int=0, int=0) ;
44 
50  ~MainWindow();
51 
52 private slots:
60  void on_ghostBox_clicked();
61 
68 
75 
84 
93 
99  void Mouse_Pressed();
100 
106  void Mouse_PressedBackground() ;
107 
114 
115 private:
116  Ui::MainWindow *ui;
117  QImage originalImage;
118  QImage backgroundImage;
119  QImage mergedImage;
120 };
121 
122 #endif // MAINWINDOW_H
Definition: MergePanel.h:20
~MainWindow()
Destructor for the MainWindow.
Definition: MergePanel.cpp:47
void on_btnSelectBackground_clicked()
Display the file browsing window to load a background image.
Definition: MergePanel.cpp:75
void on_btnSaveImage_clicked()
Displays the file browse window to choose the path to save the merged image in the file system...
Definition: MergePanel.cpp:113
void on_btnSelectImage_clicked()
Display the file browsing window to load an image. (Green Background)
Definition: MergePanel.cpp:56
void MergeImages(const QImage &, const QImage &, QImage &, int, bool=false, int=0, int=0, int=0, int=0)
Funcion that merges two images together. It takes an image with any background color and puts it in a...
Definition: Filter.cpp:13
MainWindow(QWidget *parent=0)
Default Constructor for the MainWindow.
Definition: MergePanel.cpp:12
void on_btnMergeImages_clicked()
Invokes the function that merges the green screen image with the background image, then displays the merged image.
Definition: MergePanel.cpp:96
void Mouse_Pressed()
Function that gets the coordinates of the image with the greenscreen.
Definition: MergePanel.cpp:126
Definition: MergePanel.h:24
void on_ghostBox_clicked()
Funtion that invokes the thresholdSlider function and creates a ghost version of the image with green...
Definition: MergePanel.cpp:179
void on_thresholdSlider_actionTriggered()
Invokes the function that merges the green screen image with the background image.
Definition: MergePanel.cpp:164