From 98ed06c3397a37196019921d493e6a02b03c5004 Mon Sep 17 00:00:00 2001 From: Yuantao Feng Date: Fri, 20 Jun 2025 15:09:21 +0800 Subject: [PATCH] fix: disable integral due to accuracy issue #27407 --- hal/riscv-rvv/include/imgproc.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hal/riscv-rvv/include/imgproc.hpp b/hal/riscv-rvv/include/imgproc.hpp index 24c8a22d7f..398e952802 100644 --- a/hal/riscv-rvv/include/imgproc.hpp +++ b/hal/riscv-rvv/include/imgproc.hpp @@ -236,8 +236,10 @@ int integral(int depth, int sdepth, int sqdepth, uchar* tilted_data, [[maybe_unused]] size_t tilted_step, int width, int height, int cn); -#undef cv_hal_integral -#define cv_hal_integral cv::rvv_hal::imgproc::integral +// Diasbled due to accuracy issue. +// Details see https://github.com/opencv/opencv/issues/27407. +//#undef cv_hal_integral +//#define cv_hal_integral cv::rvv_hal::imgproc::integral #endif // CV_HAL_RVV_1P0_ENABLED