Files
opencv-MIRROR/modules/core/test
Sridhar 9940db5599 Merge pull request #29911 from sridhar-git05:fix-broadcast-zero-dimension-5x
core: handle zero-sized broadcast dimensions - #29911

### Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [x] There is a reference to the original bug report and related work
- [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [ ] The feature is well documented and sample code can be built with the project CMake

Port the fix from #29878 to the 5.x branch.

This adds a guard for zero-sized destination matrices in
cv::broadcast() and a regression test covering broadcasting
from {1, 0} to {3, 0}.

The relevant BroadcastTo.* tests pass locally.

Related: #29878
2026-09-10 10:31:04 +03:00
..
2026-02-20 22:05:35 +03:00
2026-07-28 20:28:24 +05:30
2018-02-12 07:09:43 -05:00
2026-05-24 17:28:53 +03:00
2026-02-20 22:05:35 +03:00
2026-05-25 17:49:25 +03:00
2026-05-25 17:49:25 +03:00
2024-08-28 15:06:19 +03:00
2024-01-23 17:06:52 +03:00
2018-02-03 19:39:47 +00:00
2025-11-18 08:51:08 +03:00