-
Notifications
You must be signed in to change notification settings - Fork 109
numpy.linalg.LinAlgError when calling transform #40
Comments
@lester0866 I had this happen, too. It happened for an image that was very "white". This led staintools to see each pixel as a 'background pixel'. It then creates a mask, since it only transforms non-background pixels. This way, you can end up with 0 or 1 pixel that's left as non-background. If it then tries to compute the eigenvalues of this 'matrix', this is not possible. My solution was to change
And then, in
I hope this helps out anyone with these issues |
@YoniSchirris I did what you suggested but i am having another error, i don't know why !
|
Let me know if any additional information is needed for diagnosing the problem. Thank you for your time.
The text was updated successfully, but these errors were encountered: