1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-20 04:25:42 +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:
Alexander Smorkalov
2025-03-26 17:11:37 +03:00
committed by GitHub

View File

@@ -166,6 +166,9 @@ void CBoundMin::calculate()
{
j = (i + 1) % 4;
Vcart = lines[i].cross(lines[j]);
if (fabs(Vcart.z) <= 1e-6){
continue;
}
Vhom.x = Vcart.x / Vcart.z;
Vhom.y = Vcart.y / Vcart.z;
V[i] = Vhom + mu;