-
Notifications
You must be signed in to change notification settings - Fork 14
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
Error when calling brain2mesh #13
Comments
this is embarrassing - I did not notice this question posted over a year ago. looks like the dropbox link has expired - let me know if this still an issue. |
@tmedani Can you please check that this is not an issue anymore? |
Hi @fangq,
no problem, we moved to another task in meantime and this one was not the top priority.
so the issue is still, I generated an equivalent data, here is the link to it: https://www.dropbox.com/s/57nyv6nz6xi6qwf/tissues.mat?dl=0
Thanks again for your help :) |
I am able to reproduce this issue on my Linux desktop. I believe the issue is caused by csf and gm surfaces are touching each-other. see this plot, where the red/black lines are gm surface poking outside of csf surface, and most of these are either co-planar or intersecting. because there is a |
Hi |
@DerfelLee, https://github.com/fangq/iso2mesh/blob/master/volface.m |
Thank you for your reply! However, I’m pretty sure that I’ve added the iso2mesh to the path. There is nothing wrong with the volface function, the error message is about ‘valface’. The error code is shown below. The first line of the error is that function ‘valface’ cannot be recognized.
Thanks again and best regards.
***@***.***
从 Windows 版邮件<https://go.microsoft.com/fwlink/?LinkId=550986>发送
发件人: Qianqian ***@***.***>
发送时间: 2022年5月2日 20:22
收件人: ***@***.***>
抄送: ***@***.***>; ***@***.***>
主题: Re: [fangq/brain2mesh] Error when calling brain2mesh (#13)
@DerfelLee<https://github.com/DerfelLee>, volface is a function in iso2mesh - I suppose you did not add path to iso2mesh, can you verify?
https://github.com/fangq/iso2mesh/blob/master/volface.m
―
Reply to this email directly, view it on GitHub<#13 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APMMVSPIGIBEIFZPLDPNQWLVH7CH3ANCNFSM42JYM4EQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@DerfelLee, you were right, there is a typo in a recent update to |
Thank you so much for replying me fixing the problem! Now I can successfully run the brain2mesh functions and get the ‘node’, ‘elem’ and ‘face’ matrixes. I am wondering whether these matrix can generate mesh files in ‘.mesh’ format and to be imported into AtlasViewer, is that possible?
Btw, I noticed that there are still something wrong with the ‘brain1020’ function, the error code is shown below:
***@***.***
The first line of the code says the index at position 1 is out of boundary.
Thanks again for paying attention on these issues and best regards!
从 Windows 版邮件<https://go.microsoft.com/fwlink/?LinkId=550986>发送
发件人: Qianqian ***@***.***>
发送时间: 2022年5月3日 21:39
收件人: ***@***.***>
抄送: ***@***.***>; ***@***.***>
主题: Re: [fangq/brain2mesh] Error when calling brain2mesh (#13)
@DerfelLee<https://github.com/DerfelLee>, you were right, there is a typo in a recent update to meshabox.m in iso2mesh. now it should be fixed. please redownload iso2mesh from github.
―
Reply to this email directly, view it on GitHub<#13 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APMMVSLKGE3WMRYBNT5KXNLVIET7PANCNFSM42JYM4EQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@DerfelLee, did you see the |
@fangq thanks for checking, btw, could we use these tissue with vol2mesh? Thanks again for your support, Best |
is there a way to refine the surface extraction process from the volume, |
The problem occurred when using the built in examples
发自我的iPhone
在 2022年5月6日,22:22,Qianqian Fang ***@***.***> 写道:
@DerfelLee<https://github.com/DerfelLee>, did you see the index at position 1 is out of boundary using the built in examples or one of your datasets? if the latter, I would like to get a small script to reproduce, can you share?
—
Reply to this email directly, view it on GitHub<#13 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APMMVSNJ5ELNB5LALQTOGHDVIUTI5ANCNFSM42JYM4EQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@DerfelLee and @tmedani, I am sorry that I haven't had chance working on brain2mesh for a while.
Update: never mind, I found a previously downloaded |
Hey, I am a complete newbie MATLAB user, sorry if some of my description is trivial. I ran into a few issues (on Mac M1, all necessary folders are added to the path). (0th issue:
1st issue:
Fine, I removed 'air', although the documentation says it shouldn't be an issue, but for now let's try without it. Then it ran smoothly until... 2nd issue
I saw that a similar issue was reported before with this comment there is a decouple option with surfboolean that can be used to push apart two surfaces that enclosing each other, but it is not used in the initial pass of the brain2mesh workflow. I will see what I can do to avoid this."_ Looking at the brain2mesh source code it seems like that the second loop with the decouple option is not reached despite of this fail, but I have no clue if this is really the issue, and if so, how I can overcome this. Thanks. |
Hi @fangq,
I'm trying to run the bran2mesh function on a segmented MRI into 5 tissues,
but I'm not able to make it work as expected, here is my example :
the link below contains the "tissues" data which is the segmentation of the MRI into 5 main tissues, ordered from inner to outer (label 1 to 5)
wm(1), gm(2), csf(3), skull(4) and scalp(5)
here is the code
here is the output
As usual, I will appreciate it If you can orient me to solve this issue.
Thank you in advance for your help.
best,
The text was updated successfully, but these errors were encountered: