Note on Bounding Box

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
Print Friendly, PDF & Email

2 thoughts on “Note on Bounding Box

  1. 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.

admin へ返信するコメントをキャンセル

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください