using std::isnan instead of isnanf

This commit is contained in:
Christian Forster
2014-06-30 20:43:15 +02:00
parent c34df8f6d2
commit b4696fda0a
+1 -1
View File
@@ -309,7 +309,7 @@ void DepthFilter::getSeedsCopy(const FramePtr& frame, std::list<Seed>& seeds)
void DepthFilter::updateSeed(const float x, const float tau2, Seed* seed) void DepthFilter::updateSeed(const float x, const float tau2, Seed* seed)
{ {
float norm_scale = sqrt(seed->sigma2 + tau2); float norm_scale = sqrt(seed->sigma2 + tau2);
if(isnanf(norm_scale)) if(std::isnan(norm_scale))
return; return;
boost::math::normal_distribution<float> nd(seed->mu, norm_scale); boost::math::normal_distribution<float> nd(seed->mu, norm_scale);
float s2 = 1./(1./seed->sigma2 + 1./tau2); float s2 = 1./(1./seed->sigma2 + 1./tau2);