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



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


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

第六十二期fNIRS Journal Club通知2025/5/17, 10am 李杨卓博士

该文章的声音简介(中文版): 该文章的声音简介(英文版): 说服是促进信息传播、人类社会发展最有效的形式之一。日常生活中说服和被说服无处不在,是什么人际神经通路决定了自然二元说服情境中,说服信息的成功
Wanling Zhu
4 sec read

第六十一期fNIRS Journal Club视频 冯小丹

Youtube: https://youtu.be/eyC7K9lxz1s 优酷:https://v.youku.com/video?vid=XNjQ3NDc1MTUwOA%3D%3D 无论是对人类个
Wanling Zhu
15 sec read

第六十一期fNIRS Journal Club通知2025/4/12, 10am 冯小丹

该文章的声音简介(中文版): 该文章的声音简介(英文版): 无论是对人类个体的认知能力发展还是对整个社会的文明演进来说,课堂教学都发挥着不可替代的独特作用。正如著名教育思想家夸美纽斯 (John Am
Wanling Zhu
10 sec read

Leave a Reply

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