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

Adding distortion parameters on the Plotter.Camera #5979

Open
GRicciardi00 opened this issue Apr 25, 2024 · 0 comments
Open

Adding distortion parameters on the Plotter.Camera #5979

GRicciardi00 opened this issue Apr 25, 2024 · 0 comments
Labels
feature-request Please add this cool feature!

Comments

@GRicciardi00
Copy link

GRicciardi00 commented Apr 25, 2024

Describe the feature you would like to be added.

I'm attempting to use PyVista to project a mesh onto a Plane object, representing the image frame of a real camera (RC) by applying a texture to it.
I've carefully set both the intrinsic and extrinsic parameters of the plotter.camera to match those of the RC. The plotter.camera's position is set to the origin of the transformed coordinate system.
The Plane has the same size as the RC resolution (1920x1088), and its position is (0,0, RC.focal_length). I've applied the camera transformation matrix using the .transform() function.
The issue is that the plane doesn't completely match the plotter.camera frame. My hypothesis is that this effect is probably caused by the distortion parameters of the RC, which I don't know how to set in the plotter.camera.
I tried to search for something similar in the VTK documentation but I didn't find nothing.

Links to VTK Documentation, Examples, or Class Definitions.

No response

Pseudocode or Screenshots

Insert code here

Or drag your screenshot here!

@GRicciardi00 GRicciardi00 added the feature-request Please add this cool feature! label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Please add this cool feature!
Projects
None yet
Development

No branches or pull requests

1 participant