vistalab/vistasoft — pull request #122 by htakemur (2014-12-10 00:25:00+00:00)
Title: Modifing the definition of the bounding box

In an original version, the size of the bounding box depends upon the size of reference image. This code strongly assumes that the reference image is compatible to ACPC space (1mm), and the bounding box is defined on the basis of that.
But this does not always work well, because sometimes reference and target images have different resolutions.
For example, if the resolution of reference image is lower, it makes a smaller bounding box for target image (defined in ACPC coordinates in mat file).
At this time, I made a change of bounding box definition; the size of the bounding box is defined by the size of reference image multiplied by pixel size. In this case, the bounding box becomes proper size even though the resolution of reference image is different from ACPC definition (1 mm).