47 #ifndef _MIRA_RASTERRECT_H_ 48 #define _MIRA_RASTERRECT_H_ 81 template<
typename Visitor>
82 inline void rasterRect(
int xl,
int yl,
int xr,
int yr, Visitor&& visitor)
84 if (xl > xr) std::swap(xl,xr);
85 if (yl > yr) std::swap(yl,yr);
88 for(
int y = yl; yl < yr; yl++)
90 visitor(xl, yl, width);
101 template<
typename Visitor>
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
PointType minCorner
Definition: Rect.h:439
PointType maxCorner
Definition: Rect.h:440
void rasterRect(int xl, int yl, int xr, int yr, Visitor &&visitor)
Rasterizes an Rectangle (2D only).
Definition: RasterRect.h:82