On Thu, 28 Apr 2005, Rafael Moreno wrote:
> I have implemented a program based on SPM99 that requires isotropic
> data. I intend to make it work with anisotropic data by resampling the
> input data, then process it and then resample the result back to the
> original voxel size. To set the voxel size to a desired value I am
> using the SPM functions proposed by John Ashburner
> (http://www.sph.umich.edu/~nichols/JohnsGems.html#Gem8)
>
> My question is about the "resample back" step. The function
> "spm_slice_vol" reads the data from the disk (using the structure
> returned by "spm_vol"), so in order to use it my program would need to
> copy the image on disk, then read and resample it back to the original
> voxel size and save the result on the disk again. Is there a way to
> apply a transformation matrix to a volume image on memory?
Dear Rafael, changing the voxel size needs resampling if the size (in mm)
of your image should remain the same. If you just change a transformation
matrix, then you would only scale the image.
Volkmar
--
Volkmar Glauche
-
Department of Neurology [log in to unmask]
Universitaetsklinikum Freiburg Phone 49(0)761-270-5331
Breisacher Str. 64 Fax 49(0)761-270-5310
79106 Freiburg
|