Hi Jung Lung Hsu,
I have updated the beta version of the next release so that it includes a function to do the requested (
http://www.exploredti.com/ExploreDTI/Pcode/Beta/ExploreDTI_Pcode.zip).
First, construct a structure variable (e.g., "p") that contains the following parameter settings (for details, see
http://www.ncbi.nlm.nih.gov/pubmed/23927905):
p.f_in = 'C:\Data\Sub_01_MD_C_native.mat'; % Change to your own input DTI file name.
p.f_out = 'C:\Data\Sub_01_MD_C_native_Tracts_CSD.mat'; % Change to your own output CSD tracts file name.
p.SeedPointRes = [2 2 2]; % Seed point resolution in mm.
p.StepSize = 1;
p.AngleThresh = 30;
p.lmax = 8; % for number of directions below 45 (and above 28), set to "6".
p.FiberLengthRange = [50 500];
p.blob_T = 0.1; % this is the FOD threshold (is somewhat equivalent to the FA threshold with DTI)
p.randp = 1;
p.t = 0.01; % Equal to "PR" variable in
http://www.ncbi.nlm.nih.gov/pubmed/23927905.p.it = 10; % Number of iterations
.p.suf = 5; % Speed up factor (integer value > 0): 1 = slowest, 2 = faster, etc.(larger than 5, reliability may go down).
p.FA_t = 0.01; % The initial "fat" response function needs a slightly anisotropic shape (realistic range: [0.01 0.1])
Then type:
WholeBrainTrackingCSD_fast_exe_CL(p);
That should do it!
Cheers,
-A
PS: More command-line functionality will follow soonish ;-)!