Commit 808190c0 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

fixed LineIterator constructor in order to make LineIterator::pos() work properly (#408)

parent 686e28ee
...@@ -229,8 +229,8 @@ LineIterator::LineIterator(const Mat& img, Point pt1, Point pt2, ...@@ -229,8 +229,8 @@ LineIterator::LineIterator(const Mat& img, Point pt1, Point pt2,
} }
this->ptr0 = img.data; this->ptr0 = img.data;
this->step = (int)step; this->step = (int)img.step;
this->elemSize = bt_pix; this->elemSize = bt_pix0;
} }
static void static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment