-
Notifications
You must be signed in to change notification settings - Fork 2
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
Exception in create_distance_map in Windows #51
Comments
I am not sure to be honest, let me try to reproduce it. Thanks for your time on this. |
@NeuZhangQiang you could try meanwhile with:
I have changed I will explore meanwhile the exception in |
I have tested the following code:
And the bug is:
|
Ok, I will release the next version of sgext today to solve the latest one. Umm, could you try the version with the distance map, but in a much smaller image, just in case the exception is related to memory: mask = np.zeros(shape=[50, 50, 40], dtype=np.uint8)
mask[25:35, 25:35, 10:30] = 255
sgextImg.from_pyarray(mask)
dmap_image = sgext.scripts.create_distance_map(input=sgextImg, verbose=True)
thin_image = sgext.scripts.thin(input=sgextImg,
table_folder= sgext.tables_folder,
skel_type="end",
select_type="dmax",
input_distance_map_image=dmap_image,
persistence=2,
visualize=False,
verbose=True
) |
I cannot reproduce it, have you checked if it was a memory problem? Let me know |
I have run the following code:
But the bug is still reported:
The environment is:
And I think it is not a memory problem. |
Please update sgext: I am closing this issue, you were able to |
@phcerdan Thanks for sharing your wonderful package. I notice that the lastest version in pypi is 0.9.13 and the incompatible function arguments error in |
@LydiaLS That error could be triggered for many parameters, please open a new issue, post the minimal code that you are using, and the platform. Thanks! |
Reported in https://discourse.vtk.org/t/vmtk-center-lines-extraction-how-to-accelerate-it-and-how-to-extract-center-lines-from-small-vessel/4103/13
dmap_image = sgext.scripts.create_distance_map(input=sgextImg, verbose=True)
unhandled win32 exception occurred in python.exe
My environment is:
The text was updated successfully, but these errors were encountered: