-
Notifications
You must be signed in to change notification settings - Fork 19
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
Demo does not support this data type (solution: use niimath) #3
Comments
What datatype is your image? You use niimath to detect the data type:
nii2mesh only supports the most popular data types (DT_UINT8 DT_UINT16 DT_INT16 DT_FLOAT32). Since niimath exports to float32 by default, you could try:
|
Thanks for your comment. As you can see below, the datatype of this nifti file is 'INT32' So demo still doesn't support the data type (solution:use niimath) |
Your call to |
Oh, sorry for my being unfamiliar with this toolbox. Brilliant idea! It saves my work! |
You can use Python, Matlab or bash scripts to automate this. FSL has a lot of helper bash functions to automate tasks. The inner loopo of your bash script would look like:
|
Thanks again! Here is my final code |
Hello, I met a problem when using nii2mesh.
./nii2mesh $SUBJECTS_DIR/sub-OAS30001_ses-d0129_T1w/mri/lh.amygdala_mask-in-rawavg.nii.gz -p 1 -l 0 -s 100 $SUBJECTS_DIR/sub-OAS30001_ses-d0129_T1w/mri/lh.amygdala.p1l0s100.stl
Demo does not support this data type (solution: use niimath)
I don't know why this error rises even when the input format is NIFTI. And after this, I tried to solve this by installing niimath but nothing changed.
So what's wrong?
The text was updated successfully, but these errors were encountered: