|
Man /
SfanisContent-type: text/html sfanisSection: User Commands (1)Index Return to Main Contents NAMEsfanis - Computes an index of anisotropy of spherical functions.SYNOPSISsfanis -inputmodel <sh|rbf|maxent> [options]DESCRIPTIONComputes the anisotropy of any input spherical function. The anisotropy of a function f is sqrt(int(f(x) - F)^2/int(f^2(x))) where F = int(f(x)) and the integrals are all over the unit sphere. For functions represented as spherical harmonic series, the calculation uses an analytic expression and is very fast to compute. For other representations, the program approximates the integrals by summing over a set of around 8000 points evenly distributed on the sphere. To decrease computation time, the size of the point set can be reduced using the -pointset option.EXAMPLESHere are some examples using synthetic data. Create a synthetic data set: datasynth -testfunc 3 -snr 16 -voxels 4 -schemefile test/bmx7.scheme > T3_BMX7.Bfloat
Fit the spherical harmonics with maximum order 2 and compute the anisotropy: shfit -order 2 -schemefile test/bmx7.scheme < T3_BMX7.Bfloat | sfanis -inputmodel sh -order 2 | double2txt
Try with maximum order 4: shfit -order 4 -schemefile test/bmx7.scheme < T3_BMX7.Bfloat | sfanis -inputmodel sh -order 4 | double2txt
Repeat using PASMRI: mesd -filter PAS 1.4 -schemefile test/bmx7.scheme < T3_BMX7.Bfloat | sfanis -inputmodel maxent -filter PAS 1.4 -mepointset 54 | double2txt
Repeat using QBALL: qballmx -schemefile test/bmx7.scheme > /tmp/bmx7_QBALLMX.Bdouble linrecon T3_BMX7.Bfloat test/bmx7.scheme /tmp/bmx7_QBALLMX.Bdouble -normalize | sfanis -inputmodel rbf -rbfpointset 246 -rbfsigma 0.2617993877991494 -schemefile test/bmx7.scheme | double2txt 1.049307E-01 1.180261E-01 1.087973E-01 1.186283E-01 And spherical harmonic q-ball qballmx -schemefile test/bmx7.scheme -basistype sh -order 4 > /tmp/bmx7_QBALLMX.Bdouble linrecon T3_BMX7.Bfloat test/bmx7.scheme /tmp/bmx7_QBALLMX.Bdouble -normalize | sfanis -inputmodel sh -order 4 -schemefile test/bmx7.scheme | double2txt 1.204591E-01 1.364328E-01 1.265906E-01 1.379158E-01 OPTIONS
SEE ALSOfa(1), shfit(1), qballmx(1), mesd(1), sfskewness(1), sfkurtosis(1)BUGSAUTHORDanny Alexander <camino@cs.ucl.ac.uk>
IndexThis document was created by man2html, using the manual pages. Time: 02:07:11 GMT, December 04, 2017 |