Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
size_divergence.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Guido de Croon <guido.de.croon@gmail.com>
3  *
4  * From:
5  * Characterization of Flow Field Divergence for Vertical Landing Control of MAVs
6  * by H.W. Ho and G.C.H.E. de Croon (submitted)
7  *
8  * This file is part of Paparazzi.
9  *
10  * Paparazzi is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2, or (at your option)
13  * any later version.
14  *
15  * Paparazzi is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with Paparazzi; see the file COPYING. If not, see
22  * <http://www.gnu.org/licenses/>.
23  */
24 
32 #include "lib/vision/image.h"
33 
34 #ifndef SIZE_DIVERGENCE
35 #define SIZE_DIVERGENCE
36 
37 float get_size_divergence(struct flow_t *vectors, int count, int n_samples);
38 float get_mean(float *numbers, int n_elements);
39 
40 #endif
41 
42 
int n_samples
Definition: detect_gate.c:85
Image helper functions like resizing, color filter, converters...
Definition: image.h:78
float get_size_divergence(struct flow_t *vectors, int count, int n_samples)
Get divergence from optical flow vectors based on line sizes between corners.
float get_mean(float *numbers, int n_elements)