|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
51 #ifndef DISP_RANGE_MAX
52 #define DISP_RANGE_MAX 50
54 #ifndef MAX_WINDOW_SIZE
55 #define MAX_WINDOW_SIZE 20
57 #ifndef OPTICFLOW_FOV_W
58 #define OPTICFLOW_FOV_W 0.89360857702
60 #ifndef OPTICFLOW_FOV_H
61 #define OPTICFLOW_FOV_H 0.67020643276
Inter-thread data structures.
uint32_t timeval_diff2(struct timeval *starttime, struct timeval *finishtime)
void draw_edgeflow_img(struct image_t *img, struct edge_flow_t edgeflow, int32_t *edge_hist_x_prev, int32_t *edge_hist_x)
Draws edgehistogram, displacement and linefit directly on the image for debugging (only for edgeflow ...
void calculate_edge_displacement(int32_t *edge_histogram, int32_t *edge_histogram_prev, int32_t *displacement, uint16_t size, uint8_t window, uint8_t disp_range, int32_t der_shift)
Calculate_displacement calculates the displacement between two histograms.
void calculate_edge_histogram(struct image_t *img, int32_t edge_histogram[], char direction, uint16_t edge_threshold)
Calculate a edge/gradient histogram for each dimension of the image.
uint32_t getMinimum(uint32_t *a, uint32_t n)
Calculate minimum of an array.
void line_fit(int32_t *displacement, int32_t *divergence, int32_t *flow, uint32_t size, uint32_t border, uint16_t RES)
Fits a linear model to an array with pixel displacements with least squares.
Calculate velocity from optic flow.
uint32_t getAmountPeaks(int32_t *edgehist, int32_t thresh, int32_t size)
getAmountPeaks, calculates the amount of peaks in a edge histogram
void calc_previous_frame_nr(struct opticflow_result_t *result, struct opticflow_t *opticflow, uint8_t current_frame_nr, uint8_t *previous_frame_offset, uint8_t *previous_frame_nr)
Calc_previous_frame_nr; adaptive Time Horizon.
struct timeval frame_time
struct opticflow_t opticflow[ACTIVE_CAMERAS]
Opticflow calculations.
struct FloatEulers eulers