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