24 #ifndef __FIREVISION_SCANLINE_LINE_GRID_H_ 25 #define __FIREVISION_SCANLINE_LINE_GRID_H_ 27 #include "scanlinemodel.h" 28 #include <fvutils/base/types.h> 29 #include <fvutils/color/yuv.h> 43 typedef std::list<fawkes::upoint_t> point_list_t;
47 unsigned int offset_hor,
unsigned int offset_ver,
48 ROI* roi = NULL,
unsigned int gap = 0);
64 virtual void set_dimensions(
unsigned int width,
unsigned int height,
ROI* roi = NULL);
65 virtual void set_offset(
unsigned int offset_x,
unsigned int offset_y);
67 unsigned int offset_hor,
unsigned int offset_ver,
ROI* roi = NULL);
72 unsigned int __height;
73 unsigned int __offset_ver;
74 unsigned int __offset_hor;
75 unsigned int __next_pixel;
79 point_list_t __point_list;
80 point_list_t::iterator __cur;
87 #endif //__FIREVISION_SCANLINE_LINE_GRID_H_ virtual ~ScanlineLineGrid()
Destructor.
Scanline model interface.
virtual void set_offset(unsigned int offset_x, unsigned int offset_y)
Sets offset.
fawkes::upoint_t operator*()
Get the current coordinate.
virtual void set_dimensions(unsigned int width, unsigned int height, ROI *roi=NULL)
Sets the dimensions of the grid.
bool finished()
Check if all desired points have been processed.
virtual void set_robot_pose(float x, float y, float ori)
Set the robot's pose.
const char * get_name()
Get name of scanline model.
Point with cartesian coordinates as unsigned integers.
unsigned int get_margin()
Get margin around points.
virtual void set_roi(ROI *roi=NULL)
Sets the region-of-interest.
fawkes::upoint_t * operator++()
Postfix ++ operator.
virtual void set_pan_tilt(float pan, float tilt)
Set camera's pan/tilt values.
fawkes::upoint_t * operator->()
Get pointer to current point.
ScanlineLineGrid(unsigned int width, unsigned int height, unsigned int offset_hor, unsigned int offset_ver, ROI *roi=NULL, unsigned int gap=0)
Constructor.
virtual void set_grid_params(unsigned int width, unsigned int height, unsigned int offset_hor, unsigned int offset_ver, ROI *roi=NULL)
Set all grid parameters.