Skip to content

Commit

Permalink
Fix two c&p errors in normal_3d.h
Browse files Browse the repository at this point in the history
  • Loading branch information
ochilan committed Apr 15, 2013
1 parent ea39372 commit 1a018df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions features/include/pcl/features/normal_3d.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ namespace pcl
flipNormalTowardsViewpoint (const PointT &point, float vp_x, float vp_y, float vp_z,
Eigen::Matrix<Scalar, 4, 1>& normal)
{
Eigen::Matrix <Scalar, 4, 1> vp (vp_x - point.x, vp_y - point.x, vp_z - point.z, 0);
Eigen::Matrix <Scalar, 4, 1> vp (vp_x - point.x, vp_y - point.y, vp_z - point.z, 0);

// Dot product between the (viewpoint - point) and the plane normal
float cos_theta = vp.dot (normal);
Expand All @@ -146,7 +146,7 @@ namespace pcl
flipNormalTowardsViewpoint (const PointT &point, float vp_x, float vp_y, float vp_z,
Eigen::Matrix<Scalar, 3, 1>& normal)
{
Eigen::Matrix <Scalar, 3, 1> vp (vp_x - point.x, vp_y - point.x, vp_z - point.z);
Eigen::Matrix <Scalar, 3, 1> vp (vp_x - point.x, vp_y - point.y, vp_z - point.z);

// Flip the plane normal
if (vp.dot (normal) < 0)
Expand Down

0 comments on commit 1a018df

Please sign in to comment.