From 3f3ee66ea77d35fc70fd95ff25c91f72f5c9d80b Mon Sep 17 00:00:00 2001 From: Maksim Shabunin Date: Fri, 29 Sep 2023 15:25:06 +0300 Subject: [PATCH] Fixed compilation with SIMD disabled or with scalable SIMD --- modules/rgbd/src/tsdf_functions.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/rgbd/src/tsdf_functions.hpp b/modules/rgbd/src/tsdf_functions.hpp index 1031474d0..c763f9275 100644 --- a/modules/rgbd/src/tsdf_functions.hpp +++ b/modules/rgbd/src/tsdf_functions.hpp @@ -16,11 +16,13 @@ namespace cv namespace kinfu { +#if USE_INTRINSICS inline v_float32x4 tsdfToFloat_INTR(const v_int32x4& num) { v_float32x4 num128 = v_setall_f32(-1.f / 128.f); return v_cvt_f32(num) * num128; } +#endif inline TsdfType floatToTsdf(float num) {