public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/opencv] opencv5: fedpkg unused-patches
Date: Fri, 28 Aug 2026 13:30:36 GMT	[thread overview]
Message-ID: <178792383680.1.7078982345733421958.rpms-opencv-220448948fb5@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/opencv
            Branch : opencv5
            Commit : 220448948fb5940140c4460d6cee1051771eac6c
            Author : Sérgio M. Basto <sergio@serjux.com>
            Date   : 2016-07-22T17:50:53+01:00
            Stats  : +0/-102 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/opencv/c/220448948fb5940140c4460d6cee1051771eac6c?branch=opencv5

            Log:
            fedpkg unused-patches

opencv-2.4.11-listfilterout.patch
opencv-2.4.12.3-gcc6.patch

---
diff --git a/opencv-2.4.11-listfilterout.patch b/opencv-2.4.11-listfilterout.patch
deleted file mode 100644
index 14de6e2..0000000
--- a/opencv-2.4.11-listfilterout.patch
+++ /dev/null
@@ -1,34 +0,0 @@
---- opencv-2.4.11/samples/gpu/CMakeLists.txt.orig	2015-02-25 13:10:31.000000000 +0100
-+++ opencv-2.4.11/samples/gpu/CMakeLists.txt	2015-05-19 18:35:11.803554049 +0200
-@@ -4,6 +4,15 @@
-                                      opencv_superres)
- ocv_check_dependencies(${OPENCV_GPU_SAMPLES_REQUIRED_DEPS})
- 
-+# remove all matching elements from the list
-+MACRO(list_filterout lst regex)
-+  foreach(item ${${lst}})
-+    if(item MATCHES "${regex}")
-+      list(REMOVE_ITEM ${lst} "${item}")
-+    endif()
-+  endforeach()
-+ENDMACRO()
-+
- if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
-   set(project "gpu")
-   string(TOUPPER "${project}" project_upper)
-@@ -69,15 +78,6 @@
-     endif()
-   ENDMACRO()
- 
--  # remove all matching elements from the list
--  MACRO(list_filterout lst regex)
--    foreach(item ${${lst}})
--      if(item MATCHES "${regex}")
--        list(REMOVE_ITEM ${lst} "${item}")
--      endif()
--    endforeach()
--  ENDMACRO()
--
-   file(GLOB all_samples RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp)
- 
-   if(NOT HAVE_OPENGL)

diff --git a/opencv-2.4.12.3-gcc6.patch b/opencv-2.4.12.3-gcc6.patch
deleted file mode 100644
index 71f7b5b..0000000
--- a/opencv-2.4.12.3-gcc6.patch
+++ /dev/null
@@ -1,68 +0,0 @@
-diff --git a/modules/contrib/src/chamfermatching.cpp b/modules/contrib/src/chamfermatching.cpp
---- a/modules/contrib/src/chamfermatching.cpp
-+++ b/modules/contrib/src/chamfermatching.cpp
-@@ -966,10 +966,8 @@ void ChamferMatcher::Matching::computeDistanceTransform(Mat& edges_img, Mat& dis
-     for (int y=0;y<h;++y) {
-         for (int x=0;x<w;++x) {
-             // initialize
--            if (&annotate_img!=NULL) {
--                annotate_img.at<Vec2i>(y,x)[0]=x;
--                annotate_img.at<Vec2i>(y,x)[1]=y;
--            }
-+            annotate_img.at<Vec2i>(y,x)[0]=x;
-+            annotate_img.at<Vec2i>(y,x)[1]=y;
- 
-             uchar edge_val = edges_img.at<uchar>(y,x);
-             if( (edge_val!=0) ) {
-@@ -1013,10 +1011,8 @@ void ChamferMatcher::Matching::computeDistanceTransform(Mat& edges_img, Mat& dis
-                 dist_img.at<float>(ny,nx) = dist;
-                 q.push(std::make_pair(nx,ny));
- 
--                if (&annotate_img!=NULL) {
--                    annotate_img.at<Vec2i>(ny,nx)[0]=annotate_img.at<Vec2i>(y,x)[0];
--                    annotate_img.at<Vec2i>(ny,nx)[1]=annotate_img.at<Vec2i>(y,x)[1];
--                }
-+                annotate_img.at<Vec2i>(ny,nx)[0]=annotate_img.at<Vec2i>(y,x)[0];
-+                annotate_img.at<Vec2i>(ny,nx)[1]=annotate_img.at<Vec2i>(y,x)[1];
-             }
-         }
-     }
-@@ -1107,26 +1103,22 @@ ChamferMatcher::Match* ChamferMatcher::Matching::localChamferDistance(Point offs
- 
-     float cost = (sum_distance/truncate_)/addr.size();
- 
-+    float* optr = orientation_img.ptr<float>(y)+x;
-+    float sum_orientation = 0;
-+    int cnt_orientation = 0;
- 
--    if (&orientation_img!=NULL) {
--        float* optr = orientation_img.ptr<float>(y)+x;
--        float sum_orientation = 0;
--        int cnt_orientation = 0;
-+    for (size_t i=0;i<addr.size();++i) {
- 
--        for (size_t i=0;i<addr.size();++i) {
--
--            if(addr[i] < (orientation_img.cols*orientation_img.rows) - (offset.y*orientation_img.cols + offset.x)){
--                                if (tpl->orientations[i]>=-CV_PI && (*(optr+addr[i]))>=-CV_PI) {
--                    sum_orientation += orientation_diff(tpl->orientations[i], (*(optr+addr[i])));
--                    cnt_orientation++;
--                }
-+        if(addr[i] < (orientation_img.cols*orientation_img.rows) - (offset.y*orientation_img.cols + offset.x)){
-+                            if (tpl->orientations[i]>=-CV_PI && (*(optr+addr[i]))>=-CV_PI) {
-+                sum_orientation += orientation_diff(tpl->orientations[i], (*(optr+addr[i])));
-+                cnt_orientation++;
-             }
-         }
-+    }
- 
--        if (cnt_orientation>0) {
--                        cost = (float)(beta*cost+alpha*(sum_orientation/(2*CV_PI))/cnt_orientation);
--        }
--
-+    if (cnt_orientation>0) {
-+                    cost = (float)(beta*cost+alpha*(sum_orientation/(2*CV_PI))/cnt_orientation);
-     }
- 
-     if(cost > 0){
-

                 reply	other threads:[~2026-08-28 13:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178792383680.1.7078982345733421958.rpms-opencv-220448948fb5@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox