关于antsMultivariateTemplateConstruction2.sh参数设置问题这是我在官方页面发布的问题,作者回答了我,但有一些细节我不是很明白,缺少图像这方面的背景知识
https://github.com/ANTsX/ANTs/discussions/1347
我问到了作者关于A maximum of 90 iterations at the coarsest level, 30 at the next coarsest, and 90 at full resolution的参数问题,关于这个参数help文件说明是:
作者在回答中有提及,但说到这个usage帮助说明有一点错误,the coarseness of the levels是由-f命令控制,最终更让我迷惑了:
-q: Max iterations for each pairwise registration (default = 100x100x70x20)
specified in the form ...xJxKxL where
- J = max iterations at coarsest resolution (here, reduced by power of 2^2)
- K = middle resolution iterations (here, reduced by power of 2)
- L = fine resolution iterations (here, full resolution).
- Finer resolutions take much more time per iteration than coarser resolutions.
I’m sorry the usage is a bit wrong here (copied from the older script), the coarseness of the levels is controlled by you with -f. I’ll update it.
-f: Shrink factors (default = 6x4x2x1): Also in the same form as -q max iterations. Needs to have the same number of components.
-s: Smoothing factors (default = 3x2x1x0): Also in the same form as -q max iterations. Needs to have the same number of components.
In the older script, -f and -s were hidden from the user and -f was fixed at powers of 2. So if you said -m 100x100x50x20, it would use shrink factors of 8x4x2x1.
在老版本antsMultivariateTemplateConstruction.sh中,关于Max-iterations in each registration是-m命令,新版本antsMultivariateTemplateConstruction2.sh是-q命令
-m: Max-iterations in each registration
所以,-q(新版本)或-m(旧版本)与-f之间是不是存在对应关系?
-q/-m不用默认的设置,-f是不是应该跟着变,这个关系应该怎么算,怎么理解?
作者提到So if you said -m 100x100x50x20, it would use shrink factors of 8x4x2x1,原默认设置是-q 100x100x70x20 -f 6x4x2x1,或者-q 30x20x4 -f 4x2x1