int factor_
Sub-image X/Y size (sub-image is rectangular).
size_t index_
Current sub-image being scanned.
int width_
Width of the mask.
ImageMask(int width, int height)
std::vector< cv::Point2i > points_
Base points of the sub-images.
void addPoints(const std::vector< cv::Point2i > &ps)
const_iterator & operator++()
bool operator==(const const_iterator &rhs)
void addPoint(const cv::Point2i &p)
void addPoint(int x, int y)
const std::vector< cv::Point2i > & points_
Base points of the sub-images.
int dy_
Variables tracking the x/y position in the current sub-image.
const_iterator(const std::vector< cv::Point2i > &points, size_t index, int factor)
bool operator!=(const const_iterator &rhs)
const_iterator operator++(int)
const_iterator begin(int width=0) const
void setSize(int width, int height)
int height_
Height of the mask.
const_iterator end() const