Adding distortion parameters on the Plotter.Camera
GRicciardi00 opened this issue · comments
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!