git update

This commit is contained in:
2026-06-08 16:35:07 +08:00
parent db6686fccb
commit 8b775db45f
59 changed files with 4901 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
#ifndef DATASET_H_
#define DATASET_H_
#include <vector>
#include <Eigen/Dense>
#include <Eigen/SparseCore>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/opencv.hpp>
#include "utils.h"
class Dataset{
public:
Dataset(const std::string& dataroot, const std::string& image_dir_name);
size_t GetDatasetLength();
bool GetImage(cv::Mat& image, size_t idx);
double GetTimestamp(size_t idx);
private:
std::string _dataroot;
std::string _image_dir;
std::string _image_name_file_path;
std::vector<std::string> _image_names;
std::string _time_file_path;
std::vector<double> _timestamps;
};
#endif // DATASET_H_