mirror of
https://github.com/opencv/opencv.git
synced 2026-07-25 21:33:04 +04:00
2bf262441f
Add missing DataLayout constants in generated bindings for 5.x #29074 - Added DATA_LAYOUT_* constants to missing_consts so they are manually injected into Core.java (same approach used for CV_8U, FILLED etc.) - Added DataLayout entry to type_dict so the generator correctly maps DataLayout ### Tests modules/dnn/misc/java/test/DnnBlobFromImageWithParamsTest.java: New test added: - testDataLayoutConstants: verifies all DATA_LAYOUT_* constants are accessible from Core Pre-existing tests enabled (were commented out earlier): - testBlobFromImageWithParamsNHWCScalarScale: verifies blobFromImageWithParams produces correct output with DATA_LAYOUT_NHWC and per-channel scalar scaling - testBlobFromImageWithParams4chMultiImage: verifies blobFromImagesWithParams correctly handles a batch of images with DATA_LAYOUT_NHWC layout Closes : #27264 ### 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 - [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [x] The feature is well documented and sample code can be built with the project CMake