iVS3D v2.0.0
Loading...
Searching...
No Matches
CropExport Class Reference

The CropExport class is which will open a QDialog on which an roi can be selected. More...

#include <cropexport.h>

Inheritance diagram for CropExport:

Public Member Functions

 CropExport (QWidget *parent, const cv::Mat *img, QRect roi)
 CropExport Constructor which will show the given image and draw the given QRect on it, if it isn't a 0 QRect.
 
void triggerResize ()
 triggerResize triggers the Resize slot
 
QRect getROI ()
 Cuts the drawn QRect to the image borders and returns the modified QRect.
 

Detailed Description

The CropExport class is which will open a QDialog on which an roi can be selected.

Author
Daniel Brommer
Date
2021/03/29

Constructor & Destructor Documentation

◆ CropExport()

CropExport::CropExport ( QWidget *  parent,
const cv::Mat *  img,
QRect  roi 
)

CropExport Constructor which will show the given image and draw the given QRect on it, if it isn't a 0 QRect.

Parameters
imgImage to be shown
roiQRect to be drawn

Member Function Documentation

◆ getROI()

QRect CropExport::getROI ( )

Cuts the drawn QRect to the image borders and returns the modified QRect.

Returns
QRect with the user selected roi

The documentation for this class was generated from the following files: