calculating view angle out of an image

2 Ansichten (letzte 30 Tage)
avioz dagan
avioz dagan am 5 Aug. 2021
Bearbeitet: Matt J am 5 Aug. 2021
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?

Antworten (1)

Matt J
Matt J am 5 Aug. 2021
Bearbeitet: Matt J am 5 Aug. 2021
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;

Kategorien

Mehr zu Geometric Transformation and Image Registration finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by