iVS3D v2.0.0
Loading...
Searching...
No Matches
cropcommand.h
1#ifndef CROPCOMMAND_H
2#define CROPCOMMAND_H
3
4#include <opencv2/core.hpp>
5#include <opencv2/imgcodecs.hpp>
6#include <opencv2/imgproc.hpp>
7
8#include <QString>
9#include <QDir>
10#include <QRect>
11
12#include <vector>
13#include <memory>
14#include <optional>
15
16#include "modelinputpictures.h"
17#include "metadatareader.h"
18#include "imageprocessor.h"
19
20class CropCommand : public ImageCommand {
21 cv::Rect roi;
22
23public:
24 CropCommand(QRect roi);
25 std::optional<QString> execute(ImageContext &ctx) override;
26};
27
28#endif //CROPCOMMAND_H
Definition cropcommand.h:20
The ImageCommand class is an abstract interface for commands regarding image operations such as resiz...
Definition imageprocessor.h:33
The ImageContext class provides contetx information for executing ImageCommands. This data can be mod...
Definition imageprocessor.h:22