From 4c1f32e716fe6212718ba82102ceb222bec9150e Mon Sep 17 00:00:00 2001 From: penghuiho Date: Thu, 13 Nov 2025 13:32:08 +0800 Subject: [PATCH] Fix the issue of obtaining the size of the _src --- modules/imgproc/src/moments.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/imgproc/src/moments.cpp b/modules/imgproc/src/moments.cpp index 786573bbcb..5f910a26fb 100644 --- a/modules/imgproc/src/moments.cpp +++ b/modules/imgproc/src/moments.cpp @@ -401,7 +401,7 @@ static bool ocl_moments( InputArray _src, Moments& m, bool binary) const int TILE_SIZE = 32; const int K = 10; - Size sz = _src.getSz(); + Size sz = _src.size(); int xtiles = divUp(sz.width, TILE_SIZE); int ytiles = divUp(sz.height, TILE_SIZE); int ntiles = xtiles*ytiles;