projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46662cc
)
findHomography sets output mask to all zeros in case of no inlier
author
Philipp Hasper
<vcs@hasper.info>
Thu, 18 Feb 2016 16:58:28 +0000
(17:58 +0100)
committer
Philipp Hasper
<vcs@hasper.info>
Thu, 18 Feb 2016 16:58:28 +0000
(17:58 +0100)
modules/calib3d/src/fundam.cpp
patch
|
blob
|
history
diff --git
a/modules/calib3d/src/fundam.cpp
b/modules/calib3d/src/fundam.cpp
index
57e3699
..
20803a5
100644
(file)
--- a/
modules/calib3d/src/fundam.cpp
+++ b/
modules/calib3d/src/fundam.cpp
@@
-411,7
+411,13
@@
cv::Mat cv::findHomography( InputArray _points1, InputArray _points2,
tempMask.copyTo(_mask);
}
else
+ {
H.release();
+ if(_mask.needed() ) {
+ tempMask = Mat::zeros(npoints >= 0 ? npoints : 0, 1, CV_8U);
+ tempMask.copyTo(_mask);
+ }
+ }
return H;
}