UNPKG

custom-cornerstone-tools

Version:

Medical imaging tools for the Cornerstone library - customized for DrNuvem

96 lines (76 loc) 3.09 kB
<!DOCTYPE HTML> <html> <head> <!-- twitter bootstrap CSS stylesheet - included to make things pretty, not needed or used by cornerstone --> <link href="//netdna.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet"> <link href="../cornerstone.min.css" rel="stylesheet"> <style> /* prevents selection when left click dragging */ .disable-selection { -moz-user-select: none; -webkit-user-select: none; -ms-user-select:none; user-select:none; } /* prevents cursor from changing to the i bar on the overlays*/ .noIbar { cursor:default; } </style> </head> <body> <div class="container"> <div class="page-header"> <h1>Image Rendering Statistics</h1> <p> Image rendering statistics can be easily displayed on the image. This can be helpful if you are encountering performance issues. </p> <a href="../index.html">Go back to the Examples page</a> </div> <div class="col-xs-12"> <div style="width:512px;height:512px;position:relative;color: white;display:inline-block;border-style:solid;border-color:black;" oncontextmenu="return false" class='disable-selection noIbar' unselectable='on' onselectstart='return false;' onmousedown='return false;'> <div id="dicomImage" style="width:512px;height:512px;top:0px;left:0px;position:absolute;overflow:hidden;"> </div> </div> </div> </div> </body> <!-- jquery - currently a dependency and thus required for using cornerstoneWADOImageLoader --> <script src="../jquery.min.js"></script> <!-- include the hammer.js library for touch gestures--> <script src="../hammer.min.js"></script> <!-- include the cornerstone library --> <script src="../cornerstone.min.js"></script> <script src="../cornerstoneMath.min.js"></script> <!-- include the cornerstone tools library --> <script src="../../dist/cornerstoneTools.js"></script> <!-- include special code for these examples which provides images --> <script src="../exampleImageLoader.js"></script> <script src="../exampleMetaDataProvider.js"></script> <script> var container = $('#dicomImage'); var element = container.get(0); var imageId = 'example://1'; cornerstone.enable(element); // Enable mouse and touch input cornerstoneTools.mouseInput.enable(element); cornerstoneTools.touchInput.enable(element); cornerstone.loadImage(imageId).then(function(image) { cornerstone.displayImage(element, image); cornerstoneTools.imageStats.enable(element); cornerstoneTools.wwwc.activate(element, 1); cornerstoneTools.pan.activate(element, 2); cornerstoneTools.zoom.activate(element, 4); cornerstoneTools.wwwcTouchDrag.activate(element); cornerstoneTools.panMultiTouch.activate(element); cornerstoneTools.zoomTouchPinch.activate(element); }); </script> </html>