iVS3D v2.0.9
Loading...
Searching...
No Matches
maskmergecommand.h
1#ifndef MASKMERGECOMMAND_H
2#define MASKMERGECOMMAND_H
3
4#include <QString>
5#include <vector>
6#include <optional>
7
8#include "imageprocessor.h"
9
25public:
26 MaskMergeCommand(QString folderPath, QString format,
27 std::vector<std::string> files = {});
28
29 std::optional<QString> execute(ImageContext& ctx) override;
30
31private:
32 QString maskFilePathForIndex(uint index) const;
33 static cv::Mat toBinaryMask(const cv::Mat& input);
34
35 QString m_folder;
36 QString m_format;
37 std::vector<std::string> m_files;
38};
39
40#endif // MASKMERGECOMMAND_H
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
Loads an existing mask image from disk and merges it with the current mask in the context using pixel...
Definition maskmergecommand.h:24