mainwindow.h 698 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3. #include <QMainWindow>
  4. #include <opencv2/video/tracking.hpp>
  5. #include <opencv2/imgproc/imgproc.hpp>
  6. #include <opencv2/highgui/highgui.hpp>
  7. using namespace cv;
  8. namespace Ui {
  9. class MainWindow;
  10. }
  11. class MainWindow : public QMainWindow
  12. {
  13. Q_OBJECT
  14. public:
  15. explicit MainWindow(QWidget *parent = nullptr);
  16. ~MainWindow();
  17. Mat zoomIn(int x, int y);
  18. Mat zoomOut(int x, int y);
  19. void onMouse( int event, int x, int y, int /*flags*/, void* /*param*/ );
  20. void info(void);
  21. Mat imagenOriginal, imagen, imagenMostrar;
  22. int zoomRec = 200;
  23. int mousex, mousey;
  24. private:
  25. Ui::MainWindow *ui;
  26. };
  27. #endif // MAINWINDOW_H