Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
za0612
pcl
提交
bf05cfd2
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 搜索 >>
提交
bf05cfd2
编写于
1月 02, 2021
作者:
M
Markus Vieth
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
MomentOfInertiaEstimation: call functions from PCLBase
上级
4ed8b8c5
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
5 addition
and
48 deletion
+5
-48
features/include/pcl/features/impl/moment_of_inertia_estimation.hpp
...nclude/pcl/features/impl/moment_of_inertia_estimation.hpp
+5
-48
未找到文件。
features/include/pcl/features/impl/moment_of_inertia_estimation.hpp
浏览文件 @
bf05cfd2
...
...
@@ -567,8 +567,7 @@ pcl::MomentOfInertiaEstimation<PointT>::getMassCenter (Eigen::Vector3f& mass_cen
template
<
typename
PointT
>
void
pcl
::
MomentOfInertiaEstimation
<
PointT
>::
setInputCloud
(
const
PointCloudConstPtr
&
cloud
)
{
input_
=
cloud
;
pcl
::
PCLBase
<
PointT
>::
setInputCloud
(
cloud
);
is_valid_
=
false
;
}
...
...
@@ -576,10 +575,7 @@ pcl::MomentOfInertiaEstimation<PointT>::setInputCloud (const PointCloudConstPtr&
template
<
typename
PointT
>
void
pcl
::
MomentOfInertiaEstimation
<
PointT
>::
setIndices
(
const
IndicesPtr
&
indices
)
{
indices_
=
indices
;
fake_indices_
=
false
;
use_indices_
=
true
;
pcl
::
PCLBase
<
PointT
>::
setIndices
(
indices
);
is_valid_
=
false
;
}
...
...
@@ -587,10 +583,7 @@ pcl::MomentOfInertiaEstimation<PointT>::setIndices (const IndicesPtr& indices)
template
<
typename
PointT
>
void
pcl
::
MomentOfInertiaEstimation
<
PointT
>::
setIndices
(
const
IndicesConstPtr
&
indices
)
{
indices_
.
reset
(
new
std
::
vector
<
int
>
(
*
indices
));
fake_indices_
=
false
;
use_indices_
=
true
;
pcl
::
PCLBase
<
PointT
>::
setIndices
(
indices
);
is_valid_
=
false
;
}
...
...
@@ -598,10 +591,7 @@ pcl::MomentOfInertiaEstimation<PointT>::setIndices (const IndicesConstPtr& indic
template
<
typename
PointT
>
void
pcl
::
MomentOfInertiaEstimation
<
PointT
>::
setIndices
(
const
PointIndicesConstPtr
&
indices
)
{
indices_
.
reset
(
new
std
::
vector
<
int
>
(
indices
->
indices
));
fake_indices_
=
false
;
use_indices_
=
true
;
pcl
::
PCLBase
<
PointT
>::
setIndices
(
indices
);
is_valid_
=
false
;
}
...
...
@@ -609,40 +599,7 @@ pcl::MomentOfInertiaEstimation<PointT>::setIndices (const PointIndicesConstPtr&
template
<
typename
PointT
>
void
pcl
::
MomentOfInertiaEstimation
<
PointT
>::
setIndices
(
std
::
size_t
row_start
,
std
::
size_t
col_start
,
std
::
size_t
nb_rows
,
std
::
size_t
nb_cols
)
{
if
((
nb_rows
>
input_
->
height
)
||
(
row_start
>
input_
->
height
))
{
PCL_ERROR
(
"[PCLBase::setIndices] cloud is only %d height
\n
"
,
input_
->
height
);
return
;
}
if
((
nb_cols
>
input_
->
width
)
||
(
col_start
>
input_
->
width
))
{
PCL_ERROR
(
"[PCLBase::setIndices] cloud is only %d width
\n
"
,
input_
->
width
);
return
;
}
const
std
::
size_t
row_end
=
row_start
+
nb_rows
;
if
(
row_end
>
input_
->
height
)
{
PCL_ERROR
(
"[PCLBase::setIndices] %d is out of rows range %d
\n
"
,
row_end
,
input_
->
height
);
return
;
}
const
std
::
size_t
col_end
=
col_start
+
nb_cols
;
if
(
col_end
>
input_
->
width
)
{
PCL_ERROR
(
"[PCLBase::setIndices] %d is out of columns range %d
\n
"
,
col_end
,
input_
->
width
);
return
;
}
indices_
.
reset
(
new
std
::
vector
<
int
>
);
indices_
->
reserve
(
nb_cols
*
nb_rows
);
for
(
std
::
size_t
i
=
row_start
;
i
<
row_end
;
i
++
)
for
(
std
::
size_t
j
=
col_start
;
j
<
col_end
;
j
++
)
indices_
->
push_back
(
static_cast
<
int
>
((
i
*
input_
->
width
)
+
j
));
fake_indices_
=
false
;
use_indices_
=
true
;
pcl
::
PCLBase
<
PointT
>::
setIndices
(
row_start
,
col_start
,
nb_rows
,
nb_cols
);
is_valid_
=
false
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录