frudawski

fisheyeang

The fisheyeang function creates \vartheta, \rho and \Omega angle matrices with equi-angluar projection (as used in LUMOS) for a given fisheye image resolution.

Usage:

[theta, rho, omega] = fisheyeang(reso,hor_angle)

Where:

ParameterDescription
thetaIs the returned rotation angle matrix in °.
rhoIs the returned tilt angle matrix to the optical axis (image center) in °.
OmegaIs the returned pixel-wise solid angle matrix in sr.
resoDefines the image resolution, default: 500 \times 500 pixel.
hor_angleDefines the horizontal opening angle, default: 180°

Examples:

Create \vartheta, \rho and \Omega angle matrices with default settings:

[theta, rho, omega] = fisheyeang;
contourf(rho,[0:10:90])
colorbar
axis equal off

Result:

Create \vartheta, \rho and \Omega angle matrices for ‘equisolid’ projection mode and horizontal opning angle of 120°:

Create \vartheta, \rho and \Omega angle matrices with resulting resolution of 500 x 1000 pixel and 120° horizontal opening angle:

[theta, rho, omega] = fisheyeang([500 1000],120);
contourf(rho,[0:10:90])
colorbar
axis equal off

Result:

Leave a comment

* I accept the use of cookies as well as the terms in the privacy policy. I accept that data provided by me is processed and saved. I know and accept that comments may be saved and published after review.