24 #include <fvfilters/roidraw.h> 25 #include <fvutils/color/color_object_map.h> 26 #include <fvutils/draw/drawer.h> 59 FilterROIDraw::draw_roi(
const ROI *roi)
64 bool draw_black =
false;
70 for (
unsigned int x = roi->
start.
x; x <= end.
x ; ++x) {
73 draw_black = !draw_black;
81 for (
unsigned int y = roi->
start.
y; y <= end.
y; ++y) {
84 draw_black = !draw_black;
96 unsigned char *ldyp = dyp;
130 for (std::list<ROI>::const_iterator r = __rois->begin(); r != __rois->end(); ++r) {
155 __border_style = style;
fawkes::upoint_t start
ROI start.
unsigned int y
y coordinate
unsigned int x
x coordinate
unsigned int width
ROI width.
unsigned int image_width
width of image that contains this ROI
static YUV_t_struct black()
Displays border dashed black and color of hint.
unsigned int image_height
height of image that contains this ROI
void set_buffer(unsigned char *buffer, unsigned int width, unsigned int height)
Set the buffer to draw to.
FilterROIDraw(const std::list< ROI > *rois=0, border_style_t style=INVERTED)
Constructor.
virtual ~FilterROIDraw()
Destructor.
virtual void apply()
Apply the filter.
Point with cartesian coordinates as unsigned integers.
unsigned int height
ROI height.
border_style_t
Defines the possible border styles to display a ROI.
unsigned int line_step
line step
void color_point(unsigned int x, unsigned int y)
Color the given point.
unsigned char * dst
Destination buffer.
static YUV_t get_color(color_t color)
YUV_t getter.
unsigned int pixel_step
pixel step
color_t color
ROI primary color.
ROI * dst_roi
Destination ROI.
void set_rois(const std::list< ROI > *rois)
Set ROIs.
void set_style(border_style_t style)
Sets the preferred style.
void set_color(unsigned char y, unsigned char u, unsigned char v)
Set drawing color.