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

pull/13775/head
Vitaly Tuzov 6 years ago
parent f67b197d49
commit 07c10d6fc3
  1. 2
      modules/imgproc/src/morph.cpp

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

Loading…
Cancel
Save