calculating view angle out of an image

5 次查看(过去 30 天)
I have an image and I need to get the view angle of each ROI.
by saying view angle i mean the angle between the picture eye, the ROI, and the ground plane.
I know the height of the camera, and I know some reference distances across the image.
is there any way to sample a point in the image and get the view angle?

回答(1 个)

Matt J
Matt J 2021-8-5
编辑:Matt J 2021-8-5
You have to calibrate the camera and get the 3x4 projection matrix, P, but once you do it should be quite easy:
u=dot( normalize(P(3,1:1:3),'norm') , normalize(P(1:3,1:3)\[x;y;1],'norm') );
angle=acosd(u)+90;

类别

Help CenterFile Exchange 中查找有关 Geometric Transformation and Image Registration 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by