Paparazzi UAS
v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
|
#include "modules/computer_vision/undistort_image.h"
#include <stdio.h>
#include "modules/computer_vision/lib/vision/image.h"
#include "modules/computer_vision/lib/vision/undistortion.h"
Go to the source code of this file.
Macros | |
#define | UNDISTORT_FPS 0 |
Default FPS (zero means run at camera fps) More... | |
#define | UNDISTORT_MIN_X_NORMALIZED -2.0f |
Minimal normalized coordinate that will be shown in the undistorted image. More... | |
#define | UNDISTORT_MAX_X_NORMALIZED 2.0f |
Maximal normalized coordinate that will be shown in the undistorted image. More... | |
#define | UNDISTORT_CENTER_RATIO 1.00f |
Maximal normalized coordinate that will be shown in the undistorted image. More... | |
Functions | |
static struct image_t * | undistort_image_func (struct image_t *img) |
void | undistort_image_init (void) |
Variables | |
float | min_x_normalized |
float | max_x_normalized |
float | center_ratio |
struct camera_intrinsics_t | camera_intrinsics |
struct video_listener * | listener = NULL |
static float | K [9] |
#define UNDISTORT_CENTER_RATIO 1.00f |
Maximal normalized coordinate that will be shown in the undistorted image.
Definition at line 29 of file undistort_image.c.
Referenced by undistort_image_init().
#define UNDISTORT_FPS 0 |
Default FPS (zero means run at camera fps)
Definition at line 14 of file undistort_image.c.
Referenced by undistort_image_init().
#define UNDISTORT_MAX_X_NORMALIZED 2.0f |
Maximal normalized coordinate that will be shown in the undistorted image.
Definition at line 24 of file undistort_image.c.
Referenced by undistort_image_init().
#define UNDISTORT_MIN_X_NORMALIZED -2.0f |
Minimal normalized coordinate that will be shown in the undistorted image.
Definition at line 19 of file undistort_image.c.
Referenced by undistort_image_init().
Definition at line 46 of file undistort_image.c.
References image_t::buf, camera_intrinsics, center_ratio, camera_intrinsics_t::center_x, camera_intrinsics_t::center_y, dest, camera_intrinsics_t::Dhane_k, camera_intrinsics_t::focal_x, camera_intrinsics_t::focal_y, h(), image_t::h, image_copy(), image_create(), image_free(), IMAGE_YUV422, K, max_x_normalized, min_x_normalized, normalized_coords_to_distorted_pixels(), image_t::type, and image_t::w.
Referenced by undistort_image_init().
void undistort_image_init | ( | void | ) |
Definition at line 109 of file undistort_image.c.
References camera_intrinsics, center_ratio, camera_intrinsics_t::center_x, camera_intrinsics_t::center_y, cv_add_to_device(), camera_intrinsics_t::focal_x, camera_intrinsics_t::focal_y, K, listener, max_x_normalized, min_x_normalized, UNDISTORT_CENTER_RATIO, UNDISTORT_FPS, undistort_image_func(), UNDISTORT_MAX_X_NORMALIZED, and UNDISTORT_MIN_X_NORMALIZED.
struct camera_intrinsics_t camera_intrinsics |
Definition at line 36 of file undistort_image.c.
Referenced by undistort_image_func(), and undistort_image_init().
float center_ratio |
Definition at line 35 of file undistort_image.c.
Referenced by undistort_image_func(), and undistort_image_init().
|
static |
Definition at line 41 of file undistort_image.c.
Referenced by ekf_range_update_dist(), get_world_position_from_image_points(), gv_adapt_run(), init_second_order_low_pass(), init_second_order_low_pass_int(), ins_mekf_wind_propagate_ahrs(), ins_mekf_wind_update_airspeed(), ins_mekf_wind_update_baro(), ins_mekf_wind_update_incidence(), ins_mekf_wind_update_mag(), ins_mekf_wind_update_pos_speed(), predict_flow_vectors(), UKF_Wind_Estimator_step(), undistort_image_func(), undistort_image_init(), update_alt_conf(), update_biased_z_conf(), update_obs_height(), update_state(), update_state_heading(), and update_vz_conf().
struct video_listener* listener = NULL |
Definition at line 38 of file undistort_image.c.
Referenced by undistort_image_init().
float max_x_normalized |
Definition at line 34 of file undistort_image.c.
Referenced by undistort_image_func(), and undistort_image_init().
float min_x_normalized |
Definition at line 33 of file undistort_image.c.
Referenced by undistort_image_func(), and undistort_image_init().