22 #ifndef __FVUTILS_DRAWER_FIELD_DRAWER_H__
23 #define __FVUTILS_DRAWER_FIELD_DRAWER_H__
25 #include <fvutils/draw/field.h>
27 #include <utils/math/types.h>
28 #include <fvutils/color/yuv.h>
36 class SharedMemoryImageBuffer;
44 void set_head_yaw(
float head_yaw);
48 void set_line_points(
const fld_line_points_t *points);
49 void set_line_points_est(
const fld_line_points_t *points_est);
51 void set_color_background(
YUV_t color);
52 void set_color_field(
YUV_t color);
53 void set_color_lines(
YUV_t color);
54 void set_color_line_points(
YUV_t color);
55 void set_color_line_points_est(
YUV_t color);
56 void set_color_own_pos(
YUV_t color);
57 void set_color_own_pos_est(
YUV_t color);
59 virtual void draw_field(
unsigned char *yuv422_planar,
unsigned int img_width,
unsigned int img_height,
60 bool draw_background =
true,
bool draw_landscape =
true);
63 inline void clear_own_pos();
64 inline float get_scale(
unsigned int img_width,
unsigned int img_height,
bool draw_landscape =
true)
const;
65 virtual void draw_line_points(
bool draw_landscape =
true,
float scale = 0)
const;
66 virtual void draw_lines(
YUV_t color,
bool draw_landscape =
true,
float scale = 0)
const;
77 const fld_line_points_t *__points;
78 const fld_line_points_t *__points_est;
83 YUV_t __c_line_points;
84 YUV_t __c_line_points_est;
86 YUV_t __c_own_pos_est;
unsigned int _img_width
The width of the target image buffer.
This class is used to draw a soccer field.
unsigned char * _img_buffer
The pointer to the target image buffer.
unsigned int _img_height
The height of the target image buffer.
This class acts as a container for lines on a soccer field.