Skip to content

Commit 999d30f

Browse files
committed
Use eigen min/max functions
1 parent 7c9940e commit 999d30f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

recognition/include/pcl/recognition/impl/linemod/line_rgbd.hpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,8 @@ pcl::LineRGBD<PointXYZT, PointRGBT>::computeBoundingBoxAndCenterTemplatePointClo
179179
if (!isXYZFinite(p))
180180
continue;
181181

182-
for (std::size_t row=0; row<3; ++row)
183-
{
184-
min_pos[row] = std::min (min_pos[row], p.getVector3fMap ()[row]);
185-
max_pos[row] = std::max (max_pos[row], p.getVector3fMap ()[row]);
186-
}
182+
min_pos.cwiseMin (p.getVector3fMap ());
183+
max_pos.cwiseMax (p.getVector3fMap ());
187184

188185
geometric_center += p.getVector3fMap ();
189186

0 commit comments

Comments
 (0)