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
b6e9ed4e
Commit
b6e9ed4e
authored
Aug 16, 2011
by
Alexey Spizhevoy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bug in opencv_stitching (added handling of homography evaluation failure)
parent
c66ed3e0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
main.cpp
modules/stitching/main.cpp
+1
-0
matchers.cpp
modules/stitching/matchers.cpp
+2
-0
No files found.
modules/stitching/main.cpp
View file @
b6e9ed4e
...
...
@@ -549,6 +549,7 @@ int main(int argc, char* argv[])
sz
.
width
=
cvRound
(
full_img_sizes
[
i
].
width
*
compose_scale
);
sz
.
height
=
cvRound
(
full_img_sizes
[
i
].
height
*
compose_scale
);
}
Rect
roi
=
warper
->
warpRoi
(
sz
,
static_cast
<
float
>
(
cameras
[
i
].
focal
),
cameras
[
i
].
R
);
corners
[
i
]
=
roi
.
tl
();
sizes
[
i
]
=
roi
.
size
();
...
...
modules/stitching/matchers.cpp
View file @
b6e9ed4e
...
...
@@ -465,6 +465,8 @@ void BestOf2NearestMatcher::match(const ImageFeatures &features1, const ImageFea
// Find pair-wise motion
matches_info
.
H
=
findHomography
(
src_points
,
dst_points
,
matches_info
.
inliers_mask
,
CV_RANSAC
);
if
(
abs
(
determinant
(
matches_info
.
H
))
<
numeric_limits
<
double
>::
epsilon
())
return
;
// Find number of inliers
matches_info
.
num_inliers
=
0
;
...
...
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