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 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 Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.