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
55698548
Commit
55698548
authored
Mar 12, 2013
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid assert in lapac.cpp if findHomography fails in BestOf2NearestMatcher::match
parent
9f3ce0dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
lapack.cpp
modules/core/src/lapack.cpp
+1
-0
matchers.cpp
modules/stitching/src/matchers.cpp
+1
-1
No files found.
modules/core/src/lapack.cpp
View file @
55698548
...
@@ -878,6 +878,7 @@ double cv::determinant( InputArray _mat )
...
@@ -878,6 +878,7 @@ double cv::determinant( InputArray _mat )
size_t
step
=
mat
.
step
;
size_t
step
=
mat
.
step
;
const
uchar
*
m
=
mat
.
data
;
const
uchar
*
m
=
mat
.
data
;
CV_Assert
(
!
mat
.
empty
()
);
CV_Assert
(
mat
.
rows
==
mat
.
cols
&&
(
type
==
CV_32F
||
type
==
CV_64F
));
CV_Assert
(
mat
.
rows
==
mat
.
cols
&&
(
type
==
CV_32F
||
type
==
CV_64F
));
#define Mf(y, x) ((float*)(m + y*step))[x]
#define Mf(y, x) ((float*)(m + y*step))[x]
...
...
modules/stitching/src/matchers.cpp
View file @
55698548
...
@@ -573,7 +573,7 @@ void BestOf2NearestMatcher::match(const ImageFeatures &features1, const ImageFea
...
@@ -573,7 +573,7 @@ void BestOf2NearestMatcher::match(const ImageFeatures &features1, const ImageFea
// Find pair-wise motion
// Find pair-wise motion
matches_info
.
H
=
findHomography
(
src_points
,
dst_points
,
matches_info
.
inliers_mask
,
CV_RANSAC
);
matches_info
.
H
=
findHomography
(
src_points
,
dst_points
,
matches_info
.
inliers_mask
,
CV_RANSAC
);
if
(
std
::
abs
(
determinant
(
matches_info
.
H
))
<
std
::
numeric_limits
<
double
>::
epsilon
())
if
(
matches_info
.
H
.
empty
()
||
std
::
abs
(
determinant
(
matches_info
.
H
))
<
std
::
numeric_limits
<
double
>::
epsilon
())
return
;
return
;
// Find number of inliers
// Find number of inliers
...
...
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