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

Commit

Permalink
[depthMapEntity] update check for invalid values
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiencastan committed Jun 7, 2020
1 parent 5102e51 commit a2a729a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/depthMapEntity/DepthMapEntity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ void DepthMapEntity::loadDepthMap()
{
float depthValue = 0.0f;
inBuf.getpixel(x, y, &depthValue, 1);
if(depthValue == -1.f)
if(depthValue <= 0.f)
continue;

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

0 comments on commit a2a729a

Please sign in to comment.