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

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#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;
};