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

output:
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.

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

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

nirs2img.m
mni2cor.m

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

美国南卡罗来纳大学心理学系的符晓雪博士,将为大家讲解她刚刚发表在Neurophotonics上的一篇文章,用NIRS研究发育过程中头皮和大脑关系的变化。热烈欢迎大家参与讨论。 时间: 北京时间2021年8月28日上午10:00地点: https://zoom.com房间号: 845 7541 3964密码: 829803 符晓雪博士是南卡罗来纳大学心理学系的博士后研究员。 她在宾夕法尼亚州立大学获得发育心理学博士学位。 她的博士后工作重点是 fNIRS 和 ERP 的皮层源定位方法。 符博士要讲解的文章如下: Fu, Richards (2021) Investigating developmental changes in scalp-to-cortex...
Xu Cui
6 sec read

第二十一期 fNIRS Journal Club 视频

北京时间2021年7月31日11:00,华东师范大学心理与认知科学学院卢克龙博士,为大家讲解了他去年发表在NeuroImage上的一篇文章,利用行为实验方法及fNIRS等技术手段,探讨个体和团体创造活动的影响因素、动态过程,及背后的认知神经基础。 Lu K, Yu T, Hao N. Creating while taking turns, the choice to unlocking group creative potential. Neuroimage. 2020 Oct 1;219:117025. https://storkapp.me/pubpaper/32512127 Youtube:...
Xu Cui
11 sec read

The Dolphin Game: Tips and Tricks for Hyperscanning with…

Note: The following article is a guest post by Vanessa Reindl from University Hospital RWTH Aachen, Germany. She made our original hyperscanning game more...
Xu Cui
2 min read

Leave a Reply

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