ed
Public Member Functions | Private Attributes | List of all members
ed::ImageMask::const_iterator Class Reference

#include <mask.h>

Public Member Functions

 const_iterator (const std::vector< cv::Point2i > &points, size_t index, int factor)
 
bool operator!= (const const_iterator &rhs)
 
cv::Point2i operator() ()
 
const_iteratoroperator++ ()
 
const_iterator operator++ (int)
 
bool operator== (const const_iterator &rhs)
 

Private Attributes

int dx_
 
int dy_
 Variables tracking the x/y position in the current sub-image. More...
 
int factor_
 Sub-image X/Y size (sub-image is rectangular). More...
 
size_t index_
 Current sub-image being scanned. More...
 
const std::vector< cv::Point2i > & points_
 Base points of the sub-images. More...
 

Detailed Description

Iterator that scans all sub-images in turn, scanning each sub-image from left to right, from top to bottom (assuming base position of a sub-image is its top-left corner).

Definition at line 112 of file mask.h.

Constructor & Destructor Documentation

◆ const_iterator()

ed::ImageMask::const_iterator::const_iterator ( const std::vector< cv::Point2i > &  points,
size_t  index,
int  factor 
)
inline

Iterator constructor.

Parameters
pointsBase points of the sub-images.
indexIndex of the first sub-image to scan.
factorSize of a rectangular sub-image.

Definition at line 121 of file mask.h.

Member Function Documentation

◆ operator!=()

bool ed::ImageMask::const_iterator::operator!= ( const const_iterator rhs)
inline

Definition at line 171 of file mask.h.

◆ operator()()

cv::Point2i ed::ImageMask::const_iterator::operator() ( )
inline

Compute the xy mask position of the iterator.

Definition at line 162 of file mask.h.

◆ operator++() [1/2]

const_iterator& ed::ImageMask::const_iterator::operator++ ( )
inline

Pre-increment operator. Increment the X position of the scan line, wrapping to the start of the next scan line, jump to the next sub-image at the end of the current sub-image.

Definition at line 140 of file mask.h.

◆ operator++() [2/2]

const_iterator ed::ImageMask::const_iterator::operator++ ( int  )
inline

Definition at line 127 of file mask.h.

◆ operator==()

bool ed::ImageMask::const_iterator::operator== ( const const_iterator rhs)
inline

Definition at line 170 of file mask.h.

Member Data Documentation

◆ dx_

int ed::ImageMask::const_iterator::dx_
private

Definition at line 176 of file mask.h.

◆ dy_

int ed::ImageMask::const_iterator::dy_
private

Variables tracking the x/y position in the current sub-image.

Definition at line 176 of file mask.h.

◆ factor_

int ed::ImageMask::const_iterator::factor_
private

Sub-image X/Y size (sub-image is rectangular).

Definition at line 177 of file mask.h.

◆ index_

size_t ed::ImageMask::const_iterator::index_
private

Current sub-image being scanned.

Definition at line 175 of file mask.h.

◆ points_

const std::vector<cv::Point2i>& ed::ImageMask::const_iterator::points_
private

Base points of the sub-images.

Definition at line 174 of file mask.h.


The documentation for this class was generated from the following file: