SphericalPolarFourierImaging  [--returnparameterfile <std::string>]
                                 <std::string>] [--xml] [--echo] [-v <int>]
                                 [-p] [--nt <int>] [--md0 <double>] [--tau
                                 <double>] [--mask <std::string>]
                                 [--lambdaL1 <double>] [--minChange
                                 <double>] [--maxIter <int>] [--solver
                                 <FISTA_LS|SPAMS>] [--estimation <LS|L1_2
                                 |L1_DL>] [--mdImage <std::string>]
                                 [--scale <double>] [--radius <double>]
                                 [--odfOrder <int>] [--lambdaRA <double>]
                                 [--lambdaSH <double>] [--ra <int>] [--sh
                                 <int>] [--signal <std::string>] [--odf
                                 <std::string>] [--eapProfile
                                 <std::string>] [--] [--version] [-h]


   --returnparameterfile <std::string>
     Filename in which to write simple return parameters (int, float,
     int-vector, etc.) as opposed to bulk return parameters (image,
     geometry, transform, measurement, table).

   --processinformationaddress <std::string>
     Address of a structure to store process information (progress, abort,
     etc.). (default: 0)

     Produce xml description of command line arguments (default: 0)

     Echo the command line arguments (default: 0)

   -v <int>,  --verbose <int>
     Verbose level. 0: no output log. 1: normal log. 2: log for debug log.
     3: log for large matrix or vectors. (default: 1)

   -p,  --progress
     show progress of processing (default: 0)

   --nt <int>
     Number of threads. If it not positive, then the default number for
     multiple threads is used. (default: -1)

   --md0 <double>
     Typical mean diffusivity (MD) value. (default: 0.0007)

   --tau <double>
     Tau value. The default is calculated based on 4*pi*pi*tau=1. (default:

   --mask <std::string>
     Mask file.

   --lambdaL1 <double>
     Regularization parameter for L1 optimization. (default: 1e-05)

   --minChange <double>
     Minimal change percentage of the cost function and variable for l1
     oprimization. (default: 0.0001)

   --maxIter <int>
     Maximal number of iteration in L1 FISTA. (default: 1000)

   --solver <FISTA_LS|SPAMS>
     Type of L1 solver. Use different L1 solver.         FISTA_LS: FISTA
     using least square initialization.         SPAMS: use spams' weighted
     lasso solver. (default: SPAMS)

   --estimation <LS|L1_2|L1_DL>
     Type of solver.         LS means least square.         L1_2 means
     Laplace-Beltrami weight (two regularization parameters lambdaSH and
     lambdaRA);         L1_DL only use lambdaL1, because the learned
     dictionary corresponses the regularization matrix. (default: LS)

   --mdImage <std::string>
     Mean diffusivity Image for adaptive scale.

   --scale <double>
     Scale for SPF basis. If it is negative, the default value based on
     typical MD is used. (default: -1)

   --radius <double>
     Radius for EAP profile. (default: 0.015)

   --odfOrder <int>
     Order for the ODF output. (default: 2)

   --lambdaRA <double>
     Regularization lambda for radial part. (default: 0)

   --lambdaSH <double>
     Regularization lambda for spherical part. (default: 0)

   --ra <int>
     Rank for radial basis. (default: 1)

   --sh <int>
     Rank for SH basis. (default: 4)

   --signal <std::string>
     Output Image File (SPF coefficients) with basis coefficients.

   --odf <std::string>
     Output Image File (ODF) represented by SH basis.

   --eapProfile <std::string>
     Output Image File (EAP profile) represented by SH basis.

   --,  --ignore_rest
     Ignores the rest of the labeled arguments following this flag.

     Displays version information and exits.

   -h,  --help
     Displays usage information and exits.

     (required)  Text file that contains b values, gradient orientations,
     and DWI images.

   Description: SPFI: estimate SPF coefficients from DWI signals.


   SphericalPolarFourierImaging dwi.txt --sh 8 --ra 4 --signal
   signalSPF.nii.gz --radius 0.015 --estimation L1_DL --lambdaL1 1e-6
   --mdImage MD.nii.gz

   Author(s): Jian Cheng (jian.cheng.1983@gmail.com)

   Acknowledgements: Thank you everyone.