diff options
| author | Peter Kjellerstedt <pkj@axis.com> | 2025-09-24 04:03:51 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-09-23 20:44:20 -0700 |
| commit | b9fc1c079bc03cf09fd2b1504db81542f47eeec0 (patch) | |
| tree | 27def3c3cd4717a9f61ae7acbd953ef72b438d07 | |
| parent | c9922073e4fab54b5b743947b68bda75dc72b064 (diff) | |
| download | meta-openembedded-b9fc1c079bc03cf09fd2b1504db81542f47eeec0.tar.gz | |
opencv: Backport a patch to rename BlocksCompensator::feed()
This avoids a clash with the base class' pure virtual method with the
same name.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-support/opencv/opencv/0001-Renamed-templated-BlocksCompensator-feed-method-to-e.patch | 55 | ||||
| -rw-r--r-- | meta-oe/recipes-support/opencv/opencv_4.12.0.bb | 1 |
2 files changed, 56 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/opencv/opencv/0001-Renamed-templated-BlocksCompensator-feed-method-to-e.patch b/meta-oe/recipes-support/opencv/opencv/0001-Renamed-templated-BlocksCompensator-feed-method-to-e.patch new file mode 100644 index 0000000000..ec2bb2d100 --- /dev/null +++ b/meta-oe/recipes-support/opencv/opencv/0001-Renamed-templated-BlocksCompensator-feed-method-to-e.patch | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | From b28d9bef1d96d10e9a47d55a63d9f1443e6e3d2b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alexander Smorkalov <alexander.smorkalov@xperience.ai> | ||
| 3 | Date: Mon, 8 Sep 2025 14:52:58 +0300 | ||
| 4 | Subject: [PATCH] Renamed templated BlocksCompensator::feed method to exclude | ||
| 5 | claches with base class pure virtual method. | ||
| 6 | |||
| 7 | Upstream-Status: Backport [https://github.com/opencv/opencv/commit/b28d9bef1d96d10e9a47d55a63d9f1443e6e3d2b] | ||
| 8 | Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> | ||
| 9 | --- | ||
| 10 | .../opencv2/stitching/detail/exposure_compensate.hpp | 2 +- | ||
| 11 | modules/stitching/src/exposure_compensate.cpp | 6 +++--- | ||
| 12 | 2 files changed, 4 insertions(+), 4 deletions(-) | ||
| 13 | |||
| 14 | diff --git a/modules/stitching/include/opencv2/stitching/detail/exposure_compensate.hpp b/modules/stitching/include/opencv2/stitching/detail/exposure_compensate.hpp | ||
| 15 | index dea76c957b..2954f32ca3 100644 | ||
| 16 | --- a/modules/stitching/include/opencv2/stitching/detail/exposure_compensate.hpp | ||
| 17 | +++ b/modules/stitching/include/opencv2/stitching/detail/exposure_compensate.hpp | ||
| 18 | @@ -187,7 +187,7 @@ public: | ||
| 19 | |||
| 20 | protected: | ||
| 21 | template<class Compensator> | ||
| 22 | - void feed(const std::vector<Point> &corners, const std::vector<UMat> &images, | ||
| 23 | + void feedWithStrategy(const std::vector<Point> &corners, const std::vector<UMat> &images, | ||
| 24 | const std::vector<std::pair<UMat,uchar> > &masks); | ||
| 25 | |||
| 26 | private: | ||
| 27 | diff --git a/modules/stitching/src/exposure_compensate.cpp b/modules/stitching/src/exposure_compensate.cpp | ||
| 28 | index 59542d95ba..f7c33fa4ef 100644 | ||
| 29 | --- a/modules/stitching/src/exposure_compensate.cpp | ||
| 30 | +++ b/modules/stitching/src/exposure_compensate.cpp | ||
| 31 | @@ -460,7 +460,7 @@ void ChannelsCompensator::setMatGains(std::vector<Mat>& umv) | ||
| 32 | |||
| 33 | |||
| 34 | template<class Compensator> | ||
| 35 | -void BlocksCompensator::feed(const std::vector<Point> &corners, const std::vector<UMat> &images, | ||
| 36 | +void BlocksCompensator::feedWithStrategy(const std::vector<Point> &corners, const std::vector<UMat> &images, | ||
| 37 | const std::vector<std::pair<UMat,uchar> > &masks) | ||
| 38 | { | ||
| 39 | CV_Assert(corners.size() == images.size() && images.size() == masks.size()); | ||
| 40 | @@ -605,13 +605,13 @@ void BlocksCompensator::setMatGains(std::vector<Mat>& umv) | ||
| 41 | void BlocksGainCompensator::feed(const std::vector<Point> &corners, const std::vector<UMat> &images, | ||
| 42 | const std::vector<std::pair<UMat,uchar> > &masks) | ||
| 43 | { | ||
| 44 | - BlocksCompensator::feed<GainCompensator>(corners, images, masks); | ||
| 45 | + BlocksCompensator::feedWithStrategy<GainCompensator>(corners, images, masks); | ||
| 46 | } | ||
| 47 | |||
| 48 | void BlocksChannelsCompensator::feed(const std::vector<Point> &corners, const std::vector<UMat> &images, | ||
| 49 | const std::vector<std::pair<UMat,uchar> > &masks) | ||
| 50 | { | ||
| 51 | - BlocksCompensator::feed<ChannelsCompensator>(corners, images, masks); | ||
| 52 | + BlocksCompensator::feedWithStrategy<ChannelsCompensator>(corners, images, masks); | ||
| 53 | } | ||
| 54 | |||
| 55 | |||
diff --git a/meta-oe/recipes-support/opencv/opencv_4.12.0.bb b/meta-oe/recipes-support/opencv/opencv_4.12.0.bb index c9482741e7..d1ab87b06f 100644 --- a/meta-oe/recipes-support/opencv/opencv_4.12.0.bb +++ b/meta-oe/recipes-support/opencv/opencv_4.12.0.bb | |||
| @@ -34,6 +34,7 @@ SRC_URI = "git://github.com/opencv/opencv.git;name=opencv;branch=4.x;protocol=ht | |||
| 34 | file://0001-Make-ts-module-external.patch \ | 34 | file://0001-Make-ts-module-external.patch \ |
| 35 | file://0008-Do-not-embed-build-directory-in-binaries.patch \ | 35 | file://0008-Do-not-embed-build-directory-in-binaries.patch \ |
| 36 | file://27691.patch \ | 36 | file://27691.patch \ |
| 37 | file://0001-Renamed-templated-BlocksCompensator-feed-method-to-e.patch \ | ||
| 37 | " | 38 | " |
| 38 | SRC_URI:append:riscv64 = " file://0001-Use-Os-to-compile-tinyxml2.cpp.patch;patchdir=contrib" | 39 | SRC_URI:append:riscv64 = " file://0001-Use-Os-to-compile-tinyxml2.cpp.patch;patchdir=contrib" |
| 39 | 40 | ||
