SPFToProfile  [--returnparameterfile <std::string>]
                 [--processinformationaddress <std::string>] [--xml]
                 [--echo] [--debug] [--nt <int>] [--rspace] [--md0 <float>]
                 [--tau <float>] [--mask <std::string>] [--radiusVector
                 <std::string>] [--orientations <std::string>] [--mdImage
                 <std::string>] [--fourier] [--scale <float>] [--radius
                 <float>] [--ra <int>] [--sh <int>] [--] [--version] [-h]
                 <std::string> <std::string>


   --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)

     debug (default: 0)

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

     If it is not set, the basis is in q-space (default). If it is set, the
     basis is in r-space (default: 0)

   --md0 <float>
     Typical MD value. (default: 0.0007)

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

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

   --radiusVector <std::string>
     text file which contains radii.

   --orientations <std::string>
     text file which contains orientations. If it is not set, the output is
     SH coefficients. If set, the output is EAP/DWI samples

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

     Use Fourier transform. (default: 0)

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

   --radius <float>
     Radius for DWI/EAP profile.         It is b value if rspace and
     fourier are both set or not set.      It is r value if only one of
     rspace and fourier is set. (default: 0.015)

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

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

   --,  --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)  Input Image File represented by SPF basis.

     (required)  Output Image File (DWI/EAP profile).

   Description: Convert SPF coefficients to DWI/EAP profile (represented by
   SH basis or discrete samples).


   SPFToProfileConverter signalSPF.nii.gz eap_r0.015.nii.gz --sh 8 --ra 4
   --radius 0.015 --fourier --mdImage MD.nii.gz

   SPFToProfileConverter signal.nii.gz dwiFromSignal.nii.gz --radius 1500
   --sh 8 --ra 4 --mdImage MD.nii.gz

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

   Acknowledgements: Thank you everyone.