Merge pull request #25513 from zihaomu:fix_25498

fix statckblur big kernel case
pull/25524/head
Alexander Smorkalov 7 months ago committed by GitHub
commit 1f6f092a9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      modules/imgproc/src/stackblur.cpp

@ -547,7 +547,7 @@ public:
}
else
{
size_t bufSize = CN * (width + radius) * sizeof(TBuf) + 2 * CN * sizeof(TBuf);
size_t bufSize = CN * (width + kernelSize) * sizeof(TBuf) + 2 * CN * sizeof(TBuf);
AutoBuffer<uchar> _buf(bufSize + 16);
uchar* bufptr = alignPtr(_buf.data(), 16);
TBuf* diffVal = (TBuf*)bufptr;

Loading…
Cancel
Save