未验证 提交 2133857d 编写于 作者: S Sérgio Agostinho 提交者: GitHub

Merge pull request #3691 from truhoang-ubtrobot/fix-linemod-save-template-bug

Use linemod member method to save templates
......@@ -223,10 +223,7 @@ compute (const PointCloudXYZRGBA::ConstPtr & input, float min_depth, float max_d
trainTemplate (input, foreground_mask, linemod);
// Save the LINEMOD template
std::ofstream file_stream;
file_stream.open (template_sqmmt_filename.c_str (), std::ofstream::out | std::ofstream::binary);
linemod.getTemplate (0).serialize (file_stream);
file_stream.close ();
linemod.saveTemplates (template_sqmmt_filename.c_str());
}
/* ---[ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册