Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
blob_finder.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015
3  *
4  * This file is part of Paparazzi.
5  *
6  * Paparazzi is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2, or (at your option)
9  * any later version.
10  *
11  * Paparazzi is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with paparazzi; see the file COPYING. If not, see
18  * <http://www.gnu.org/licenses/>.
19  *
20  */
21 
28 #ifndef BLOB_FINDER_H
29 #define BLOB_FINDER_H
30 
31 
33 
34 
35 /* YUV Color Filter Parameters */
43 };
44 
45 /* Blob object: connected pixels */
46 struct image_label_t {
49 
55 
56  struct point_t contour[512];
58 
60 };
61 
62 void image_labeling(struct image_t *input, struct image_t *output, struct image_filter_t *filters, uint8_t filters_cnt,
63  struct image_label_t *labels, uint16_t *labels_count);
64 
65 #endif /* BLOB_FINDER_H */
uint16_t x_min
Top left corner.
Definition: blob_finder.h:51
uint8_t u_min
Definition: blob_finder.h:39
uint32_t pixel_cnt
Number of pixels in the blob.
Definition: blob_finder.h:50
uint8_t filter
Which filter triggered this blob.
Definition: blob_finder.h:48
uint8_t u_max
Definition: blob_finder.h:40
uint16_t id
Blob number.
Definition: blob_finder.h:47
uint8_t y_max
Definition: blob_finder.h:38
void image_labeling(struct image_t *input, struct image_t *output, struct image_filter_t *filters, uint8_t filters_cnt, struct image_label_t *labels, uint16_t *labels_count)
Definition: blob_finder.c:33
uint8_t y_min
YUV color filter.
Definition: blob_finder.h:37
uint32_t x_sum
Sum of all x coordinates (used to find center of gravity)
Definition: blob_finder.h:53
struct point_t contour[512]
Definition: blob_finder.h:56
uint8_t v_min
Definition: blob_finder.h:41
uint16_t corners[4]
Definition: blob_finder.h:59
uint8_t v_max
Definition: blob_finder.h:42
uint16_t y_min
Definition: blob_finder.h:52
uint32_t y_sum
Definition: blob_finder.h:54
uint16_t contour_cnt
Definition: blob_finder.h:57
Image helper functions like resizing, color filter, converters...
Definition: image.h:44
Definition: image.h:58
static struct FirstOrderLowPass filters[SYS_ID_CHIRP_NB_AXES]
Definition: sys_id_chirp.c:82
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
Definition: vl53l1_types.h:88
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
Definition: vl53l1_types.h:78
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
Definition: vl53l1_types.h:98