MatIterator_<T> works wrong with Mat::operator () (Bug #1182)


Added by caron liyan over 13 years ago. Updated over 13 years ago.


Status:Done Start date:
Priority:High Due date:
Assignee:Vadim Pisarevsky % Done:

0%

Category:core
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

function:
template<typename T>
void process(Mat& img) {
MatIterator_<T> it = img.begin<T>();
MatIterator_<T> itEnd = img.end<T>();
for( ; it != itEnd; ++it) {
dosomething();
}
}
Caller:
Mat img;
...
process(img(Rect(left,top,width,height)); //call the function

Problem:
in function process, the image is traveled by Mat_Iterator
but the img.at<T>(img.rows-1, img.cols-1) is emited.


History

Updated by caron liyan over 13 years ago

The last word emited is a spelling error. It should be 'omited'

Updated by Vadim Pisarevsky over 13 years ago

fixed in 2.3rc

  • Status changed from Open to Done
  • (deleted custom field) set to fixed

Also available in: Atom PDF