-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory error performing a binary_erosion #954
Comments
@plooney please include a minimal code snipped to reproduce the error, and the exact error printout you are getting. |
I was going to play with this but it appears the file is Pickle protocol 3 thus Python 3.x only, whereas my environments are standardized to Python 2.x. For a platform- and Python version-agnostic way to share NumPy arrays in the future, consider the |
I have output the binary image as @JDWarner suggests. New file here http://ubuntuone.com/5rToLHpQdlXzHdfOOhD1OK Minimal code is
Error is
|
It looks like the error is in scipy. Using scipy.ndimage.morphology.binary_erosion
I get the same error. Should the following be equal
and
? The second crashes but the first is ok. |
Hey @plooney, Sorry that we have taken so long to get back to you. It looks like your issue got lost in the stack. It also looks like UbuntuOne got shut down, so if you want me to have another look at this you'll have to share your file somewhere else! As to your questions, you (usually) want an odd side length for your structuring elements, so that they are symmetric about a central pixel. So, How big is your image? I'm not sure why it should result in a memory error... |
@plooney Could you post your test image somewhere? |
Ok. I guess this is the case...
I suppose, the erosion kernel is too large. I'd suggest to close the issue and discuss this behaviour with |
@ev-br Hi! Do you think if it is worth reporting to |
Reporting it on the scipy tracker does no harm, I suppose. The blocker would be that someone actually looks into the |
Closing as not a bug of |
Using the following image
http://ubuntuone.com/0unwk6BVwTn5q9zGJR54vq
It's a pickled numpy array. When I use values on the order of a few hundred I get a memory error
The text was updated successfully, but these errors were encountered: