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
fast_rosten.c File Reference
#include <stdlib.h>
#include "fast_rosten.h"
+ Include dependency graph for fast_rosten.c:

Go to the source code of this file.

Functions

static void fast_make_offsets (int32_t *pixel, uint16_t row_stride, uint8_t pixel_size)
 Make offsets for FAST9 calculation. More...
 
struct point_tfast9_detect (struct image_t *img, uint8_t threshold, uint16_t min_dist, uint16_t x_padding, uint16_t y_padding, uint16_t *num_corners)
 Do a FAST9 corner detection. More...
 

Function Documentation

struct point_t* fast9_detect ( struct image_t img,
uint8_t  threshold,
uint16_t  min_dist,
uint16_t  x_padding,
uint16_t  y_padding,
uint16_t num_corners 
)

Do a FAST9 corner detection.

Parameters
[in]*imgThe image to do the corner detection on
[in]thresholdThe threshold which we use for FAST9
[in]min_distThe minimum distance in pixels between detections
[in]x_paddingThe padding in the x direction to not scan for corners
[in]y_paddingThe padding in the y direction to not scan for corners
[out]*num_cornersThe amount of corners found
Returns
The corners found

Definition at line 49 of file fast_rosten.c.

References image_t::buf, FALSE, fast_make_offsets(), image_t::h, IMAGE_YUV422, p, TRUE, image_t::type, image_t::w, point_t::x, and point_t::y.

Referenced by opticflow_calc_frame().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void fast_make_offsets ( int32_t pixel,
uint16_t  row_stride,
uint8_t  pixel_size 
)
static

Make offsets for FAST9 calculation.

Parameters
[out]*pixelThe offset array of the different pixels
[in]row_strideThe row stride in the image

Definition at line 3645 of file fast_rosten.c.

Referenced by fast9_detect().

+ Here is the caller graph for this function: