Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
4ae4a705
Commit
4ae4a705
authored
8 years ago
by
lewgate
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a bug for seam_finders.cpp when computing the source and destination points of the seam
parent
f2e9588c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
seam_finders.cpp
modules/stitching/src/seam_finders.cpp
+1
-1
No files found.
modules/stitching/src/seam_finders.cpp
View file @
4ae4a705
...
...
@@ -638,7 +638,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
/
size
1
);
double
cx2
=
cvRound
(
sum
[
j
].
x
/
size2
),
cy2
=
cvRound
(
sum
[
j
].
y
/
size
2
);
double
dist
=
(
cx1
-
cx2
)
*
(
cx1
-
cx2
)
+
(
cy1
-
cy2
)
*
(
cy1
-
cy2
);
if
(
dist
>
maxDist
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment