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

Zivid.PointCloud.transform(numpy.array([4,4], dtype=numpy.float32)) #208

Open
MysteryNull opened this issue Mar 16, 2023 · 1 comment
Open

Comments

@MysteryNull
Copy link

Could you please tell me about the source code of the function "Zivid.PointCloud.transform(numpy.array([4,4], dtype=numpy.float32))"?
Thank you!

@eskaur
Copy link
Member

eskaur commented Mar 16, 2023

Hi!

It transforms the PointCloud by matrix-multiplying the 4x4 matrix by each point represented as a 4-vector [x0,y0,z0,1] which yields new points [x1,y1,z1,1]. The transformation matrix should be an affine transform representing only Rotation+Translation.

Some sources for you:
https://support.zivid.com/en/latest/academy/applications/transform.html
https://en.wikipedia.org/wiki/Transformation_matrix#Affine_transformations
https://en.wikipedia.org/wiki/Affine_transformation

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

No branches or pull requests

2 participants