Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
imavmarker.c File Reference
#include "imavmarker.h"
+ Include dependency graph for imavmarker.c:

Go to the source code of this file.

Macros

#define Img(X, Y)   (source[(Y)*input->w*2+(X)*2+1])
 Find the marker location. More...
 
#define Out(X, Y)   (source[(Y)*input->w*2+(X)*2])
 

Functions

int AbsDiff (int A, int B)
 
struct marker_deviation_t marker (struct image_t *input, uint8_t M)
 

Detailed Description

Find a IMAV pattern

Definition in file imavmarker.c.

Macro Definition Documentation

◆ Img

#define Img (   X,
 
)    (source[(Y)*input->w*2+(X)*2+1])

Find the marker location.

Parameters
[in]*inputThe input image to filter
[in]MThe distance between the pixel of interest and farthest neighbor pixel [pixel]
Returns
The deviation of the marker location wrt the center.

Definition at line 39 of file imavmarker.c.

◆ Out

#define Out (   X,
 
)    (source[(Y)*input->w*2+(X)*2])

Definition at line 40 of file imavmarker.c.

Function Documentation

◆ AbsDiff()

int AbsDiff ( int  A,
int  B 
)
inline

Definition at line 43 of file imavmarker.c.

References A, and B.

Referenced by marker().

+ Here is the caller graph for this function:

◆ marker()

struct marker_deviation_t marker ( struct image_t input,
uint8_t  M 
)

Definition at line 51 of file imavmarker.c.

References AbsDiff(), if(), Img, marker_deviation_t::inlier, Out, marker_deviation_t::x, and marker_deviation_t::y.

Referenced by cv_marker_func().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: