Fixed out of bound reading issue in erode() and dilate()
This commit is contained in:
parent
f67b197d49
commit
07c10d6fc3
@ -159,7 +159,7 @@ template<class VecUpdate> struct MorphRowVec
|
||||
i += vtype::nlanes/2;
|
||||
}
|
||||
|
||||
return i;
|
||||
return i - i % cn;
|
||||
}
|
||||
|
||||
int ksize, anchor;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user