Print

Print


Hello,

I currently have an image that is 64x64x39, with voxel sizes 
3.4375x3.4375x4. I would like to resample this image to be 256x256x39, 
and the voxel sizes would end up being .8594x.8594x4. However, I don't 
have any images that are 256x256x39; so, I was wondering how I can 
create a generic image with those dimensions, so I can then use imCalc 
to resample the original image. I imagine it involves spm_vol, 
spm_write_vol, etc. But I'm not sure how to handle the transformation 
matrix, in particular.
On a related note, let's say I want to resample an image that's 
64x64x37, and I *do* have a 256x256x37 image. However, the voxel sizes 
don't match up (x- and y- sizes are not different by a factor of 4). 
Does this cause a problem? And if so, I suppose I would just create a 
generic image of the same size I want in the end? I plan on using sinc 
interpolation probably, if that matters.

Thanks,
Chris