Optical functions. More...
Classes | |
struct | camera_data_s |
Optical functions. More... | |
Typedefs | |
typedef struct camera_data_s | camera_data_t |
Optical functions. | |
Functions | |
double | effective_focal_length (ml_matrix distance, ml_matrix focal_length) |
Computes effective focal length. | |
double | diffraction_limit (double lambda, double aperture) |
Diffraction resolution limit. | |
ml_matrix | angle_of_view (double focal_length, ml_matrix d) |
Angle of view from focal length with a 2D input. | |
double | angle_of_view (double focal_length, double d) |
Angle of view from focal length with a 1D input. | |
ml_matrix | angle_of_view (ml_matrix focal_length, double d) |
Angle of view from a matrix of focal lengths with a 1D input. | |
double | focal_length_from_angle_of_view (double alpha, double d) |
Focal length from angle of view. | |
ml_matrix | separation_angles (ml_matrix u) |
Separation angles and pairs. | |
ml_matrix | pix_to_u (ml_matrix p, double f) |
Converts a pixel map to a unit vector assuming a pinhole camera model. | |
ml_matrix | u_to_pix (ml_matrix u, double f) |
Converts a unit vector to a pixel map assuming a pinhole camera model. | |
ml_matrix | vm_to_intensity (ml_matrix v) |
Converts visual magnitude to intensity. | |
ml_matrix | intensity_to_vm (ml_matrix i) |
Converts intensity to visual magnitude. | |
double | vm_to_intensity (double v) |
Converts visual magnitude to intensity. | |
double | intensity_to_vm (double i) |
Converts intensity to visual magnitude. | |
double | laser_beam_radius (double d, double lambda, double z) |
Laser beam radius. | |
double | laser_power (double d, double lambda, double z, double power) |
Laser power. | |
camera_data_t | camera_calibration (const ml_matrix &pD, const ml_matrix &pW) |
Camera calibration. | |
ml_matrix | calibration_cube (double w, double r, int n) |
Camera cube. | |
ml_matrix | camera_calibration_model (camera_data_t d, const ml_matrix &pW, double f) |
Camera model. |
typedef struct camera_data_s camera_data_t |
Structure for storing camera data.
double effective_focal_length | ( | ml_matrix | distance, |
ml_matrix | focal_length | ||
) |
Computes effective focal length.
distance | Array of distances between lenses |
focal_length | Array of lens focal lengths |
double diffraction_limit | ( | double | lambda, |
double | aperture | ||
) |
Diffraction resolution limit.
lambda | Wavelength |
aperture | Width of aperture |
ml_matrix angle_of_view | ( | double | focal_length, |
ml_matrix | d | ||
) |
Angle of view from focal length with a 2D input.
focal_length | Focal length |
d | Width of imaging chip |
double angle_of_view | ( | double | focal_length, |
double | d | ||
) |
Angle of view from focal length with a 1D input.
focal_length | Focal length |
d | Width of imaging chip |
ml_matrix angle_of_view | ( | ml_matrix | focal_length, |
double | d | ||
) |
Angle of view from a matrix of focal lengths with a 1D input.
focal_length | Focal length |
d | Width of imaging chip |
double focal_length_from_angle_of_view | ( | double | alpha, |
double | d | ||
) |
Focal length from angle of view.
alpha | Angle of view |
ml_matrix pix_to_u | ( | ml_matrix | p, |
double | f | ||
) |
Converts a pixel map to a unit vector assuming a pinhole camera model.
p | Pixel coordinates |
f | Focal length |
ml_matrix u_to_pix | ( | ml_matrix | r, |
double | f | ||
) |
Converts a unit vector to a pixel map assuming a pinhole camera model.
r | Position vector |
f | Focal length |
ml_matrix vm_to_intensity | ( | ml_matrix | v ) |
Converts visual magnitude to intensity.
v | Visual magnitude |
ml_matrix intensity_to_vm | ( | ml_matrix | i ) |
Converts intensity to visual magnitude.
i | Intensity |
double vm_to_intensity | ( | double | v ) |
Converts visual magnitude to intensity.
v | Visual magnitude |
double intensity_to_vm | ( | double | i ) |
Converts intensity to visual magnitude.
i | Intensity |
double laser_beam_radius | ( | double | d, |
double | lambda, | ||
double | z | ||
) |
Laser beam radius.
d | Aperture (m) |
lambda | Wavelength (m) |
range | (m) |
References PI.
double laser_power | ( | double | d, |
double | lambda, | ||
double | z, | ||
double | power | ||
) |
Laser power.
d | Aperture (m) |
lambda | Wavelength (m) |
range | (m) |
power | (m) |
camera_data_t camera_calibration | ( | const ml_matrix & | pD, |
const ml_matrix & | pW | ||
) |
d | Measured coordinates (m) |
pW | World points (m) |
References camera_data_s::alpha, camera_data_s::f, camera_data_s::k1, camera_data_s::k2, camera_data_s::o, camera_data_s::R, camera_data_s::s, and camera_data_s::T.
ml_matrix calibration_cube | ( | double | w, |
double | r, | ||
int | n | ||
) |
Camera cube.
w | Width of square (m) |
r | Cube width (m) |
n | Number of squares |
ml_matrix camera_calibration_model | ( | camera_data_t | d, |
const ml_matrix & | pW, | ||
double | f | ||
) |
Camera model.
d | Camera data structure |
pW | World points (m) |
References camera_data_s::o, camera_data_s::R, camera_data_s::s, and camera_data_s::T.