ANTsX / ANTsPy

A fast medical imaging analysis library in Python with algorithms for registration, segmentation, and more.
https://antspyx.readthedocs.io
Apache License 2.0
608 stars 161 forks source link

Which parameter in the function ants.build_template() in antspy corresponds to the -r option in buildtemplateparallel.sh #513

Open angolin22 opened 8 months ago

angolin22 commented 8 months ago

hello, thanks for your work! I want to ask some questions:

  1. Could I ask that which parameter in the function ants.build_template() in antspy corresponds to the-roption in buildtemplateparallel.sh
  2. Does ants.build_template() support mask-based registration?
  3. Does CT images of constructing the template require preprocessing, such as resampling to isotropy and normalizing the Hu value to 0-255? Thanks for your reply!
ntustison commented 8 months ago

Could I ask that which parameter in the function ants.build_template() in antspy corresponds to the-roption in buildtemplateparallel.sh

I don't think it's available. But you can easily get something close enough by rigidly registering all your data to one of your subjects or an existing template.

Does ants.build_template() support mask-based registration?

No.

Does CT images of constructing the template require preprocessing, such as resampling to isotropy and normalizing the Hu value to 0-255?

Yeah, that's probably a good idea.

angolin22 commented 8 months ago

thanks for your reply

angolin22 commented 8 months ago

Hello, I want to ask about the parameters of the function ants.build_template(). Is there such a parameter Gaussian regularization in it. Thanks for your reply.

ntustison commented 8 months ago

No. FYI, you can find the parameters list from the help menu, help(ants.build_template).

Also, the python version is a more limited version of what's available in the bash scripts so don't expect equivalency in the set of available parameters.

angolin22 commented 8 months ago

OK,Thanks.

Also,I want to ask some questions.

  1. I would like to ask if the algorithm in ants.build_template is the weighted average template algorithm based on kernel regression?
  2. If a template is generated for several CT images of different sizes, what is the size of the final template?