|
Man /
ConsfracContent-type: text/html consfracSection: User Commands (1)Index Return to Main Contents NAMEconsfrac - Computes the consistency fraction for multiple fibre reconstructions.SYNOPSISconsfrac -voxels <num voxels> [options]DESCRIPTIONReads in the output of sfpeaks and computes the consistency fraction with a known set of expected peak directions. Used for performance evaluations of multiple-fibre reconstructions in simulation.The consistency fraction is the fraction of trials in which the sfpeaks output is consistent with a known set of expected peak directions. Two sets of directions are consistent if they contain the same number of directions and each element of one set is within a small angular tolerance of an element of the other and vice versa. (Defined in Jansons and Alexander, Inverse Problems 19 2004.) The program outputs three numbers:
EXAMPLESHere are some examples using 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 | consfrac -testfunc 1 -voxels 20 | double2txt Outputs the following:
Increasing the noise level reduces the consistency fraction, as some peak directions are too far from the expected direction: datasynth -voxels 20 -testfunc 1 -schemefile test/bmx7.scheme -snr 4 | linrecon - test/bmx7.scheme /tmp/BMX7_QBMX.Bdouble -normalize | sfpeaks -inputmodel rbf -rbfpointset 246 -density 100 | consfrac -testfunc 1 -voxels 20 | double2txt
The following is a simple investigation of how the consistency fraction 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 third number from each output, which is the consistency fraction. for snr in 4 8 12 16 20 24 28 32; do echo SNR is $snr C 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 | consfrac -testfunc 3 -voxels 20 | shredder $((8*2)) 8 $((8*6)) | double2txt; done
Here is a similar example using PASMRI: for snr in 4 8 12 16 20 24 28 32; do echo SNR is $snr C is; datasynth -voxels 20 -testfunc 3 -schemefile test/bmx7.scheme -snr $snr | mesd -filter PAS 1.4 -schemefile test/bmx7.scheme | sfpeaks -inputmodel maxent -mepointset 54 | consfrac -testfunc 3 -voxels 20 | shredder $((8*2)) 8 $((8*6)) | double2txt; done
OPTIONS
AUTHORSDaniel Alexander <camino@cs.ucl.ac.uk>SEE ALSOinvstats(1), mfrstats(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 |