MeshFromSphericalFunctionTessellatedSamples  [--returnparameterfile
                                        <std::string>] [--xml] [--echo]
                                        [--debug] [--st] [--nonormal]
                                        [--zoom <double>] [--png
                                        <std::string>] [--angle
                                        <std::vector<double>>] [--size
                                        <std::vector<int>>] [--colorscheme
                                        [--basicshape <TETRAHEDRON
                                        [--tessorder <int>] [--scale
                                        <double>] [--slice
                                        <std::vector<int>>] [--box
                                        <std::vector<int>>] [--flip
                                        <std::vector<int>>] [--pow
                                        <double>] [--normalize <NONE
                                        [--removenegative] [-o
                                        <std::string>] [--] [--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)

     Use single thread. (default: 0)

     Do not use vtkPolyDataNormals. (default: 0)

   --zoom <double>
     zoom factor. Used when visualzing the vtk file.

   --png <std::string>
     output png file. Used when visualzing the vtk file.

   --angle <std::vector<double>>
     azimuth,elevation. Used when visualzing the vtk file. (default: 0.0

   --size <std::vector<int>>
     window size. Used when visualzing the vtk file. (default: 600,600)

   --colorscheme <DIRECTION|MAGNITUDE>
     Color scheme. (default: DIRECTION)

     Basic shape for subdivision. (default: ICOSAHEDRON)

   --tessorder <int>
     Tessellation order. (default: 4)

   --scale <double>
     Scale factor. (default: 1)

   --slice <std::vector<int>>
     coordinates for coronal, sagittal and transverse views. When -1 is
     used for x/y/z, then the voxel is visible in the x/y/z-axis. (default:

   --box <std::vector<int>>
     only generate mesh from a given box (x0,x1,y0,y1,z0,z1). When -1 is
     used, then x0/y0/z0 will be 0, x1/y1/z1 will be the maximal number in
     the x/y/z-axis. (default: -1,-1,-1,-1,-1,-1)

   --flip <std::vector<int>>
     Flip x/y/z-axis for spherical functions. 1 means flip, 0 means
     no-flip. (default: 0,0,0)

   --pow <double>
     Power factor. (default: 1)

     Perform normalization after removing negative values (if set); NONE:
     No normalization; MIN_MAX: Min-max normalization; UNIT_MAX: Unit
     maximum; UNIT_INTEGRATION: Unit integration. (default: NONE)

     Remove negative values if set. (default: 0)

   -o <std::string>,  --output <std::string>
     Output vtk file. If it is not set, visualize the vtk file. (default:

   --,  --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 file.

     (required)  text file which contains orientations for spherical
     samples.         It is from a tessellation in whole sphere or a
     hemisphere.       The sample order can be different from stored

   Description: Create a mesh from spherical samples using tessellation.


   MeshFromSphericalFunctionTessellatedSamples eapTrue_r0.015.nii.gz -o
   eapTrue_r0.015_vis.vtk ../directions_t4.txt  --scale 1e-5

   MeshFromSphericalFunctionTessellatedSamples eapTrue_r0.015.nii.gz
   ../directions_t4.txt  --scale 1e-5

   MeshFromSphericalFunctionTessellatedSamples odfTrue.nii.gz -o
   odfTrue_vis.vtk ../directions_t4.txt  --scale 1.5

   Author(s): Jian Cheng (

   Acknowledgements: Thank you everyone.