NgDicomViewer is an Angular application(Single Page Application) built on top of the open source Javascript / HTML5 libraries provided by the DWV project. Predominantly made to view DICOM images on HTML 5 canvas on modern browsers without using any windowed plugins.
Not fully DICOM compliant, see Dicom-Support for details
For Demo please click
All coding/implementation contributions and comments are welcome.
Make sure to load AngularJS first, and then NgDicomViewer-mini.js
. Also include openjpeg to open jpg compressed image.
The module is named ngdicomviewer
. To enable it, you must simply list it as a dependency in your app. Example:
var app = angular.module('app', ['ngdicomviewer', ...]);
You can then use it in your templates like so:
<html ng-app='app'>
...
<body>
...
<dicomviewer class ="dicom" fileutilityid ="fileinput" urllistid="urltxt" urlopenbtnid="urlbtn">
</dicomviewer>
</body>
</html>
Attributes in dicomviewer tag:
β1)fileutilityid : id of input tag of type file to open local dicom file
β2)urllistid : id of input text for getting url list separated by ';'
β3)urlopenbtnid : button id to open images from url in the above
Scope Variables:
β1)Tool : Object To See available Tool Names which can be used to set them in selecting one
ββ"Tool.ButtonBasedTools" Returns Available Button based Tool name list
ββ"Tool.MouseBasedTools" Returns Available Mouse based Tool name list
β2)SelectedButtonTool : setting the value same as available in list will apply the tool to opened image
β3)SelectedMouseTool : setting the value same as available in list will apply the tool on mouse operation on the image
β4)SelectedColor : Any html Colour which can be setted the annotation colour
β5)Colours : list of recommended colours for the annotation
β6)PatientName : Opened image PatientName
β7)PatientId : Opened image PatientId
β8)WWidth : current Window Width of image
β9)WCenter : current Window Centre of image
β10)Rmin,Rmax : min and max value for the threshold filter tool that can be applied on the image
β11) Tval : Object
ββ"Tval.min" specify threshold filter tool min to be applied on image
ββ"Tval.max" specify threshold filter tool max to be applied on image
βFor more Details see Example.html
Released under MIT licence
==========================