MatIterator_<T> works wrong with Mat::operator () (Bug #1182)
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