我不知道如何编写有关向点添加新功能的代码。
我正在使用caffe通过使用ocnn(基于octree)来训练模型。现在,我想添加其他功能点来指向。但是我不知道该怎么做。
#include <points.h>
Points point_cloud;
vector<float> points, normals, features, labels;
// ......
// set your data in points, normals, features, and labels
// points: 3 channels, x_1, y_1, z_1, x_2, y_2, z_2, ..., x_n, y_n, z_n
// normals: 3 channels, nx_1, ny_1, nz_1, nx_2, ny_2, nz_2, ..., nx_n, ny_n, nz_n
// features (such as RGB color): k channels, r_1, g_1, b_1, r_2, g_2, b_2, ..., r_n, g_n, b_n
// labels: 1 channels, per-points labels
// ......
point_cloud.set_points(points, normals, features, labels);
point_cloud.write_points("my_points.points");