Skip to content
This repository was archived by the owner on Jan 14, 2023. It is now read-only.

Commit a2a729a

Browse files
committed
[depthMapEntity] update check for invalid values
1 parent 5102e51 commit a2a729a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/depthMapEntity/DepthMapEntity.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ void DepthMapEntity::loadDepthMap()
331331
{
332332
float depthValue = 0.0f;
333333
inBuf.getpixel(x, y, &depthValue, 1);
334-
if(depthValue == -1.f)
334+
if(depthValue <= 0.f)
335335
continue;
336336

337337
point3d p = CArr + (iCamArr * point2d((double)x, (double)y)).normalize() * depthValue;

0 commit comments

Comments
 (0)