mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-20 21:40:49 +08:00
Merge pull request #3911 from gursimarsingh:fixed_sigill_in_mcc
[BUG FIX] Resolves inf/inf issue in MCC
This commit is contained in:
@@ -166,6 +166,9 @@ void CBoundMin::calculate()
|
|||||||
{
|
{
|
||||||
j = (i + 1) % 4;
|
j = (i + 1) % 4;
|
||||||
Vcart = lines[i].cross(lines[j]);
|
Vcart = lines[i].cross(lines[j]);
|
||||||
|
if (fabs(Vcart.z) <= 1e-6){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
Vhom.x = Vcart.x / Vcart.z;
|
Vhom.x = Vcart.x / Vcart.z;
|
||||||
Vhom.y = Vcart.y / Vcart.z;
|
Vhom.y = Vcart.y / Vcart.z;
|
||||||
V[i] = Vhom + mu;
|
V[i] = Vhom + mu;
|
||||||
|
Reference in New Issue
Block a user