Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
za0612
pcl
提交
b65e6439
P
pcl
项目概览
za0612
/
pcl
与 Fork 源项目一致
从无法访问的项目Fork
通知
13
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
pcl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
b65e6439
编写于
1月 16, 2021
作者:
L
Lars Glud
提交者:
GitHub
1月 16, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #4562 from SunBlack/replace_stringstream_apps
[Apps] Replace std::stringstream by std::string, part 2
上级
64e5e472
bb836153
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
19 addition
and
22 deletion
+19
-22
apps/3d_rec_framework/include/pcl/apps/3d_rec_framework/pipeline/impl/global_nn_classifier.hpp
...s/3d_rec_framework/pipeline/impl/global_nn_classifier.hpp
+16
-18
apps/3d_rec_framework/include/pcl/apps/3d_rec_framework/pipeline/impl/global_nn_recognizer_cvfh.hpp
...rec_framework/pipeline/impl/global_nn_recognizer_cvfh.hpp
+3
-4
未找到文件。
apps/3d_rec_framework/include/pcl/apps/3d_rec_framework/pipeline/impl/global_nn_classifier.hpp
浏览文件 @
b65e6439
...
...
@@ -181,30 +181,28 @@ pcl::rec_3d_framework::GlobalNNPipeline<Distance, PointInT, FeatureT>::initializ
if
(
!
bf
::
exists
(
desc_dir
))
bf
::
create_directory
(
desc_dir
);
std
::
stringstream
path_view
;
path_view
<<
path
<<
"/view_"
<<
v
<<
".pcd"
;
pcl
::
io
::
savePCDFileBinary
(
path_view
.
str
(),
*
processed
);
std
::
stringstream
path_pose
;
path_pose
<<
path
<<
"/pose_"
<<
v
<<
".txt"
;
PersistenceUtils
::
writeMatrixToFile
(
path_pose
.
str
(),
models
->
at
(
i
).
poses_
->
at
(
v
));
std
::
stringstream
path_entropy
;
path_entropy
<<
path
<<
"/entropy_"
<<
v
<<
".txt"
;
PersistenceUtils
::
writeFloatToFile
(
path_entropy
.
str
(),
const
std
::
string
path_view
=
path
+
"/view_"
+
std
::
to_string
(
v
)
+
".pcd"
;
pcl
::
io
::
savePCDFileBinary
(
path_view
,
*
processed
);
const
std
::
string
path_pose
=
path
+
"/pose_"
+
std
::
to_string
(
v
)
+
".txt"
;
PersistenceUtils
::
writeMatrixToFile
(
path_pose
,
models
->
at
(
i
).
poses_
->
at
(
v
));
const
std
::
string
path_entropy
=
path
+
"/entropy_"
+
std
::
to_string
(
v
)
+
".txt"
;
PersistenceUtils
::
writeFloatToFile
(
path_entropy
,
models
->
at
(
i
).
self_occlusions_
->
at
(
v
));
// save signatures and centroids to disk
for
(
std
::
size_t
j
=
0
;
j
<
signatures
.
size
();
j
++
)
{
std
::
stringstream
path_centroid
;
path_centroid
<<
path
<<
"/centroid_"
<<
v
<<
"_"
<<
j
<<
".txt"
;
const
std
::
string
path_centroid
=
path
+
"/centroid_"
+
std
::
to_string
(
v
)
+
"_"
+
std
::
to_string
(
j
)
+
".txt"
;
Eigen
::
Vector3f
centroid
(
centroids
[
j
][
0
],
centroids
[
j
][
1
],
centroids
[
j
][
2
]);
PersistenceUtils
::
writeCentroidToFile
(
path_centroid
.
str
()
,
centroid
);
PersistenceUtils
::
writeCentroidToFile
(
path_centroid
,
centroid
);
std
::
stringstream
path_descriptor
;
path_descriptor
<<
path
<<
"/descriptor_"
<<
v
<<
"_"
<<
j
<<
".pcd"
;
pcl
::
io
::
savePCDFileBinary
(
path_descriptor
.
str
(),
signatures
[
j
]);
const
std
::
string
path_descriptor
=
path
+
"/descriptor_"
+
std
::
to_string
(
v
)
+
"_"
+
std
::
to_string
(
j
)
+
".pcd"
;
pcl
::
io
::
savePCDFileBinary
(
path_descriptor
,
signatures
[
j
]);
}
}
}
...
...
apps/3d_rec_framework/include/pcl/apps/3d_rec_framework/pipeline/impl/global_nn_recognizer_cvfh.hpp
浏览文件 @
b65e6439
...
...
@@ -153,12 +153,11 @@ pcl::rec_3d_framework::GlobalNNCVFHRecognizer<Distance, PointInT, FeatureT>::
flann_models_
.
push_back
(
descr_model
);
if
(
use_cache_
)
{
std
::
stringstream
dir_pose
;
dir_pose
<<
path
<<
"/pose_"
<<
descr_model
.
view_id
<<
".txt"
;
const
std
::
string
dir_pose
=
path
+
"/pose_"
+
std
::
to_string
(
descr_model
.
view_id
)
+
".txt"
;
Eigen
::
Matrix4f
pose_matrix
;
PersistenceUtils
::
readMatrixFromFile
(
dir_pose
.
str
()
,
pose_matrix
);
PersistenceUtils
::
readMatrixFromFile
(
dir_pose
,
pose_matrix
);
std
::
pair
<
std
::
string
,
int
>
pair_model_view
=
std
::
make_pair
(
models
->
at
(
i
).
id_
,
descr_model
.
view_id
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录