brain

Handy programs to visualize NIRS data (1): plotTraces

You often need to plot the time series of NIRS signal from all channels with event indicators (See the example below). plotTraces can do that easily. In the above example, time series of all 24 channels are plotted. The number on the y-axis indicates
Xu Cui
26 sec read

Converting DICOM files to Analyze file in batch mode

I use SPM’s dicom import function to convert DICOM files to Analyze files. But it’s quite inconvenient if I have 20 subjects. Below is a script to do this conversion automatically. You can call this function inside a loop. function dicom2
Xu Cui
23 sec read

The undiscovered numbers

Arthur and Bert each writes down a positive integer on a piece of paper and then shows it to Charles. Charles then writes two numbers on a blackboard, visible to Arthur and Bert: one of them is the sum of Arthur’s and Bert’s numbers, and
Xu Cui
24 sec read

How to control ETG-4000 and receive realtime feedback simultaneously?

If you want to control ETG-4000 with your program through the serial port, and at the same time your experiment requires realtime feedback from the ETG4000, you can either merge the RealtimeOT script and your presentation script (which will be very c
Xu Cui
19 sec read

Realtime feedback from NIRS recording

Hitachi provides a Matlab script (RealtimeOT.m) which can deliver real-time feedback from ETG-4000. This script is installed in the computer (Windows 2000) in the NIRS room. One can modify the script to deliver the real-time signal in the desired for
Xu Cui
2 min read

Using serial port to control ETG4000

To synchronize NIRS recording and your stimuli (visual, auditory, button press etc), your presentation program needs to talk to the NIRS machine. Hitachi ETG4000 allows serial communication between the NIRS machine and an external computer. You can u
Xu Cui
2 min read

Published two papers

Both are on NIRS (Near Infrared Spectroscopy). The first one is on how to detect NIRS activity earlier using multivariate (SVM) method; the 2nd one is a comprehensive comparison between NIRS and fMRI. Cui, Bray, Reiss (2010) Speeded Near Infrared Spe
Xu Cui
19 sec read

Some plot functions for NIRS

1. plotTraces, plot a time series, or multiple time series on one plot, with vertical lines indicating the markers (events). Can be used for data quality check and global signal detection. 2. plotTopoMap, plot a map of activation. 3. plot2, scatter p
Xu Cui
22 sec read

Convert images to matrix

Quite often you need to convert an image (or multiple images) to a MatLab matrix for further analysis and visualization (e.g. extracting time series, multivariate pattern analysis, etc). SPM provides handy functions for this: P = spm_select; % select
Xu Cui
21 sec read