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

This commit is contained in:
Vitaly Tuzov 2019-02-07 15:58:34 +03:00
parent f67b197d49
commit 07c10d6fc3

View File

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