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
: RuntimeWarning: divide by zero encountered in true_divide
result=front255/(255-back)
: RuntimeWarning: invalid value encountered in true_divide
result=front255/(255-back)
: RuntimeWarning: invalid value encountered in greater
result[result>255]=255
The text was updated successfully, but these errors were encountered:
before you do front * 255 / (255-back), you need to check if back has the value 255 (you cannot divide by zero). If the value is 255, you can set the result to white (255)
: RuntimeWarning: divide by zero encountered in true_divide
result=front255/(255-back)
: RuntimeWarning: invalid value encountered in true_divide
result=front255/(255-back)
: RuntimeWarning: invalid value encountered in greater
result[result>255]=255
The text was updated successfully, but these errors were encountered: