You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I could replicate it with 4.x at HEAD by displaying asp (which is a NaN)/v1 (which is -inf) in the code: you might not have a crash (if you do not have throwing NaNs), but you will have a NaN in the code.
System information (version)
Detailed description
Some found corners lead to
inf
being computed which screws up the code.To be precise: both
v1
andv2
end up containing-inf
which leads to a SIGILL atopencv_contrib/modules/mcc/src/checker_detector.cpp
Line 1109 in 9d0a451
inf/inf
(if you have throwing NaNs).A solution could be to add
if (Vcart.z == 0) Vcart.z += 0.0001;
afteropencv_contrib/modules/mcc/src/bound_min.cpp
Line 168 in 9d0a451
I am not familiar with the code to know whether it makes sense though.
Steps to reproduce
Run the following code
with the image:

It might not SIGILL for you but you can display the mentioned
cv::Point2f
and you will seeinf
.Issue submission checklist
forum.opencv.org, Stack Overflow, etc and have not found any solution
The text was updated successfully, but these errors were encountered: