Fawkes API
Fawkes Development Version
|
24 #ifndef _FIREVISION_SCANLINE_LINE_GRID_H_
25 #define _FIREVISION_SCANLINE_LINE_GRID_H_
27 #include "scanlinemodel.h"
29 #include <fvutils/base/types.h>
30 #include <fvutils/color/yuv.h>
34 namespace firevision {
38 class ScanlineLineGrid :
public ScanlineModel
41 typedef std::list<fawkes::upoint_t> point_list_t;
46 unsigned int offset_hor,
47 unsigned int offset_ver,
49 unsigned int gap = 0);
65 virtual void set_dimensions(
unsigned int width,
unsigned int height,
ROI *roi = NULL);
66 virtual void set_offset(
unsigned int offset_x,
unsigned int offset_y);
69 unsigned int offset_hor,
70 unsigned int offset_ver,
77 unsigned int offset_ver_;
78 unsigned int offset_hor_;
79 unsigned int next_pixel_;
83 point_list_t point_list_;
84 point_list_t::iterator cur_;
91 #endif //FIREVISION_SCANLINE_LINE_GRID_H__
virtual ~ScanlineLineGrid()
Destructor.
virtual void set_roi(ROI *roi=NULL)
Sets the region-of-interest.
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_offset(unsigned int offset_x, unsigned int offset_y)
Sets offset.
virtual void set_pan_tilt(float pan, float tilt)
Set camera's pan/tilt values.
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.
Point with cartesian coordinates as unsigned integers.
unsigned int get_margin()
Get margin around points.
fawkes::upoint_t * operator++()
Postfix ++ operator.
virtual void set_dimensions(unsigned int width, unsigned int height, ROI *roi=NULL)
Sets the dimensions of the grid.
fawkes::upoint_t operator*()
Get the current coordinate.
const char * get_name()
Get name of scanline model.
virtual void set_robot_pose(float x, float y, float ori)
Set the robot's pose.
bool finished()
Check if all desired points have been processed.
fawkes::upoint_t * operator->()
Get pointer to current point.