5#include "opencv2/core.hpp"
6#include "opencv2/imgproc.hpp"
7#include "ui_cropexport.h"
8#include "view/roiselect.h"
9#include <QGraphicsProxyWidget>
11#include <QGraphicsScene>
12#include <QGraphicsSceneMouseEvent>
13#include <QGraphicsItem>
36 explicit CropExport(QWidget *parent =
nullptr);
43 CropExport(QWidget *parent,
const cv::Mat* img, QRect roi);
56 void resizeEvent(QResizeEvent *);
60 void slot_mousePress(QGraphicsSceneMouseEvent *mouseEvent);
61 void slot_mouseMove(QGraphicsSceneMouseEvent *mouseEvent);
64 void on_pushButton_abort_clicked();
65 void on_pushButton_crop_clicked();
69 void setSavedROI(QRect roi);
70 QImage qImageFromCvMat(
const cv::Mat *input,
bool bgr);
75 QGraphicsRectItem* m_rect =
nullptr;
The CropExport class is which will open a QDialog on which an roi can be selected.
Definition cropexport.h:32
QRect getROI()
Cuts the drawn QRect to the image borders and returns the modified QRect.
Definition cropexport.cpp:61
void triggerResize()
triggerResize triggers the Resize slot
Definition cropexport.cpp:52
The roiSelect class provides the visual interface for the user to select a ROI and signals this inter...
Definition roiselect.h:18