-
-
Notifications
You must be signed in to change notification settings - Fork 383
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
Cook my template for priors #1195
Comments
Priors look pretty good to me. Why do you believe they are "bad"? |
Use ITK-SNAP to view the results. That's not what I see. |
I notice you view the priors6 file, but I viewed the prior6(not priors6). Might be the issue with the file upload? Thank you for viewing them again. |
Okay, now I can see it. Please prepare a complete example. Specifically, I want to be able to download a single folder with all the necessary input data. Also, please include just the command call. I want to be able to simply |
Thank you. Can you give me an email? The input data was a bit big. Actually, I have uploaded my new_template and the other files come from 'MICCAI2012-Multi-Atlas-Challenge-Data'. If that is ok, you may need to modify my command (Cookmytemplate.txt) and try to run it. |
You can find my email in my profile. And, again, please put together a sufficiently complete example that I can just navigate to the downloaded directory and run a single command without having to modify anything. |
Hi Nick,
I have attached the input data and command. Thank you for your help.
Hope you are having a good week and Looking forward to your reply.
Lin
Yanlin Wang
Postgraduate
Huaxi MR Research Center(HMRRC)
Department of Radiology
West China Hospital
Sichuan University
Chengdu, China, 610041
从QQ邮箱发来的超大附件
Cooktemplateprior.zip (753.04M, 2021年06月17日 10:02 到期)进入下载页面:http://mail.qq.com/cgi-bin/ftnExs_download?t=exs_ftn_download&k=78303735cb248cb547e731291763514a56555103570152521f020156504e570454541a0d055a56480203065100065a570a015406317663265d5f5c41540e130953445245430a0c171c4a5e45315e&code=20751cce
|
Thanks for this. Quick question, though---is there a reason why you just didn't call the ANTs script antsCookTemplatePriors.sh? |
I did my 'Cooktemplateprior.sh' by referring to this command. In addition, I also have tried this script and the issue still existed. I think it might be caused by incorrect input data? Thanks for your help. |
The problem is not the input data but rather numerical imprecision and this line. In your case, the max for these prior images is just greater than 1 so this line is removing those voxels. If you replace in your code (line 207) this
with
hen it should work. |
This was also a problem in I fixed it with ImageMath's WindowImage, eg
I will make a PR to do the same for the cooking script. |
Thanks @cookpa |
Oh wow, I missed this existing, this will simplify a number of things I write with the ThresholdImage/ImageMath multiply right now. |
Dear ANTs team,
I get a bad template priors from antsMultivariateTemplateConstruction2.sh as follow:
prior1.nii.gz
prior2.nii.gz
prior3.nii.gz
prior4.nii.gz
prior5.nii.gz
prior6.nii.gz
This is my template:
T_template0.nii.gz
This is my Cooktemplate command:
Cookmytemplate.txt
I can not solve it, please help me. Thank you.
The text was updated successfully, but these errors were encountered: