Skip to content

Commit

Permalink
Merge pull request #501 from Original-Recipe/fix-fisheye-camera
Browse files Browse the repository at this point in the history
fix: Filter z coordinates greater than 0.01 and valid
  • Loading branch information
lihqi authored Jul 2, 2024
2 parents ead1ec0 + 3a46d66 commit fd09acc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/lb-annotation/src/core/pointCloud/matrix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ const kbCamFisheyeTransfer = (point: I3DSpaceCoord, calib: ICalib): ICoordinate
const x = result[0];
const y = result[1];
const z = result[2];
// Filter z coordinates greater than 0.01 and valid
if (!(z >= 0.01 && isFinite(z))) return undefined;

// Extract intrinsic parameters
const aff_ = [
Expand Down

0 comments on commit fd09acc

Please sign in to comment.