Skip to content

Commit

Permalink
Update sfm.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jagennath-hari authored Jan 10, 2023
1 parent 3ecc902 commit 5333e63
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sfm/src/sfm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,8 @@ pcl::PointXYZ sfm::projectDepthTo3D_(const cv::Mat depthMap, float w, float h, f
pt.y = (h - cy) * depth / fy;
pt.z = depth;
}
else
{
pt.x = pt.y = pt.z = std::numeric_limits<float>::quiet_NaN();
}
else pt.x = pt.y = pt.z = std::numeric_limits<float>::quiet_NaN();

return pt;
}

Expand Down

0 comments on commit 5333e63

Please sign in to comment.