Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (38 sloc) 1.64 KB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>DICOM viewer demo</title>
<script type="text/javascript" src="javascripts/prototype.js"></script>
<script type="text/javascript" src="javascripts/slider.js"></script>
<script type="text/javascript" src="javascripts/raphael.js"></script>
<script type="text/javascript" src="javascripts/image_operator.js"></script>
<link type="text/css" rel="stylesheet" media="screen" href="stylesheets/viewer.css">
</head>
<body>
<div id="preload_images" style="display:none">
<img src="dcm_images/dicom_images_brain_001.jpg"/>
</div>
<div id="image_viewer">
</div>
<script type="text/javascript">
var images = new Array();
for(var i = 1; i <= 20; i++){
var str;
if(i<10){
str = "0" + i;
}else{
str = i;
}
images.push("dcm_images/dicom_images_brain_0" + str + ".jpg");
}
var viewer = new ImageViewer("image_viewer", {
images: images
//onDistanceCreate: function(pointPairs){alert(pointPairs.toJSON());},
//onDistanceRemove: function(pointPairs){alert(pointPairs.length);},
//onROICreate: function(rois){alert(rois.toJSON());},
//onROIRemove: function(rois){alert(rois.length);}
});
</script>
</body>
</html>