You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
533 B

#pragma once
// 读取文件夹下的list.txt并根据list.txt中的图片路径读取图片
#include <string>
#include <vector>
#include <fstream>
#include <iostream>
#include <cstdio>
#include "StitchStruct.h"
class Utils
{
public:
Utils();
~Utils();
public:
int open(const std::string& folder);
// 顺序读取
std::pair<FrameInfo, cv::Mat> readInfoAndMat();
private:
std::string folder;
std::vector<std::string> picList;
std::vector<FrameInfo> frameInfoList;
int m_order;
};