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])



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


AI writing papers with real references


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

第七十四期fNIRS Journal Club视频 曾令伟博士

Youtube: https://youtu.be/WSh0fmADeZw 优酷:https://v.youku.com/v_show/id_XNjU2MzcyOTU3Ng==.html 认知状态解码
Wanling Zhu
21 sec read

第七十四期fNIRS Journal Club通知2026/9/5, 10am 曾令伟博士

认知状态解码是脑机接口与神经调控研究的重要基础,但如何利用fNIRS实现有效解码并进一步用于个体化认知干预仍有待探索。来自空军军医大学的曾令伟博士将介绍他们围绕fNIRS认知状态解码与闭环神经调控开展
Wanling Zhu
16 sec read

第七十三期fNIRS Journal Club视频 梁正博士 赵庆柏课题组

Youtube: https://youtu.be/5r8OR9rmDxo 优酷:https://v.youku.com/v_show/id_XNjU0ODIxNDEwNA==.html 创造性思维是
Wanling Zhu
20 sec read

Leave a Reply

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