From 5333e63c39016a5c4df871d4fbd08de1454c7e4e Mon Sep 17 00:00:00 2001 From: jagennath-hari <110366406+jagennath-hari@users.noreply.github.com> Date: Tue, 10 Jan 2023 00:51:57 -0500 Subject: [PATCH] Update sfm.cpp --- sfm/src/sfm.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sfm/src/sfm.cpp b/sfm/src/sfm.cpp index 191bda0..2a2eca5 100644 --- a/sfm/src/sfm.cpp +++ b/sfm/src/sfm.cpp @@ -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::quiet_NaN(); - } + else pt.x = pt.y = pt.z = std::numeric_limits::quiet_NaN(); + return pt; }