24 #include <fvfilters/roidraw.h>
25 #include <fvutils/color/color_object_map.h>
26 #include <fvutils/draw/drawer.h>
30 namespace firevision {
45 FilterROIDraw::FilterROIDraw(
const std::list<ROI> *rois,
border_style_t style)
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;