| RMVL 2.4.0 Robotic Manipulation and Vision Library

载入中...
搜索中...
未找到
samples/tutorial_code/io/sample_read_corners.cpp

角点数据读取例程

#include <iostream>
#include <rmvl/rmvl.hpp>
int main()
{
for (uint32_t n = 0; n < 5; ++n)
{
std::vector<std::vector<cv::Point2f>> corners;
// read data
if (!rm::readCorners("ts.yml", n, corners))
continue;
// print the data
for (std::size_t i = 0; i < corners.size(); ++i)
for (std::size_t j = 0; j < corners[i].size(); ++i)
std::cout << i << "." << j << " = " << corners[i][j] << std::endl;
}
return 0;
}
rm::readCorners
void readCorners(std::istream &in, std::vector< std::vector< std::array< float, 2 > > > &corners)
导入角点数据