SEB_Viewing_Angles: A function to calculate the angle viewed by a stereo camera

View source: R/functions.R

SEB_Viewing_AnglesR Documentation

A function to calculate the angle viewed by a stereo camera

Description

This function uses a stereo camera calibration *.mat file to estimate the horizontal angle of view for a camera pair. It is a translation from Matlab to R of functions from Kresimir Williams to calculate horizontal AOV and uses a translated function from the Bouget et al. 2008 to do the Rodrigues transformation of the calibration.

Usage

SEB_Viewing_Angles(calibration_file, image_width, image_height, plot.it = TRUE)

Arguments

calibration_file

a calibration file for a stereo camera from matlab (*.mat)

image_width

the image width from the camera in pixels

image_height

the image height from the camera in pixels

plot.it

do you want to generate a plot of the viewing angle?

Examples

angles<-SEB_Viewing_Angles('dropcam_unit2_calibration_switched.mat', 2048,1536)

rooperc4/StereoCamDataUtils documentation built on Nov. 20, 2024, 9:58 p.m.