Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] check visible points are in front of the camera #40

Merged
merged 1 commit into from Nov 3, 2023

Conversation

PaulDebus
Copy link
Collaborator

when computing the visibility of points in the cameraproject function, also make sure that the points are in front of the camera. This can be easily and cheaply done in this place, as the z position in camera local coordinates is computed during projection.
The weird array syntax (pt[3:3,:]) was necessary for performance. Whatever it does...

when computing the visibility of points in the `cameraproject` function,
also make sure that the points are in front of the camera. This can be
easily and cheaply done in this place, as the z position in camera local
coordinates is computed during projection.
The weird array syntax (`pt[3:3,:]`) was necessary for performance.
Whatever it does...
@PaulDebus PaulDebus changed the title check visible points are in front of the camera [WIP] check visible points are in front of the camera Oct 30, 2023
Copy link
Owner

@peterkovesi peterkovesi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing an obvious omission from the test

@peterkovesi peterkovesi merged commit 5d63fda into master Nov 3, 2023
7 of 10 checks passed
@PaulDebus
Copy link
Collaborator Author

No problem ;)

Just had to figure out, which way the camera looks: along the positive z axis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants