I am trying to find the shape of a rod by a curve in my plane based on two perpendicular views of the rod. I prepared an image to make my question clearer.
I have projected bar images in planes 1 and 2, and I would like to create a bar image in plane 3. I did what I found the centerline of the bar in views 1 and 2, using the Matlab image processing toolbox, I set the curve to these lines. Then I generated 3D data based on these embedded curves and finally set another curve or ellipse to the final three-dimensional curve.
This works, but I'm wondering if there is a more suitable solution, for example, by turning views 1 and 2.
The viewing angle 3 relative to view 1 (and view 2) is variable, but views 1 and 2 are perpendicular to each other.
We can find the angle of plane 3 by finding the end of the rod at points 1 and 2, since it will be atan (x_end_in_view_1 / x_end_in_view_two). Is it possible to create an image from the point of view of the camera, tilted to a certain extent from another camera, based on the image from the second camera?
Any help is appreciated.
source
share