Xu Cui

 

   



566 Stories by Xu Cui

Reference slice in slice timing in SPM

I saw at least two web pages saying that the reference slice can be chosen during slice timing correction. For example, http://www.fil.ion.ucl.ac.uk/spm/doc/manual/spatial.htm. I disagree. Let’s take the first volume as example. Assume TR=2 and
7 1 min read

Some formulas of linear regression

y: dependent variable X: independent variable r: residual $$y=X\beta+r$$ $$\beta=inv(X’*X)*X’*y$$ $$\sigma^2=r’*r/df$$ $$df=N-rank(X)$$ $$\sigma_\beta^2=\sigma^2inv(X’X)$$ $$T_\beta=\beta/\sigma_\beta$$ $$contrast variance = c
0 14 sec read

spm_get, spm_select, and char

The mostly used functions I use in SPM is spm_get (for spm2) and spm_select (spm5 and 8).  These two functions are used to get files (usually image files). Frankly speaking I like spm_get much better as it’s intuitive and easy to use. Here is h
2 1 min read

FSL environment setting

setenv FSLDIR /fs/quarry/cuixu/fsl41/fsl source ${FSLDIR}/etc/fslconf/fsl.csh setenv PATH ${FSLDIR}/bin:${PATH}
0 3 sec read

Messy desktop

1 0 sec read

Too many emails

My gmail inbox has 12,000 emails. I receive ~30 emails (after removing junk mails) each day. Though I have set to display 100 emails per page but some important but unreplied emails soon disappear from the first page. I often “star” impor
0 21 sec read

Famous brains

Text source: http://imaging.mrc-cbu.cam.ac.uk/imaging/MniTalairach Talairach brain (single) the brain dissected and photographed for the famous Talairach and Tournoux atlas. The atlas has Brodmann’s areas labelled, albeit in a rather approximat
2 57 sec read

Delphi 7 on Windows 7, compatibility

from Hans’ blog: http://weblog.hansotten.com/?p=833 Delphi 7 is not quite compatible with Win 7. But you can solve this problem by following Hans’ steps: Run this as administrator. Open the properties on c:/program files/delphixxx directo
0 15 sec read

Conversion of coordinates between two images

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 coordi
0 34 sec read