![]() |
RMVL
1.0.0
RoboMaster Vision Library
|
类 | |
| struct | rm::GyroData |
| 陀螺仪数据 更多... | |
函数 | |
| bool | rm::writeCorners (const std::string &path, uint32_t idx, const std::vector< std::vector< cv::Point2d >> &corners) |
| 将角点数据写入 YAML 文件中 更多... | |
| bool | rm::readCorners (const std::string &path, uint32_t idx, std::vector< std::vector< cv::Point2d >> &corners) |
| 从指定 YAML 文件中读取角点数据 更多... | |
| bool rm::readCorners | ( | const std::string & | path, |
| uint32_t | idx, | ||
| std::vector< std::vector< cv::Point2d >> & | corners | ||
| ) |
#include <rmvl/core/dataio.hpp>
从指定 YAML 文件中读取角点数据
corners_<?>,<?> 表示对应的标号,即参数 idx| [in] | path | 读取的文件路径 |
| [in] | idx | 结构体标号 |
| [out] | corners | 读取出的角点数据,读取失败则不对 data 做任何操作 |
| bool rm::writeCorners | ( | const std::string & | path, |
| uint32_t | idx, | ||
| const std::vector< std::vector< cv::Point2d >> & | corners | ||
| ) |
#include <rmvl/core/dataio.hpp>
将角点数据写入 YAML 文件中
APPEND 模式进行写入到结构体 corners_<?> 中,<?> 表示写入的标号,即参数 idx| [in] | path | 写入的文件路径 |
| [in] | idx | 写入的标号 |
| [in] | corners | 待写入的角点数据 |
1.9.1