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
Got it, this is because the default value of Scalar.default_() is double.maxFinite, I forgot why I set maxfinite as the default value of scalar rather than zero...
For now, you can explicitly pass the borderValue: Scalar.black to fix,
When doing something like:
This immediately fails because
0,0
isInfinity
instead of0
.Here is equivalent C++ code which does return a Mat with finite values (in this case, just 1 iirc)
Edit: This also similarly happens when you use
CV_64FC1
; Except instead of+INF
, it returns1.7976931348623157e+308
or some similarly large numberThe text was updated successfully, but these errors were encountered: