Print

Print


Dear Michael


I'm not really familiar with the MarsBar code, but maybe I can offer some advice from the Anatomy Toolbox side.

You should be able to select your output space as anatomical space or "standard" MNI. The latter is usually what you want, if your data was normalised with SPM.


For resampling the image to the functional resolution, you can use coregister->reslice only in SPM (image defining space would be the functional image, image to resample would be the VOI).


Hope this helps
Simon




----- Original Message -----
From: Michael Bannert <[log in to unmask]>
Date: Tuesday, January 6, 2009 12:44 pm
Subject: [SPM] compatibility problem: MarsBar & Anatomy Toolbox?

> Dear SPM list,
> 
> I tried to create an anatomical ROI at functional resolution. First I
> used the Anatomy Toolbox to create the ROI mask. Unfortunately, the
> Anatomy Toolbox does not allow you to specify the output space of the
> resulting image.
> 
> So I tried to resample the image to functional resolution using 
> MarsBarbut for some reason, it does not want to load the roi.mat file.
> 
> See below for error message
> 
> Any ideas how to solve this?
> 
> Thanks!
> 
> Michael
> 
> -----------------
> SPM2
> Matlab R2006b
> Windows XP
> 
> -----------------
> 
> Warning: Loading file
> 
> D:\Michael\masks\AIP\anatomy_toolbox\ROI_hAIP_MNI_roi.mat
> 
> did not return an ROI
> > In @maroi\private\my_loadroi at 21
>  In maroi.maroi at 126
>  In marsbar at 670
>  In marsbar at 1800
>  In marsbar at 507
>  In spm at 1276
> 
> ans =
> 
> "
> C
> :
> \
> P
> r
> o
> g
> r
> a
> m
> 
> F
> i
> l
> e
> s
> \
> M
> a
> t
> l
> a
> b
> \
> R
> 2
> 0
> 0
> 6
> b
> \
> t
> o
> o
> l
> b
> o
> x
> \
> s
> p
> m
> 2
> _
> m
> b
> \
> t
> o
> o
> l
> b
> o
> x
> \
> m
> a
> r
> s
> b
> a
> r
> \
> s
> p
> m
> 5
> ;
> "
> 
> n
> o
> t
> 
> f
> o
> u
> n
> d
> 
> i
> n
> 
> p
> a
> t
> h
> .
> 
> ??? Undefined function or method 'has_space' for input
> 
> arguments of type 'double'.
> 
> Error in ==> marsbar at 675
> if has_space(roi)
> 
> Error in ==> marsbar at 1800
> marsbar(optfields{my_task}{:});
> 
> Error in ==> marsbar at 507
> marsbar('mars_menu', 'Export ROI(s)', 'Export ROI(s)
> 
> to:',...
> 
> Error in ==> spm at 1276
> evalin('base',CBs{v-1})
> 
> ??? Error using ==> spm('PopUpCB',gcbo)
> Undefined function or method 'has_space' for input arguments
> 
> of type 'double'.
> 
> ??? Error while evaluating uicontrol Callback
> 

-----------------------------------------
 
Simon Eickhoff
Institut for Medicine (IME);  Research Center Jülich
Leo-Brandt-Str. 5;  52425  Juelich, Germany
Phone + 49 2461-61-5219 / Fax + 49 2461-61-2820
e-mail: [log in to unmask]  /  [log in to unmask] 




-------------------------------------------------------------------
-------------------------------------------------------------------
Forschungszentrum Jülich GmbH
52425 Jülich

Sitz der Gesellschaft: Jülich
Eingetragen im Handelsregister des Amtsgerichts Düren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDir'in Bärbel Brumme-Bothe
Geschäftsführung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr. Harald Bolt,
Dr. Sebastian M. Schmidt
-------------------------------------------------------------------
-------------------------------------------------------------------