Skip to content

Commit 1a5703b

Browse files
author
Thiemo Wiedemeyer
committed
removed obsolete isnan and check the integer depth value instead of the float.
1 parent 2d30b69 commit 1a5703b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kinect2_viewer/src/viewer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ class Receiver
447447
{
448448
register const float depthValue = *itD / 1000.0f;
449449
// Check for invalid measurements
450-
if(isnan(depthValue) || depthValue <= 0.001)
450+
if(*itD == 0)
451451
{
452452
// not valid
453453
itP->x = itP->y = itP->z = badPoint;

0 commit comments

Comments
 (0)