summaryrefslogtreecommitdiffhomepage
path: root/wall-tileset-tool/main.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-11-27 09:59:46 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-11-27 09:59:46 +0100
commit8171d7f7cbc097c58a2097e14ce814d6a97d54bf (patch)
treec47d6e8b2dd7af82db0fa7c4cbfd19266986ec38 /wall-tileset-tool/main.hpp
parent5f3d184276f6b4e13642018681cf33d2bc5b7638 (diff)
a
Diffstat (limited to 'wall-tileset-tool/main.hpp')
-rw-r--r--wall-tileset-tool/main.hpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/wall-tileset-tool/main.hpp b/wall-tileset-tool/main.hpp
index d6403ccf..2dbf25df 100644
--- a/wall-tileset-tool/main.hpp
+++ b/wall-tileset-tool/main.hpp
@@ -1,15 +1,7 @@
#pragma once
#include "src/wall-atlas.hpp"
-
-namespace cv {
-template<typename T> class Mat_;
-template<typename T, int cn> class Vec;
-typedef Vec<unsigned char, 3> Vec3b;
-typedef Vec<unsigned char, 4> Vec4b;
-typedef Mat_<unsigned char> Mat1b;
-typedef Mat_<Vec3b> Mat3b;
-typedef Mat_<Vec4b> Mat4b;
-} // namespace cv
+#include <vector>
+#include <opencv2/core/mat.hpp>
namespace floormat::wall_tool {
@@ -18,12 +10,18 @@ struct options
String input_dir, input_file, output_dir;
};
+struct frame
+{
+ Vector2ui size;
+ cv::Mat4b mat;
+};
+
struct state
{
options& opts;
- cv::Mat4b& buffer;
const wall_atlas_def& old_atlas;
wall_atlas_def& new_atlas;
+ std::vector<frame>& frames;
int& error;
};