Abhishek Gola ecd208bc9f Merge pull request #30976 from ternaus/codex/pow-zero-any-channel
core: fix pow with zero exponent on high-channel images 🤖🤖🤖

The zero-exponent branch of cv::pow fills the destination with a four-component Scalar. CPU outputs with more than four channels reject it. Use a single numeric input that broadcasts to every channel for this case. CUDA output continues through the four-component path required by its OutputArray implementation.

The 5.1 wheel reproduces the assertion for five and nine channels. A patched ARM64 Release core build passed a native 24-case check across Mat and UMat, CV_8U, CV_16F and CV_32F, and channels 1, 4, 5 and 9. Added a parameterized Core regression test.
2026-11-20 09:15:31 +05:30
2018-10-11 17:57:51 +00:00
2026-11-18 19:15:21 +03:00
2026-11-18 19:15:21 +03:00
2025-08-07 10:35:20 +03:00

OpenCV: Open Source Computer Vision Library

Resources

Contributing

Please read the contribution guidelines before starting work on a pull request.

Summary of the guidelines:

  • One pull request per issue;
  • Choose the right base branch;
  • Include tests and documentation;
  • Clean up "oops" commits before submitting;
  • Follow the coding style guide.

Additional Resources

Description
Languages
C++ 87.7%
C 3.1%
Python 2.9%
CMake 2%
Java 1.5%
Other 2.6%