Regression: OpenCL warpPerspective with INTER_LINEAR fails on single-channel (8UC1) images in OpenCV 4.13.0, while multi-channel (8UC3/8UC4) pass

#90 · open · 0 comments

View on GitHub ↗

lstahlman

> Mirrored from upstream: https://github.com/opencv/opencv/issues/28384 > Original author: @Lurie97 · created 2026-01-09T07:45:38Z > Upstream labels: `bug`, `category: imgproc`, `platform: arm` > Selection: mirrored by mirror-issues.py --- ### System Information OpenCV version: 4.13.0 (upgraded from 4.12.0; toolchain and BSP unchanged) Build: WITH_OPENCL=ON (OpenCL enabled) Platform: ARM (embedded), Yocto SDK toolchain (exact model/ICD details can be added) OpenCL: using default ICD on the platform Generator: Ninja / CMake (unchanged across versions) ### Detailed description After upgrading from OpenCV 4.12.0 to 4.13.0 (no changes to toolchain or BSP), opencv_test_imgproc shows a regression only for OpenCL warpPerspective with INTER_LINEAR on 8UC1. The same tests pass for 8UC3 and 8UC4. Disabling OpenCL makes all tests pass, suggesting the regression is confined to the OCL single-channel linear interpolation path. ### Steps to reproduce Build OpenCV 4.13.0 with OpenCL enabled. Run opencv_test_imgproc, focus on modules/imgproc/test/ocl/test_warp.cpp. Observe failures for: OCL_ImgprocWarp/WarpPerspective.Mat/4 where GetParam() = (8UC1, INTER_LINEAR, false, false) OCL_ImgprocWarp/WarpPerspective.Mat/6 where GetParam() = (8UC1, INTER_LINEAR, true, false) Compare to multi-channel cases (8UC3/8UC4) and CPU path (OpenCL disabled). ### Issue submission checklist - [x] I report the issue, it's not a question - [x] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution - [x] I updated to the latest OpenCV version and the issue is still there - [x] There is reproducer code and related data files (videos, images, onnx, etc)

Comments