|
|
|
@ -29,7 +29,7 @@ void CsvWriter::writeXYZ(const std::vector<cv::Point3f> &list_points3d) |
|
|
|
|
void CsvWriter::writeUVXYZ(const std::vector<cv::Point3f> &list_points3d, const std::vector<cv::Point2f> &list_points2d, const cv::Mat &descriptors) |
|
|
|
|
{ |
|
|
|
|
std::string u, v, x, y, z, descriptor_str; |
|
|
|
|
for(int i = 0; i < list_points3d.size(); ++i) |
|
|
|
|
for(unsigned int i = 0; i < list_points3d.size(); ++i) |
|
|
|
|
{ |
|
|
|
|
u = FloatToString(list_points2d[i].x); |
|
|
|
|
v = FloatToString(list_points2d[i].y); |
|
|
|
@ -41,8 +41,7 @@ void CsvWriter::writeUVXYZ(const std::vector<cv::Point3f> &list_points3d, const |
|
|
|
|
|
|
|
|
|
for(int j = 0; j < 32; ++j) |
|
|
|
|
{ |
|
|
|
|
std::cout << descriptors.at<float>(i,j) << std::endl; |
|
|
|
|
descriptor_str = FloatToString(descriptors.at<float>(i,j)); |
|
|
|
|
descriptor_str = FloatToString((float)descriptors.at<float>(i,j)); |
|
|
|
|
_file << _separator << descriptor_str; |
|
|
|
|
} |
|
|
|
|
_file << std::endl; |
|
|
|
|