123456789101112131415161718192021222324252627282930313233343536 |
- //
- // LevelThumbTool.hpp
- // auto_fill_jewel_v3
- //
- // Created by Red on 2024/12/4.
- // 生成关卡盘子摆放的缩略图
- #ifndef LevelThumbTool_hpp
- #define LevelThumbTool_hpp
- #include <stdio.h>
- #include <vector>
- using std::vector;
- #include "contourdata.h"
- #include "FillGlobalConfig.hpp"
- #include <opencv2/core.hpp>
- #include <opencv2/imgproc.hpp>
- #include <opencv2/highgui.hpp>
- #include "FillResult.hpp"
- #include <tuple>
- using std::tuple;
- struct LevelThumbTool {
-
- void drawthumb(
- string outname , // 输出png文件名
- vector<tuple<int,vector<vector<FillResult>>>>& fillResultsArr, // tuple<盘子类型ID, <层数组<一层填充结果>>>
- vector<ContourData::Point>& posiArr //盘子中心坐标位置数组,坐标系原点在游戏区域左下角
- ) ;
- //deprecated, use makeThumb2
- void makeThumb(string outpngname, vector<int>& plateIdArr,vector<ContourData::Point>& platePosiArr ) ;
- void makeThumb2(string outpngname, vector<tuple<int,vector<vector<FillResult>>>>& fillResultsArr,vector<ContourData::Point>& platePosiArr ) ;
- } ;
- #endif /* LevelThumbTool_hpp */
|