Conversion of coordinates between two images

34 sec read

Assume you have an image F and you identify a point (x,y,z) on this image (say with SPM’s display function). You then normalize this image F according to a template image G using SPM. Now you want to know that point’s corresponding coordinate after normalization (x1, y1, z1). How do you do that?

If that point is still identifiable visually in the normalized image, then you can simply use SPM’s display function to get the coordinate. But if it’s not, or you have a lot of points to identify, you can use the following methods:

After normalization you will find a file called s_sn.mat. Load it, you will find several variables including Affine, VF, VG, etc. Now calculate conversion matrix  M as

M = VG.mat * inv(Affine) * inv(VF.mat)

Now you can calculate the new coordinate as

New = M * [old; 1]

(old is column vector [x;y;z]; new is column vector [x1;y1;z1;1])



文献鸟 618 活动


写作助手,把中式英语变成专业英文


Want to receive new post notification? 有新文章通知我

第六十三期fNIRS Journal Club视频 张百强

Youtube: https://youtu.be/vBsdcx08ZV4 优酷:https://v.youku.com/video?vid=XNjQ4NTcxNjM4MA%3D%3D fNIRS信号
Wanling Zhu
13 sec read

第六十三期fNIRS Journal Club通知2025/6/14, 10am 张百强

该文章的声音简介(中文版): 该文章的声音简介(英文版): fNIRS信号容易受到头动伪影、接触不良以及生理噪声等影响,导致测量信号信噪比低和数据浪费。来自北京师范大学牛海晶课题组的张百强同学将分享一
Wanling Zhu
9 sec read

第六十二期fNIRS Journal Club视频 李杨卓博士

Youtube: https://youtu.be/RN0mUjUe99A 优酷:https://v.youku.com/video?vid=XNjQ3MzIyMTA1Ng== 说服是促进信息传播、人
Wanling Zhu
9 sec read

Leave a Reply

Your email address will not be published. Required fields are marked *