Dear Remi,
Coregister:Estimate creates a dependency "Coregistration Matrix":
clear matlabbatch
matlabbatch{1}.spm.spatial.coreg.estimate.ref = '<UNDEFINED>';
matlabbatch{2}.cfg_basicio.var_ops.cfg_save_vars.vars.vcont(1) = ...
cfg_dep('Coregister: Estimate: Coregistration Matrix', ...
substruct('.','val', '{}',{1}, '.','val', '{}',{1}, '.','val', ...
'{}',{1}, '.','val', '{}',{1}), substruct('.','M'));
spm_jobman('interactive',matlabbatch);
Best regards,
Guillaume.
On 16/11/2018 09:21, Remi gau wrote:
> Hey all,
>
> I think I should know that but is there a way to get an SPM batch to
> coregister images that also outputs the transformation matrix?
>
> I know that spm_coreg does it but I am wondering if there is an hidden
> option I don't know about to actually do this in a batch.
>
> Best
>
> Remi
>
--
Guillaume Flandin, PhD
Wellcome Centre for Human Neuroimaging
UCL Queen Square Institute of Neurology
London WC1N 3BG
|