8000 JavaError in 'nighres.surface.mesh_to_levelset' · Issue #180 · nighres/nighres · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

JavaError in 'nighres.surface.mesh_to_levelset' #180

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

Open
WonderChil opened this issue Apr 5, 2022 · 1 comment
Open

JavaError in 'nighres.surface.mesh_to_levelset' #180

WonderChil opened this issue Apr 5, 2022 · 1 comment

Comments

@WonderChil
Copy link
WonderChil commented Apr 5, 2022

Func: nighres.surface.mesh_to_levelset report error as below
Input file is results from FreeSurfer: 'orig.nii.gz' and ('lh.white', 'lh.pial')

Is there any limitation or requirements to use this function? Thanks!

File "....../site-packages/nighres/surface/mesh_to_levelset.py", line 97, in mesh_to_levelset 
        algorithm.execute()
nighresjava.JavaError: <super: <class 'JavaError'>, <JavaError object>>
    Java stacktrace:
**java.lang.ArrayIndexOutOfBoundsException: 1000410**
at de.mpg.cbs.core.surface.SurfaceMeshToLevelsetPseudoNormals.generateEdgeFaceList(SurfaceMeshToLevelsetPseudoNormals.java:589)
at de.mpg.cbs.core.surface.SurfaceMeshToLevelsetPseudoNormals.execute(SurfaceMeshToLevelsetPseudoNormals.java:107)
@piloubazin
Copy link
Member

your mesh has to be fully closed, and not contain any pathological triangles (collapsed to a single line or point). We tested it in the past with FreeSurfer meshes, but we may not have covered all possible cases. One possible workaround is to use FreeSurfer's segmentation in voxel space as basis with nighres.surface.probability_to_levelset()
Good luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0