LineIterator witout a Mat (#13843)
* LineIterator witout a Mat cv::LineIterator can be used without being attached to any cv::Mat, it only needs the size and type of data. An alternative constructor has been defined for that. In that case, a LineIterator can no more be dereferenced with the * operator, but pos() still returns valid pixel positions. It can be useful when LineIterator is just used to compute positions of pixels on a line, without requiring to build a Mat just for that. Use case : with a dataset that would represent a huge image, pixel positions can be pre-computed before querying the dataset API. * Update imgproc.hpp removed trailing spaces * Update drawing.cpp fixed warningpull/13868/head
parent
a6160b6994
commit
00e8c7810f
2 changed files with 23 additions and 15 deletions
Loading…
Reference in new issue