nirs2img, create an image file from NIRS data

51 sec read

Update 2021/2/27: If you find griddata3 not working, try to change griddata3 to griddata.

I was asked where to get nirs2img script. Here it is. The download link is at the bottom of this article.

nirs2img is to create an image file from the input data. Then the
image file can be viewed by any fmri image viewing programs such as
xjview. This function requires function mni2cor and spm

function nirs2img(imgFileName, mni, value, doInterp, doXjview, bilateral)

imgFileName: the file name to be saved, e.g. ‘testnirs.img’
mni: Nx3 matrix, each row a coordinate in mni space
value: Nx1 matrix, each row is the value corresponding to mni
doInterp: 1 or 0 , whether or not do linear interpolation to
smooth data.
doXjview: 1 or 0, whether or not to view the generated image by xjview
bilateral: 1 or 0, whether or not the input mni is bilateral or not. If
bilateral, the first half points are considered as left side. There is no
interpolation between left and right side. (This argument is
useless if doInterp is 0)

an image file whose name is specified by input

If you have mni points of probes (instead of channels), you may need to
convert first. Use function probe2channel

This function will write to a image file which can be viewed by xjview.
In xjview, you need to check render view.

nirs2img(‘nirs_test.img’, mni, value, 1, 1, 0);

Xu Cui
last update: 2009/07/06: have an option that left and right do not


Receive email notification via email 博客有新内容通知我

Don't want to miss new papers in your field? Check out Stork we developed:

第二十四期 fNIRS Journal Club 通知 2021/10/23,10:00am

来自韩国釜山国立大学Keum-Shik Hong教授团队的杨大林同学将为大家介绍如何结合深度学习和近红外扫描技术实现早期老年痴呆症的识别,并分享深度学习技术在相关方面的应用经验。热烈欢迎大家参与讨论。 时间: 北京时间2021年10月23日上午10:00地点: https://zoom.com房间号: 876 7722 5723 密码: 600106 杨大林要讲解的文章如下: Yang, D., Huang, R., Yoo, S.-H., Shin, M.-J., Yoon, J.-A., Shin, Y.-Il., Hong,...
Xu Cui
10 sec read

第二十三期 fNIRS Journal Club 视频

北京时间2021年9月25日10:00,上海师范大学的张明明博士为大家介绍团体 (三人或者之上) 超扫描领域的进展,以及他们最近发表的超扫描决策行为的文献。 Youtube: Youku 优酷: 相关资源: 文献鸟(追踪科学文献)文献大分析(两分钟了解一个领域)
Xu Cui
6 sec read

第二十三期 fNIRS Journal Club 通知 2021/09/25,10:00am

上海师范大学的张明明博士将为大家介绍团体 (三人或者之上) 超扫描领域的进展,以及他们最近发表的团体超扫描决策行为的文献。热烈欢迎大家参与讨论。 时间: 北京时间2021年9月25日上午10:00地点: https://zoom.com房间号: 894 6339 2399 密码: 264149 张博士要讲解的文章如下: Zhang, Jia, Wang (2021) Interbrain Synchrony of Team Collaborative Decision-Making: An fNIRS...
Xu Cui
9 sec read

Leave a Reply

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