Cross-calibrate lens
crosscalibrate_lens(
path_to_csv_uncal,
path_to_csv_cal,
zenith_colrow_uncal,
zenith_colrow_cal,
diameter_cal,
lens_coef,
degree = 3
)
An object of class list with named elements. ds is the dataset
used to fit the model, model is the fitted model (class lm
, see
stats::lm()
), horizon_radius is the radius at 90º, lens_coef is a
numeric vector of length equal to the degree
argument containing the
polynomial model coefficients for predicting relative radius
(coefficients(model)/horizon_radius
).
Character vector of length one. Path to a CSV file created with the point selection tool of ‘ImageJ’ software (cal and uncal stand for calibrated and uncalibrated, respectively).
Numeric vector of length two.
Raster coordinates of the zenith. See
calc_zenith_colrow()
(cal and uncal stand
for calibrated and uncalibrated, respectively).
Numeric vector of length one. Diameter in pixels of the image taken with the calibrated camera.
numeric
Numeric vector of length one. Polynomial model degree.
Read the help page of calibrate_lens()
for understanding the theory
being this function.
This function is intended to be used when a camera calibrated with a method
of higher accuracy than the one proposed in calibrate_lens()
is
available or there is a main camera to which all other devices should be
adjusted.
It requires two photographs taken from the exact same location with the calibrated and uncalibrated camera. This means that the lens entrance pupils should match and the optical axes should be aligned.
Points should be digitized in tandem with ImageJ and saved as CSV files.
Other Lens Functions:
azimuth_image()
,
calc_diameter()
,
calc_relative_radius()
,
calc_zenith_colrow()
,
calibrate_lens()
,
expand_noncircular()
,
extract_radiometry()
,
fisheye_to_equidistant()
,
fisheye_to_pano()
,
lens()
,
test_lens_coef()
,
zenith_image()