[opencv] 38/71: Fix a latent bug for seam_finders.cpp when computing the source and destination points of the seam
Nobuhiro Iwamatsu
iwamatsu at moszumanska.debian.org
Mon Oct 17 20:16:27 UTC 2016
This is an automated email from the git hooks/post-receive script.
iwamatsu pushed a commit to annotated tag 2.4.13.1
in repository opencv.
commit 0af9bf457ae81f76b45f982e8816a4ba1b0173f8
Author: lewgate <lewgate at gmail.com>
Date: Sun Jul 31 16:22:53 2016 +0800
Fix a latent bug for seam_finders.cpp when computing the source and destination points of the seam
---
modules/stitching/src/seam_finders.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/stitching/src/seam_finders.cpp b/modules/stitching/src/seam_finders.cpp
index 234f204..b01e82d 100644
--- a/modules/stitching/src/seam_finders.cpp
+++ b/modules/stitching/src/seam_finders.cpp
@@ -630,7 +630,7 @@ bool DpSeamFinder::getSeamTips(int comp1, int comp2, Point &p1, Point &p2)
{
double size1 = static_cast<double>(points[i].size()), size2 = static_cast<double>(points[j].size());
double cx1 = cvRound(sum[i].x / size1), cy1 = cvRound(sum[i].y / size1);
- double cx2 = cvRound(sum[j].x / size2), cy2 = cvRound(sum[j].y / size1);
+ double cx2 = cvRound(sum[j].x / size2), cy2 = cvRound(sum[j].y / size2);
double dist = (cx1 - cx2) * (cx1 - cx2) + (cy1 - cy2) * (cy1 - cy2);
if (dist > maxDist)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opencv.git
More information about the debian-science-commits
mailing list