Something like that?
%function me_sphere(XYZ, r, sumflag, target)
% create spheres with radius r at positions XYZ in image with size of target
% XYZ - (nx3) matrix of coordinates of points (MNI coordinates)
% x1 y1 z1
% x2 y2 z2
% ...
% xn yn zn
%
% r - radius of sphere(s) in mm (default 10)
% sumflag - flag for sum/union of spheres (default 0 = union)
% target - target Volume or filename to define space and resolution
% ( default "[spmdir]/canonical/colin27T1_seg_MNI.img")
%
% Michael Erb 2009/01/23
% e-mail: [log in to unmask]
Am 29.07.2011 15:32, schrieb tony han:
> Dear all,
>
> I have a set of coordinates and want to create ROI (3mm-diameter
> sphere)files (each .hdr and .img file pair for each ROI). To create
> these files one by one is really time-consuming. I'm wondering whether
> there's some way (scripts or software) to create these ROI files once
> for all? Many thanks!
>
> all the best,
> Tony
--
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Dr. Michael Erb
Dep. Neuroimaging and MR-Physics
University Hospital Tübingen
Hoppe-Seyler-Str. 3
72076 Tübingen, Germany
Tel.: +49(0)7071/2987753 priv. +49(0)7071/61559
Fax.: +49(0)7071/294371
e-mail: <[log in to unmask]>
www: http://www.medizin.uni-tuebingen.de/nrad/sektion/
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
|