STEAM
Statistical Template Estimation for Abnormality Mapping
Download STEAM Source Code
This STEAM souce code is provided under the
Creative Commons
Attribution-NonCommercial-ShareAlike license. It is provided "as is" without
any implied warranties for any particular purpose. In no event shall the authors of this
site be liable for any damage or tort arising from the use of this source code, even if we
are advised of the possibility of such damage.
If you used these STEAM in a publication, we ask that you cite the appropriate our article on
STEAM as follows:
B. G. Booth, S. P. Miller, C. J. Brown, K. J. Poskitt, V. Chau, R. E. Grunau, A. R. Synnes, and G. Hamarneh.
"STEAM - Statistical Template Estimation for Abnormality Mapping: a Personalized DTI Analysis Technique with Applications to the Screening of Preterm Infants",
NeuroImage, Volume 125, pp. 705-723, 2016.
STEAM is currently built for Linux systems (Windows and MAC versions may come at a later
date), and involves the use of various pieces of existing software. In order to make STEAM
work, you will require:
-
ttk:
The tensor toolkit is used heavily in the template creation process and in the
voxel-based analysis. The ttk scalar
command is used to compute diffusion features like FA and MD; the
ttk register_demons
is an implementation of DT-REFinD: a full tensor deformable registration technique;
and the ttk average_std command to compute the
mean and covariance images.
-
FSL FLIRT: This well-known
registration program is used to perform the initial affine registration of the FA
images as well as applying affine transformations to images.
-
Camino: The
reorient command in the Camino toolkit is
used to reorient the tensors following the affine transformation of tensor images.
-
MATLAB: Additional pieces
of STEAM's analysis engine are provided as MATLAB code.
-
GNU bash shell: The bash scripting
language is used to tie the different steps of STEAM together.
Please fill in the form below to obtain a copy of STEAM's source code for your personal use.
alert('Your email is required. A link to the download file will be sent to that email.')";
}
} else {
$formEmail = filter_var($_POST["email"], FILTER_SANITIZE_EMAIL);
// check if e-mail address is well-formed
if (!filter_var($formEmail, FILTER_VALIDATE_EMAIL)) {
if ($saneInput) {
$saneInput = false;
echo "";
}
}
}
if (!empty($_POST["comments"])) {
$formComments = test_input($_POST["comments"]);
}
if (!empty($_POST["name"])) {
$formName = test_input($_POST["name"]);
}
if (!empty($_POST["position"])) {
$formPosition = test_input($_POST["position"]);
}
if (!empty($_POST["affiliation"])) {
$formAffiliation = test_input($_POST["affiliation"]);
}
if ($saneInput) {
$command = sprintf("../makeCode.sh -n %s -c %s -p %s -a %s -e %s -i %s >& /dev/stdout &",
escapeshellarg($formName), escapeshellarg($formComments),
escapeshellarg($formPosition), escapeshellarg($formAffiliation),
escapeshellarg($formEmail), escapeshellarg($ipAddress));
exec('/bin/tcsh -c "exec nohup ' . $command . '"', $tmpOut, $rVal);
print_r($tmpOut);
// display alert dialog acknowledging they succcessfully submitted their request.
echo "";
}
}
function get_client_ip() {
$ipaddress = '';
if ($_SERVER['HTTP_CLIENT_IP'])
$ipaddress = $_SERVER['HTTP_CLIENT_IP'];
else if($_SERVER['HTTP_X_FORWARDED_FOR'])
$ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR'];
else if($_SERVER['HTTP_X_FORWARDED'])
$ipaddress = $_SERVER['HTTP_X_FORWARDED'];
else if($_SERVER['HTTP_FORWARDED_FOR'])
$ipaddress = $_SERVER['HTTP_FORWARDED_FOR'];
else if($_SERVER['HTTP_FORWARDED'])
$ipaddress = $_SERVER['HTTP_FORWARDED'];
else if($_SERVER['REMOTE_ADDR'])
$ipaddress = $_SERVER['REMOTE_ADDR'];
else
return sprintf("%u", time());
return sprintf("%u", ip2long($ipaddress));
}
function test_input($data) {
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
$data = str_replace("$", "", $data); // These two characters will be problems for the
$data = str_replace("`", "", $data); // bash script. Remove them.
return $data;
}
?>
© SFU Medical Image Analysis Lab, 2014