Produce an image based on images from two perpendicular images

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.enter image description here

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.

+3
source share
1 answer

Yes, you can make an image from the point of view of the camera, tilted to a certain extent from another camera. Given the angle, you can calculate the affine transformation between two planes and apply the transformation to the original image to get the projection of the image in another plane.

6 , , 4 (0, 0), (0, 1), (1, 0) (1, 1) (x, y) , (, y) ( z-). 8 6 , .

0

All Articles