|
Man /
MfrstatsContent-type: text/html mfrstatsSection: User Commands (1)Index Return to Main Contents NAMEmfrstats - Computes statistics of populations of multiple fibre directions.SYNOPSISmfrstats -voxels <num voxels> [options]DESCRIPTIONReads in the output of sfpeaks and computes statistics of the distribution of peak directions and shape properties in the results. Used mostly with simulations for performance analysis or calibration.The output is:
Note that the order in which the multiple fibre reconstructions output multiple directions is arbitrary, so we need to cluster the directions into those which correspond. This program uses a minor generalization of the simple iterative algorithm described in Alexander and Barker, NeuroImage 27 2005 to associate corresponding directions from each trial. A trial is considered successful if the sfpeaks consistency flag is one and the number of peaks is greater than or equal to the expected number, which is provided by the user with the -expect option. Statistics are computed only over successful trials. The dyadic of a direction n is the 3x3 matrix n n^T. The mean dyadic is the average the the dyadics for corresponding directions over all trials. The first eigenvalue kappa_1 of the mean dyadic indicates the concentration of the population of directions; the closer kappa_1 is to one the greater the concentration. Another common concentration statistic, used for example in Alexander and Barker, NeuroImage 27 2005, is gamma = -log(1-kappa_1). EXAMPLESHere are some examples using synthetic data with q-ball.qballmx -schemefile test/bmx7.scheme > /tmp/BMX7_QBMX.Bdouble datasynth -voxels 20 -testfunc 1 -schemefile test/bmx7.scheme -snr 16 | linrecon - test/bmx7.scheme /tmp/BMX7_QBMX.Bdouble -normalize | sfpeaks -inputmodel rbf -rbfpointset 246 -density 100 | mfrstats -expect 1 -voxels 20 | double2txt Outputs the following:
The following is a simple investigation of how the direction concentration varies with noise level. This time we use a test function with two directions, which q-ball finds harder to reconstruct. Note how shredder pulls out the tenth number from each output, which is the first eigenvalue of the mean dyadic, kappa_1. As expected, kappa_1 and thus the direction concentration, increases with SNR. for snr in 4 8 12 16 20 24 28 32; do echo SNR is $snr kappa1 is; datasynth -voxels 20 -testfunc 3 -schemefile test/bmx7.scheme -snr $snr | linrecon - test/bmx7.scheme /tmp/BMX7_QBMX.Bdouble -normalize | sfpeaks -inputmodel rbf -rbfpointset 246 -density 100 | mfrstats -expect 2 -voxels 20 | shredder $((8*9)) 8 10000 | double2txt; done
Similar examples using PASMRI. For PASMRI, we stick with the default density of 1000 in sfpeaks, since the functions are spikier so peaks are harder to find. datasynth -voxels 20 -testfunc 1 -schemefile test/bmx7.scheme -snr 16 | mesd -schemefile test/bmx7.scheme -filter PAS 1.4 | sfpeaks -inputmodel maxent -mepointset 54 | mfrstats -expect 1 -voxels 20 | double2txt Outputs the following:
How the direction concentration varies with noise level for PAS: for snr in 4 8 12 16 20 24 28 32; do echo SNR is $snr kappa1 is; datasynth -voxels 20 -testfunc 3 -schemefile test/bmx7.scheme -snr $snr | mesd -schemefile test/bmx7.scheme -filter PAS 1.4 | sfpeaks -inputmodel maxent -mepointset 54 | mfrstats -expect 2 -voxels 20 | shredder $((8*9)) 8 10000 | double2txt; done
OPTIONS
AUTHORSDaniel Alexander <camino@cs.ucl.ac.uk>SEE ALSOconsfrac(1), invstats(1), modelfit(1), twotenfit(1), threetenfit(1)BUGS
IndexThis document was created by man2html, using the manual pages. Time: 02:07:11 GMT, December 04, 2017 |