Here I have an MRI data with the following parameters;
Vox dim: 91 109 91
Vox size: 2x2x2 mm
Origin: 46 64 37
Now I want to change the image into this;
Vox dim: 157 189 156
Vox size: 1x1x1 mm
Origin: 79 113 71
How can we set the Bounding Box?
As a result of trial and error, I got this.
[-78 -112 -70; 78 76 85]
Simple way to calculate this is the following;
Vox dim – Origin = positive value.
- 157-79=78 <– positive value in X
- 189-113=76 <– positive value in Y
- 156-71=85 <– positive value in Z
-(Vox dim – positive value -1) = negative value
- -(157-78-1)=-78 <– negative value in X
- -(189-76-1)=-112 <– negative value in Y
- -(156-85-1)=-70 <– negative value in Z
How can I execute the script in SPM like this?
Do I have to make a batch process in SPM8?
Or any other way to do?
Looking forward to hearing from you.
Best Regards,
Hee-Jung Song MD, PhD.
Hi Hee-Jung,
The simple way is to use resize_img.m provided by Ged Ridgway.
You can get the script from the below.
http://www0.cs.ucl.ac.uk/staff/g.ridgway/vbm/resize_img.m
Hope this helps,
Kiyotaka