% Cortical thickness data projected on a sphere
% (c) Moo K. Chung  Dec 28, 2008

% File thickness_sphere.mat contains 3 variables
%
% SPHERE
% sphere is a structured array of the form
% > sphere
% 
% sphere = 
% 
%     vertices: [40962x3 double]   
%        faces: [81920x3 double]     
%
% From this we can see sphere consists of 40962 vertices and 81920
% triangles.
%
% sphere.vertices is the coordinates of mesh vertices along a unit sphere
% For instance, sphere.vertices(1:3,:) list the (x,y,z) coordinates of
% vertices indexed 1 to 3.
% 
%>sphere.vertices(1:3,:)
%
%ans =
%     0.8507    0.5257         0
%     0.8507   -0.5257         0
%    -0.8507    0.5257         0
%
% sphere.faces contains the triangle connectivity infomation
% 
% For instance sphere.faces(3,:) contains 3 vertex indices that form a
% triangle.
%
%> sphere.faces(3,:)
%
% ans =
%        10245       10243       10244
%
% THICKNESS
% thick_au is the thickness of autistic subjects and thick_co is the
% thickness of control subjects.
% There are n=16 autistic subjects and n=11 control subjects.
%
% The full description of data can be found in 
%
% Chung, M.K., Robbins,S., Dalton, K.M., Davidson, Alexander, A.L., R.J.,
% Evans, A.C. 2005. Cortical thickness analysis in autism via heat kernel smoothing. 
% NeuroImage 25:1256-1265
% http://www.stat.wisc.edu/~mchung/papers/ni_heatkernel.pdf


% This displays cortical thickness of the 1st autistic subject
figure_trimesh(sphere,thick_au(1,:), 'rwb')