Commit c2e5418e authored by will hunt's avatar will hunt

MSER: off-by-one bug

parent 5f30a0a0
...@@ -390,7 +390,7 @@ public: ...@@ -390,7 +390,7 @@ public:
int step = cols; int step = cols;
for( i = 1; i < rows-1; i++ ) for( i = 1; i < rows-1; i++ )
{ {
Pixel* pptr = &pixbuf[i*step + 1]; Pixel* pptr = &pixbuf[i*step];
for( j = 1; j < cols-1; j++ ) for( j = 1; j < cols-1; j++ )
{ {
pptr[j].val = 0; pptr[j].val = 0;
......
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