Commit 07c10d6f authored by Vitaly Tuzov's avatar Vitaly Tuzov

Fixed out of bound reading issue in erode() and dilate()

parent f67b197d
......@@ -159,7 +159,7 @@ template<class VecUpdate> struct MorphRowVec
i += vtype::nlanes/2;
}
return i;
return i - i % cn;
}
int ksize, anchor;
......
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