From 02f75970041b7c572e8adede561586d7a9786194 Mon Sep 17 00:00:00 2001 From: Sebastian Hahta <joseha@utu.fi> Date: Thu, 20 Jun 2019 09:18:03 +0300 Subject: [PATCH] isValidDepth() function --- components/rgbd-sources/include/ftl/rgbd/source.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/rgbd-sources/include/ftl/rgbd/source.hpp b/components/rgbd-sources/include/ftl/rgbd/source.hpp index 885046c3a..65289fad9 100644 --- a/components/rgbd-sources/include/ftl/rgbd/source.hpp +++ b/components/rgbd-sources/include/ftl/rgbd/source.hpp @@ -19,6 +19,8 @@ class Universe; namespace rgbd { +static inline bool isValidDepth(float d) { return (d > 0.0f) && (d <= 40.0f); } + class SnapshotReader; enum capability_t { -- GitLab