Skip to content
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

Undefined function or variable 'dd' #2

Open
brosscle opened this issue Oct 21, 2022 · 5 comments
Open

Undefined function or variable 'dd' #2

brosscle opened this issue Oct 21, 2022 · 5 comments

Comments

@brosscle
Copy link

Hi, I am using your code to perform a brain extraction on CT images but I sometimes get stuck with an issue in the SkullStrip function, which is private so I cannot investigate. The error message is :
Error in SkullStrip (line 10) Unrecognized function or variable 'dd'

Do you have any hint about how to solve this issue ?
Thanks a lot !
Clément

@Uni-Summer
Copy link

hey,
sorry to bother,
but have you solved this error? I just met the same problem.
It would help a lot if you could reply. Thanks so much.
Best.
Ziying

@brosscle
Copy link
Author

brosscle commented Jun 7, 2023

Hi,
If I remember well, it was because the resulting extracted brain was empty, due to an error in the input image (for instance a badly converted nifti image containing a deformed brain or no brain at all).
However, since the function is private I couldn't resolve it properly.
Hope it will help you !
Best,
Clément

@Uni-Summer
Copy link

Thanks so much for your reply!
If I may ask, have you tried any other skull-stripping algorithms to perform well on CT? As a newbie, your advice can really help me.
Best.
Ziying

@brosscle
Copy link
Author

brosscle commented Jun 7, 2023

I tried the "classic" ones for MRI: FSL BET and PCNN3D, but I ended up using this script because I found the result a bit more robust. However those tests took place 3/4 years ago so other algorithms might have emerged, especially deep learning based ones.
If I had to do it again, and if no new deep learning algorithm suits me, I would probably try building my own brain extraction tool by taking advantage of the quantitative values of CT. I would probably begin by a thresholding the images between -15 and 150 HU and then apply image processing operations as morphological or "keep largest components" operations.
Hope this helps !
Best,
Clément

@Uni-Summer
Copy link

yes, I also tried FSL BET, and it performs badly in my case. however, this code only suits part of my dataset, it went wrong with some data. And the value of HU has been clipped to [0, 100] before input.
Still, thank you so much for your advice, I will try more methods.
Best,
Ziying

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