Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

a dicom viewer base on raphael

branch: master
README
<!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="image_viewer">
            <img src="images/concept_6.jpg" id="image" />
        </div>

        <script type="text/javascript">
            new ImageViewer("image_viewer", "image", 640, 480);
        </script>
    </body>
</html>




/////////////////////////////////////////////////////////////////////////////////////

CallBacks:

new ImageViewer("image_viewer", "image", 640, 480, {
        onDistanceCreate: function(distances){alert(distances.toJSON());},
        onDistanceRemove: function(distances){alert(distances.toJSON();},
        onROICreate: function(rois){alert(rois.toJSON());},
        onROIRemove: function(rois){alert(rois.toJSON());}
});
Something went wrong with that request. Please try again.