Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
cv_blob_locator.c File Reference
+ Include dependency graph for cv_blob_locator.c:

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
 

Detailed Description

Author
C. De Wagter Find a colored item and track its geo-location and update a waypoint to it

Definition in file cv_blob_locator.c.

Macro Definition Documentation

#define Img (   X,
 
)    (((uint8_t*)img->buf)[(Y)*img->w*2+(X)*2])

Definition at line 72 of file cv_blob_locator.c.

Referenced by cv_window_func().

Function Documentation

void cv_blob_locator_init ( void  )
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().

+ Here is the call graph for this function:

void cv_blob_locator_start ( void  )

Definition at line 306 of file cv_blob_locator.c.

References georeference_init().

+ Here is the call graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void start_vision ( void  )

Definition at line 314 of file cv_blob_locator.c.

References cv_blob_locator_type, georeference_init(), and record_video.

+ Here is the call graph for this function:

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.

+ Here is the call graph for this function:

void stop_vision ( void  )

Definition at line 324 of file cv_blob_locator.c.

References cv_blob_locator_type, georeference_init(), and record_video.

+ Here is the call graph for this function:

Variable Documentation

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
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
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
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().