mirror of
https://github.com/opencv/opencv.git
synced 2025-07-28 16:25:01 +08:00
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;
|
i += vtype::nlanes/2;
|
||||||
}
|
}
|
||||||
|
|
||||||
return i;
|
return i - i % cn;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ksize, anchor;
|
int ksize, anchor;
|
||||||
|
Loading…
Reference in New Issue
Block a user