
Funcional Connectivity Documentation (functional_connectivity.m)

This is a utility for analysis of functional connectivity by calculation of
the correclations between a source ROI and a list of other ROIs with 
possible delay offsets between the timeseries of the source and target ROIs. 
a filter may be applied to the images prior to calculating the correlations.

Usage:
=======

the program first asks for a single source .img ROI file
next it asks for a list of one or more target ROIs
next the image data files should be chosen.
If the dimensions of the masks and data images are different the ROI
masks are resliced and saved with 'r' prepending the filename.
if desired the user may choose to apply a filter (just like the
apply_filter utility, without saving the files).
finally the program asks for the maximal time delay to consider. The
correlations between the timeseries of the source and target ROIs will be
calculated in all possible offsets in [-delay,delay]. The time delay
should be specified in TRs.

The utility returns a matrix of correlation coefficients.
The columns of this matrix correspond to the different target ROIs.
The rows correspond to the different delay offsets.

Shay Mozes 4/2007
