Hi - with this wide age range I would be tempted to just use the FMRIB58 template.  It should be reasonably representative of the mean of your group, and is likely higher quality than templates you might easily generate (or a single-subject template).

Cheers.



On 29 Apr 2013, at 17:52, Rali Dimitrova <[log in to unmask]> wrote:

Dear Mark

Thank you very much for your reply. I will definitely look more into the methods you are suggesting! However, please correctly if I am wrong and if you think that I am overcomplicating this. The reason I am asking is the nature of the dataset I am working on - a relatively large sample consisting of several patient groups and two control groups, where subjects are aged between 16 and 80. It makes sense to me, that a template target created using 100 subjects aged 18~80 would be a better option than the standard fmrib58 target. On the other hand, however, there are the benefits of aligning to a real FA image (most sample representative) selected out of the healthy controls in the sample. The way I see it is that it would be best to "quantify" somehow my choice and objectively ensure the best possible outcome from the registration.

Thank you.

best wishes,
Rali


On 22 April 2013 13:17, Mark Jenkinson <[log in to unmask]> wrote:
Dear Rali,

There is no automatic way of assessing registration quality (as the best measures we have are the ones used to drive the registrations) in a way that is very meaningful across different image pairs.  You can assess the magnitude of the deformation by getting a field warp output (in relative convention without the affine component) by using fnirtfileutils with the coef warp (or directly use the --fout result from fnirt) and then get the average magnitude of these deformation vectors.  The latter can be easily done in fslmaths using:
  fslmaths warpfield -mas brainmask -sqr -Tmean meandef
  fslstats meandef -M
The fslmaths lines requires a brainmask in the reference space in order to stop it including warp vectors outside of the brain.  The fslstats command takes the mean of all the non-zero vectors, which should be all the ones inside the brain as it is unlikely that any of these will be exactly zero.

If you want to be a bit more precise and allow for non-zero vectors inside the brain then you can do:  "fslstats meandef -m", "fslstats brainmask -v" and "fslstats brainmask -V" and take the number from the meandef multiply it by the first number from the "brainmask -v" result (the total number of voxels) and divide by the first number from the "brainmask -V" result (the number of non-zero voxels).

All the best,
        Mark


On 16 Apr 2013, at 18:13, Rali Dimitrova <[log in to unmask]> wrote:

> Hi
>
> Apologies for this question in advance but what is the best way to compare the registration quality (or to quantify the degree of deformation applied to the FA maps) to standard space obtained using two different registration templates? Could the FA_to_target.* files be used to compute or extract the amount of warping required for each target across the FA data ?
>
> Thank you.
>
> Best wishes,
> Rali



--
Best wishes,
Rali Dimitrova
 
Division of Psychiatry,
University of Edinburgh


---------------------------------------------------------------------------
Stephen M. Smith, Professor of Biomedical Engineering
Associate Director,  Oxford University FMRIB Centre

FMRIB, JR Hospital, Headington, Oxford  OX3 9DU, UK
+44 (0) 1865 222726  (fax 222717)
[log in to unmask]    http://www.fmrib.ox.ac.uk/~steve
---------------------------------------------------------------------------