1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

Bug fixes in mask output.

Previously, the output mask of inliers could remain completely
uninitialized. This fix is the first part of a solution.
This commit is contained in:
Olexa Bilaniuk
2015-02-05 02:18:41 -05:00
parent b90800f0c7
commit 87c2b8197a
2 changed files with 8 additions and 5 deletions
+2 -5
View File
@@ -286,7 +286,7 @@ static bool createAndRunRHORegistrator(double confidence,
OutputArray _tempMask){
Mat src = _src.getMat();
Mat dst = _dst.getMat();
Mat tempMask = _tempMask.getMat();
Mat tempMask;
bool result;
double beta = 0.35;/* 0.35 is a value that often works. */
@@ -294,10 +294,7 @@ static bool createAndRunRHORegistrator(double confidence,
Mat tmpH = Mat(3, 3, CV_32FC1);
/* Create output mask. */
if(!tempMask.data){
tempMask = Mat(npoints, 1, CV_8U);
}
tempMask = Mat(npoints, 1, CV_8U);
/**
* Make use of the RHO estimator API.