Merge pull request #8221 from csukuangfj:csukuangfj-path-2

This commit is contained in:
Alexander Alekhin 2017-02-19 10:15:59 +00:00
commit b2da9df82d

View File

@ -1893,7 +1893,7 @@ public:
// first. raw pointer access.
for (int r = 0; r < image.rows; ++r) {
Pixel* ptr = image.ptr<Pixel>(0, r);
Pixel* ptr = image.ptr<Pixel>(r, 0);
const Pixel* ptr_end = ptr + image.cols;
for (; ptr != ptr_end; ++ptr) {
ptr->x = 255;