Hello Kyle,
I believe that spm_write_sn does exactly this:
function spm_write_sn(P,matname,bb,Vox,Hold)
% Write Out Normalized Images.
% FORMAT spm_write_sn(P,matname,bb,Vox, Hold)
% P - Image to transform.
% matname - File containing transformation information.
% bb - Bounding box (mm).
% Vox - Required voxel size (mm).
% Hold - Sampling method (see spm_sample_vol).
If you only want to use the 4x4 matrix, use spm_reslice:
function spm_reslice(P,flags)
% Rigid body reslicing of images
% FORMAT spm_reslice(P,flags)
%
% P - matrix of filenames {one string per row}
% All operations are performed relative to the first image.
% ie. Coregistration is to the first image, and resampling
% of images is into the space of the first image.
%
% flags - a structure containing various options. The fields are:
et cetera.
Is it possible that you drew the ROI in MNI space and that your
functionals are
not normalised?
Cheers,
Alle Meije Wink
Quoting Kyle Knierim <[log in to unmask]>:
> Hi,
>
> I ran into a snag while doing an ROI analysis. The ROI I drew is not
> coregistered to my functionals. Since the voxel values in the ROI are
> binary, SPM cannot carry out the segmentation process to corregister
the
> funcionals and the ROI directly. By corregistering the anatomical
volume on
> which the ROI was drawn to the mean functional image I believe I have
the
> parameters necessary for co-registration stored in a .mat file. This
works
> fine for viewing the ROI, but the analysis packages do not use the
.mat
> file.
>
> Is there a program that will apply .mat parameters to a volume and
write out
> a new, adjusted file?
>
> Thanks for your help!
>
> Kyle
>
>
--
Alle Meije Wink
Institute for Mathematics and Computing Science
University of Groningen
P.O. Box 800 9700 AV Groningen
Telephone: +31 50 363 71 27 Fax: +31 50 363 38 00
E-mail: [log in to unmask] WWW: http://www.cs.rug.nl/~wink
Please avoid sending me Word or PowerPoint attachments
(see http://www.fsf.org/philosophy/no-word-attachments.html)
|