Spaces:
Running
Running
Created demo HTML for visualizing WSI in the browser through OpenSeadragon
Browse files- index.html +60 -0
index.html
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<html></html>
|
| 2 |
+
<head>
|
| 3 |
+
<title>Whole Slide Image Visualization</title>
|
| 4 |
+
</head>
|
| 5 |
+
<body>
|
| 6 |
+
<h1>Simple demo for visualization of WSIs in the browser! </h1>
|
| 7 |
+
|
| 8 |
+
<div style="padding: 0 1.5em; height: 90%;">
|
| 9 |
+
<div class="info" style="float: left; width: 10%;">
|
| 10 |
+
<div class="position"></div>
|
| 11 |
+
<div class="zoom" style="margin-top: 3em;"></div>
|
| 12 |
+
</div>
|
| 13 |
+
<div id="openseadragon1" style="float: right; width: 90%; height: 100%; background: black;"></div>
|
| 14 |
+
</div>
|
| 15 |
+
|
| 16 |
+
<!-- <div id="openseadragon1" style="width: 100%; height: 100%";></div> -->
|
| 17 |
+
<!-- html comment syntax -->
|
| 18 |
+
<script src="/Users/andreped/Downloads/openseadragon-bin-5.0.0/openseadragon.min.js"></script>
|
| 19 |
+
<!-- <script src="/OpenSeadragonCanvasOverlay/openseadragon-canvas-overlay.js"></script> -->
|
| 20 |
+
|
| 21 |
+
<script type="text/javascript">
|
| 22 |
+
var counter = 3;
|
| 23 |
+
|
| 24 |
+
var viewer = OpenSeadragon({
|
| 25 |
+
id: "openseadragon1",
|
| 26 |
+
prefixUrl: "/Users/andreped/Downloads/openseadragon-bin-5.0.0/images/",
|
| 27 |
+
tileSources: {
|
| 28 |
+
Image: {
|
| 29 |
+
xmlns: "http://schemas.microsoft.com/deepzoom/2008",
|
| 30 |
+
Url: "/Users/andreped/workspace/PyWSIViewer/A05_files/",
|
| 31 |
+
Format: "jpeg",
|
| 32 |
+
Overlap: "0",
|
| 33 |
+
TileSize: "256",
|
| 34 |
+
Size: {
|
| 35 |
+
Height: 42625,
|
| 36 |
+
Width: 51553
|
| 37 |
+
}
|
| 38 |
+
},
|
| 39 |
+
},
|
| 40 |
+
sequenceMode: false,
|
| 41 |
+
autoHideControls: true,
|
| 42 |
+
animationTime: 1.0,
|
| 43 |
+
blendTime: 0.5,
|
| 44 |
+
constrainDuringPan: false,
|
| 45 |
+
maxZoomPixelRatio: 1.15,
|
| 46 |
+
visibilityRatio: 1,
|
| 47 |
+
zoomPerScroll: 2,
|
| 48 |
+
//zoomPerClick: 1,
|
| 49 |
+
defaultZoomLevel: 0,
|
| 50 |
+
showReferenceStrip: false,
|
| 51 |
+
showNavigator: true,
|
| 52 |
+
showFullPageControl: false,
|
| 53 |
+
gestureSettingsMouse: {
|
| 54 |
+
clickToZoom: false
|
| 55 |
+
},
|
| 56 |
+
});
|
| 57 |
+
|
| 58 |
+
</script>
|
| 59 |
+
</body>
|
| 60 |
+
</html>
|