From 22de887c00664a88b7877b2611dbb9e73f05a339 Mon Sep 17 00:00:00 2001 From: zihaomu Date: Tue, 30 Apr 2024 18:07:21 +0800 Subject: [PATCH] fix statckblur big kernel case --- modules/imgproc/src/stackblur.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/imgproc/src/stackblur.cpp b/modules/imgproc/src/stackblur.cpp index 6becbe5c41..a69e4b4101 100644 --- a/modules/imgproc/src/stackblur.cpp +++ b/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 _buf(bufSize + 16); uchar* bufptr = alignPtr(_buf.data(), 16); TBuf* diffVal = (TBuf*)bufptr;