From b4696fda0a286a1e13532e8be8c4d6dd7065020f Mon Sep 17 00:00:00 2001 From: Christian Forster Date: Mon, 30 Jun 2014 20:43:15 +0200 Subject: [PATCH] using std::isnan instead of isnanf --- svo/src/depth_filter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svo/src/depth_filter.cpp b/svo/src/depth_filter.cpp index 1fdd342..1f70be8 100644 --- a/svo/src/depth_filter.cpp +++ b/svo/src/depth_filter.cpp @@ -309,7 +309,7 @@ void DepthFilter::getSeedsCopy(const FramePtr& frame, std::list& seeds) void DepthFilter::updateSeed(const float x, const float tau2, Seed* seed) { float norm_scale = sqrt(seed->sigma2 + tau2); - if(isnanf(norm_scale)) + if(std::isnan(norm_scale)) return; boost::math::normal_distribution nd(seed->mu, norm_scale); float s2 = 1./(1./seed->sigma2 + 1./tau2);