iVS3D
v2.0.0
Loading...
Searching...
No Matches
writetodiskcommand.h
1
#ifndef WRITETODISKCOMMAND_H
2
#define WRITETODISKCOMMAND_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 "reader.h"
17
#include "imageprocessor.h"
18
19
class
WriteToDiskCommand
:
public
ImageCommand
{
20
QString folder;
21
QString prefix;
22
QString format;
23
std::vector<std::string> files;
24
bool
initialized;
25
26
bool
ensureFolderExists();
27
28
public
:
29
WriteToDiskCommand
(QString folderpath, QString prefix =
""
, QString format =
"png"
, std::vector<std::string> files = {});
30
std::optional<QString> execute(
ImageContext
&ctx)
override
;
31
};
32
33
#endif
//WRITETODISKCOMMAND_H
ImageCommand
The ImageCommand class is an abstract interface for commands regarding image operations such as resiz...
Definition
imageprocessor.h:33
ImageContext
The ImageContext class provides contetx information for executing ImageCommands. This data can be mod...
Definition
imageprocessor.h:22
WriteToDiskCommand
Definition
writetodiskcommand.h:19
iVS3D
src
iVS3D-core
model
export
writetodiskcommand.h
Generated by
1.9.8