fixed #1048
This commit is contained in:
parent
62b966460d
commit
94a5bf88d0
@ -260,7 +260,11 @@ double calcBeta( const Mat& img )
|
||||
}
|
||||
}
|
||||
}
|
||||
beta = 1.f / (2 * beta/(4*img.cols*img.rows - 3*img.cols - 3*img.rows + 2) );
|
||||
if( beta <= std::numeric_limits<double>::epsilon() )
|
||||
beta = 0;
|
||||
else
|
||||
beta = 1.f / (2 * beta/(4*img.cols*img.rows - 3*img.cols - 3*img.rows + 2) );
|
||||
|
||||
return beta;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user