lens("Nikon_FCE9")
lens("Nikon_FCE9", max_fov = TRUE)
.fp <- function(theta, lens_coef) {
x <- lens_coef[1:5]
x[is.na(x)] <- 0
for (i in 1:5) assign(letters[i], x[i])
a * theta + b * theta^2 + c * theta^3 + d * theta^4 + e * theta^5
}
theta <- seq(0, pi/2, pi/180)
plot(theta, .fp(theta, lens()), type = "l", lty = 2,
ylab = "relative radius")
lines(theta, .fp(theta, lens("Nikon_FCE9")))
Run the code above in your browser using DataLab