SPHARM-MAT uses GNU General Public License (GPL). The license description is included in the software package. Please review and accept the license before installing SPHARM-MAT via any source.
Software
Available at http://www.iu.edu/~spharm/.
Documentation
Unzip the package and move the folder to an appropriate place, denoted as SpharmMatDir in the rest of the documentation. There are three subfolders under SpharmMatDir:
How to compile simple.c
On any platform
mex simple.c
How to compile LocalSmoothing.c
If you are using the Lcc compiler that ships with MATLAB on MS Windows OS:
mex LocalSmoothing.c matlabroot/extern/lib/win32/lcc/libmwlapack.lib matlabroot/extern/lib/win32/lcc/libmwblas.lib
If you are using Microsoft Visual C++ as your C compiler on MS Windows OS:
mex LocalSmoothing.c matlabroot/extern/lib/win32/microsoft/libmwlapack.lib matlabroot/extern/lib/win32/microsoft/libmwblas.lib
or
mex LocalSmoothing.c matlabroot/extern/lib/win64/microsoft/libmwlapack.lib matlabroot/extern/lib/win64/microsoft/libmwblas.lib
On other platform:
mex LocalSmoothing.c -lmwlapack -lmwblas
Configure SPHARM-MAT for connecting it to SPHARM-PDM.
SPHARM-MAT is implemented based on a powerful 3D Fourier surface representation method called SPHARM [Brechb1995], which creates parametric surface models using spherical harmonics. Spherical harmonics were first used as a type of parametric surface representation for radial or stellar surfaces . An extended method, called SPHARM, was proposed by [Brechb1995] to model more general shapes, where three functions of and were used to represent a surface. SPHARM is a widely used shape description method for arbitrarily shaped but simply connected 3D objects. It is suitable for surface comparison and can deal with protrusions and intrusions. It is a fine-scale global descriptor with several advantages, including inherent interpolation, accurate scaling, and implicit correspondence. It can be used to derive other widely used shape descriptors such as landmarks, deformation fields, and medical axes. In addition, SPHARM has been successfully applied to many applications in medical imaging.
SPHARM is essentially a Fourier transform technique that defines a 3D surface using three spherical functions and transforms them into three sets of Fourier coefficients in the frequency domain. Three steps are involved to obtain a SPHARM shape descriptor:
SPHARM-PDM [Styner2006] is an existing SPHARM shape analysis tool and is a part of the NA-MIC toolkit. SPHARM-MAT (SPHARM Modeling and Analysis Toolkit) is a synergistic effort to SPHARM-PDM. While SPHARM-PDM is implemented in C/C++, SPHARM-MAT is Matlab-based. The advantage of having an additional tool on a different platform is twofold: (1) flexibility for users to choose the platform they favor, and (2) opportunity for tool comparison and cross-validation. Compared with SPHARM-PDM, SPHARM-MAT has a few additional features summarized below.
SPHARM-MAT includes a few components (in both GUI and command line) that interface with SPHARM-PDM. It is highly recommended to install SPHARM-PDM if you want to parameterize voxel surfaces.
SPHARM-MAT contains two simple statistical components for group analysis. For more complicated statistical models, we suggest that SurfStat [Worsley2008] should be considered. Surfstat is a free software tool which performs statistical analysis of univariate and multivariate surface and volumetric data using linear mixed effects models and random field theory. Since SurfStat is also matlab-based, it is straightforward to integrate SurfStat with SPHARM-MAT for statistical surface analysis. For example, one can first use SPHARM-MAT to model and align surfaces and extract surface signals, and then use SurfStat for statistical inference on the surface.
A set of exercises are provided in the following six chapters to serve as a tutorial for showing how to use SPHARM-MAT. While the last chapter shows a few miscellaneous functions, the first five chapters naturally form the processing pipeline of SPHARM-MAT.
After completing all the exercises in these chapters, you should have a basic idea on how SPHARM-MAT works.
All the exercises are designed for using the graphical user interface (GUI). However, for each exercise, we have put together a command line script in SpharmMatDir/scripts/. Running this script completes the same task in the batch mode. So if you don’t want to work with the GUI, you can modify these command line scripts to form your own batch processing task.
Besides the tutorial, we also provide the following chapters with system relevant features.
We summarize our naming convention for various data files as follows.
*_bim.mat: 3D binary objects
*_fix.mat: 3D binary objects after topology fix
*_obj.mat: original surface meshes
*_ini.mat: surface mesh after initial parameterization
*_smo.mat: surface mesh after optimized parameterization
*_des.mat: surface mesh with SPHARM coefficients
*_prm.mat: surface mesh with SPHARM coefficients after FOE alignment in the parameter space
*_reg.mat: surface mesh with SPHARM coefficients after registration
t_map*.mat: Data and results for t-test
PCA_stat*.mat: Data and results for PCA analysis
*.gipl: 3D binary objects in GIPL format
*.meta: surface mesh in META format
*.coef: SPHARM coefficients (real parts kept, imaginary parts ignored)
The first release of SPHARM-MAT was primarily supported by the following award:
NIH/NIBIB R03 EB008674 SPHARM Shape Modeling and Analysis Toolkit for Brain Imaging
PI: Li Shen, Co-PI: Andrew J. Saykin
The project was developed at:
The IU Center for Neuroimaging (CfN)
The Center for Computational Biology and Bioinformatics (CCBB)
Indiana University School of Medicine (IUSM).
The following people contributed to the development, testing and documentation of various components of SPHARM-MAT:
Major developers: Li Shen, Sungeun Kim
Other contributors: Jing Wan, John D. West, Kiernan McCullough,
Thomas Councell, Andrew J. Saykin
Collaborators at UT Arlington: Heng Huang, Fillia Makedon
Collaborator at UW Madison: Moo K. Chung
Contact:
Li Shen
Center for Neuroimaging, Dept. of Radiology and Imaging Sciences
Center for Computational Biology and Bioinformatics
Indiana University School of Medicine
950 W Walnut St, R2 E124
Indianapolis, IN 46202
Tel: (317) 278-0498
Fax: (317) 274-1067
Email: shenli@iupui.edu
URL: http://www.iupui.edu/~shenlab/
Question about SPHARM-MAT or bug reporting:
SpharmMat@gmail.com