Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
#include "modules/computer_vision/cv_blob_locator.h"
#include "modules/computer_vision/cv.h"
#include "modules/computer_vision/blob/blob_finder.h"
#include "modules/computer_vision/blob/imavmarker.h"
#include "modules/computer_vision/detect_window.h"
#include "modules/computer_vision/cv_georeference.h"
#include "generated/flight_plan.h"
#include <stdio.h>
Go to the source code of this file.
Macros | |
#define | Img(X, Y) (((uint8_t*)img->buf)[(Y)*img->w*2+(X)*2]) |
Functions | |
bool_t | cv_marker_func (struct image_t *img) |
bool_t | cv_window_func (struct image_t *img) |
bool_t | cv_blob_locator_func (struct image_t *img) |
void | cv_blob_locator_init (void) |
void | cv_blob_locator_periodic (void) |
void | cv_blob_locator_event (void) |
void | cv_blob_locator_start (void) |
void | cv_blob_locator_stop (void) |
void | start_vision (void) |
void | start_vision_land (void) |
void | stop_vision (void) |
Variables | |
uint8_t | color_lum_min |
uint8_t | color_lum_max |
uint8_t | color_cb_min |
uint8_t | color_cb_max |
uint8_t | color_cr_min |
uint8_t | color_cr_max |
uint8_t | cv_blob_locator_reset |
uint8_t | cv_blob_locator_type |
int | geofilter_length = 5 |
int | marker_size = 18 |
int | record_video = 0 |
volatile uint32_t | blob_locator = 0 |
volatile bool_t | blob_enabled = FALSE |
volatile bool_t | marker_enabled = FALSE |
volatile bool_t | window_enabled = FALSE |
Definition in file cv_blob_locator.c.
Definition at line 72 of file cv_blob_locator.c.
Referenced by cv_window_func().
void cv_blob_locator_event | ( | void | ) |
Definition at line 254 of file cv_blob_locator.c.
References blob_enabled, blob_locator, cv_blob_locator_type, camera_frame_t::f, FALSE, geofilter_length, georeference_filter(), georeference_project(), camera_frame_t::h, marker_enabled, camera_frame_t::px, camera_frame_t::py, TRUE, camera_frame_t::w, and window_enabled.
bool_t cv_blob_locator_func | ( | struct image_t * | img | ) |
Definition at line 122 of file cv_blob_locator.c.
References blob_enabled, blob_locator, image_t::buf, color_cb_max, color_cb_min, color_cr_max, color_cr_min, color_lum_max, color_lum_min, FALSE, image_t::h, image_create(), image_free(), IMAGE_GRADIENT, image_labeling(), p, image_label_t::pixel_cnt, image_filter_t::u_max, image_filter_t::u_min, image_filter_t::v_max, image_filter_t::v_min, image_t::w, image_label_t::x_sum, image_filter_t::y_max, image_filter_t::y_min, and image_label_t::y_sum.
Referenced by cv_blob_locator_init().
void cv_blob_locator_init | ( | void | ) |
Definition at line 220 of file cv_blob_locator.c.
References color_cb_max, color_cb_min, color_cr_max, color_cr_min, color_lum_max, color_lum_min, cv_add(), cv_blob_locator_func(), cv_blob_locator_reset, cv_marker_func(), cv_window_func(), and georeference_init().
void cv_blob_locator_periodic | ( | void | ) |
Definition at line 246 of file cv_blob_locator.c.
References record_video, TRUE, and video_thread_take_shot().
void cv_blob_locator_start | ( | void | ) |
Definition at line 306 of file cv_blob_locator.c.
References georeference_init().
void cv_blob_locator_stop | ( | void | ) |
Definition at line 310 of file cv_blob_locator.c.
bool_t cv_marker_func | ( | struct image_t * | img | ) |
Definition at line 57 of file cv_blob_locator.c.
References blob_locator, FALSE, marker(), marker_enabled, marker_size, marker_deviation_t::x, and marker_deviation_t::y.
Referenced by cv_blob_locator_init().
bool_t cv_window_func | ( | struct image_t * | img | ) |
Definition at line 77 of file cv_blob_locator.c.
References blob_locator, image_t::buf, detect_window_sizes(), FALSE, image_t::h, image_create(), image_free(), IMAGE_GRAYSCALE, image_to_grayscale(), Img, MODE_BRIGHT, image_t::w, and window_enabled.
Referenced by cv_blob_locator_init().
void start_vision | ( | void | ) |
Definition at line 314 of file cv_blob_locator.c.
References cv_blob_locator_type, georeference_init(), and record_video.
void start_vision_land | ( | void | ) |
Definition at line 319 of file cv_blob_locator.c.
References cv_blob_locator_type, georeference_init(), and record_video.
void stop_vision | ( | void | ) |
Definition at line 324 of file cv_blob_locator.c.
References cv_blob_locator_type, georeference_init(), and record_video.
volatile bool_t blob_enabled = FALSE |
Definition at line 51 of file cv_blob_locator.c.
Referenced by cv_blob_locator_event(), and cv_blob_locator_func().
volatile uint32_t blob_locator = 0 |
Definition at line 49 of file cv_blob_locator.c.
Referenced by cv_blob_locator_event(), cv_blob_locator_func(), cv_marker_func(), and cv_window_func().
uint8_t color_cb_max |
Definition at line 37 of file cv_blob_locator.c.
Referenced by cv_blob_locator_func(), and cv_blob_locator_init().
uint8_t color_cb_min |
Definition at line 36 of file cv_blob_locator.c.
Referenced by cv_blob_locator_func(), and cv_blob_locator_init().
uint8_t color_cr_max |
Definition at line 40 of file cv_blob_locator.c.
Referenced by cv_blob_locator_func(), and cv_blob_locator_init().
uint8_t color_cr_min |
Definition at line 39 of file cv_blob_locator.c.
Referenced by cv_blob_locator_func(), and cv_blob_locator_init().
uint8_t color_lum_max |
Definition at line 34 of file cv_blob_locator.c.
Referenced by cv_blob_locator_func(), and cv_blob_locator_init().
uint8_t color_lum_min |
Definition at line 33 of file cv_blob_locator.c.
Referenced by cv_blob_locator_func(), and cv_blob_locator_init().
uint8_t cv_blob_locator_reset |
Definition at line 42 of file cv_blob_locator.c.
Referenced by cv_blob_locator_init().
uint8_t cv_blob_locator_type |
Definition at line 43 of file cv_blob_locator.c.
Referenced by cv_blob_locator_event(), start_vision(), start_vision_land(), and stop_vision().
int geofilter_length = 5 |
Definition at line 45 of file cv_blob_locator.c.
Referenced by cv_blob_locator_event().
volatile bool_t marker_enabled = FALSE |
Definition at line 52 of file cv_blob_locator.c.
Referenced by cv_blob_locator_event(), and cv_marker_func().
int marker_size = 18 |
Definition at line 46 of file cv_blob_locator.c.
Referenced by cv_marker_func().
int record_video = 0 |
Definition at line 47 of file cv_blob_locator.c.
Referenced by cv_blob_locator_periodic(), start_vision(), start_vision_land(), and stop_vision().
volatile bool_t window_enabled = FALSE |
Definition at line 53 of file cv_blob_locator.c.
Referenced by cv_blob_locator_event(), and cv_window_func().