The orientation etc of the brainmask and template must be the same. MINC
images are flipped with respect to most Analyze images. Therefore, I would
suggest re-slicing the brainmask.mnc image to match your customised template
data. You can do this with the coregister button by chosing the "reslice
only option". The "Space defining image" would be one of your your
customised templates. "Images to reslice" would be the brainmask.mnc file.
You should then be able to use the C:\matlabR12\spm2\apriori\rbrainmask.img
file for weighting the registration.
If this procedure crashes out, then try copying the brainmask.mnc file to a
directory with write permission, or changing the permissions on the
C:\matlabR12\spm2\apriori directory.
Best regards,
-John
> I'm working on a VBM study using the optimised protocol. I've created my
> own GM template.
>
> When I want to determine the optimised normalisation parameters (register
> native space-segmented GM to my GM template) I get the following error
> message:
>
> SPM2: spm_normalise_ui (v2.10) 16:13:03 - 08/02/2005
> ========================================================================
> Smoothing by 0 & 8mm..
> Coarse Affine Registration..
> Fine Affine Registration..
> ??? Error using ==> spm_affreg
> Reference images must all have the same orientation
>
> Error in ==> C:\matlabR12\spm2\spm_normalise.m
> On line 173 ==> [M,scal] = spm_affreg(VG1, VF1, aflags, M,scal);
>
> Error in ==> C:\matlabR12\spm2\spm_normalise_ui.m (run_ui)
> On line 352 ==> spm_normalise(Template, subj(i).P, subj(i).matname,...
>
> Error in ==> C:\matlabR12\spm2\spm_normalise_ui.m
> On line 272 ==> run_ui(defs);
>
> ??? Error while evaluating uicontrol Callback.
>
>
> This message only appears when using a (default) brainmask. Without a
> brainmask everything works fine.
>
> What can I do?
>
> Kind regards and thank you for your help
> Johannes
>
>
> Johannes Ahrendts
> South German Brain Imaging Center
> University of Freiburg
> Germany
> [log in to unmask]
|