Skip to content

Commit ce0880a

Browse files
committed
Fix jsdoc documentation issues
1 parent bcadae3 commit ce0880a

27 files changed

+155
-28
lines changed

docs/api.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="api.ht
125125
<br class="clear">
126126

127127
<footer>
128-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.5</a> on Sat Sep 12 2020 17:44:46 GMT-0400 (Eastern Daylight Time)
128+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.5</a> on Sat Sep 12 2020 17:54:34 GMT-0400 (Eastern Daylight Time)
129129
</footer>
130130

131131
<script> prettyPrint(); </script>

docs/dicom-microscopy-viewer.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="api.ht
131131
<br class="clear">
132132

133133
<footer>
134-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.5</a> on Sat Sep 12 2020 17:44:46 GMT-0400 (Eastern Daylight Time)
134+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.5</a> on Sat Sep 12 2020 17:54:34 GMT-0400 (Eastern Daylight Time)
135135
</footer>
136136

137137
<script> prettyPrint(); </script>

docs/events.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="api.ht
123123
<br class="clear">
124124

125125
<footer>
126-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.5</a> on Sat Sep 12 2020 17:44:46 GMT-0400 (Eastern Daylight Time)
126+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.5</a> on Sat Sep 12 2020 17:54:34 GMT-0400 (Eastern Daylight Time)
127127
</footer>
128128

129129
<script> prettyPrint(); </script>

docs/events.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="api.ht
6464
<br class="clear">
6565

6666
<footer>
67-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.5</a> on Sat Sep 12 2020 17:44:46 GMT-0400 (Eastern Daylight Time)
67+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.5</a> on Sat Sep 12 2020 17:54:34 GMT-0400 (Eastern Daylight Time)
6868
</footer>
6969

7070
<script> prettyPrint(); </script>

docs/index.html

Lines changed: 128 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,133 @@ <h3> </h3>
4242

4343

4444

45+
<section>
46+
<article><p><a href="https://travis-ci.com/mghcomputationalpathology/dicom-microscopy-viewer"><img src="https://travis-ci.com/mghcomputationalpathology/dicom-microscopy-viewer.svg?branch=master" alt="Build Status"></a></p>
47+
<h1>DICOM Microscopy Viewer</h1>
48+
<p>Vanilla JS library for web-based visualization of <a href="http://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_A.32.8.html">DICOM VL Whole Slide Microscopy Image</a> datasets.</p>
49+
<h2>Motivation and implementation</h2>
50+
<p>The library is intended to provide a lightweight and standard-compliant viewer for microscopy images in DICOM format.
51+
The viewer relies on <a href="http://openlayers.org/">Openlayers</a> for rendering pyramid images and dynamically retrieves pyramid tiles (image frames) via <a href="https://www.dicomstandard.org/dicomweb/retrieve-wado-rs-and-wado-uri/">DICOMweb WADO-RS</a> using <a href="https://github.com/mghcomputationalpathology/dicomweb-client">dicomweb-client</a>.
52+
However, the viewer API fully abstracts the underlying rendering library and doesn't expose the lower level Openlayers API directly, such that another rendering library could in principle be used in the future if this would be of advantage.</p>
53+
<h2>Live demo</h2>
54+
<p>Check out the online examples at <a href="https://microscopy.dcmjs.org/">microscopy.dcmjs.org</a>.</p>
55+
<h2>Installation</h2>
56+
<p>Install the <a href="https://www.npmjs.com/package/dicom-microscopy-viewer">dicom-microscopy-viewer</a> package using the <code>npm</code> package manager:</p>
57+
<pre class="prettyprint source lang-None"><code>npm install dicom-microscopy-viewer
58+
</code></pre>
59+
<h2>Building and testing</h2>
60+
<p>Build and test code locally:</p>
61+
<pre class="prettyprint source lang-None"><code>git clone https://github.com/mghcomputationalpathology/dicom-microscopy-viewer ~/dicom-microscopy-viewer
62+
cd ~/dicom-microscopy-viewer
63+
npm install
64+
npm run build
65+
npm test
66+
</code></pre>
67+
<p>We use <a href="https://rollupjs.org/guide/en">rollup</a> for bundling and <a href="https://github.com/mantoni/mochify.js">mochify</a> for testing (based on <a href="https://mochajs.org/">mocha</a> and <a href="http://www.chaijs.com/">chai</a>).</p>
68+
<p>Build the documentation:</p>
69+
<pre class="prettyprint source lang-None"><code>npm run generateDocs
70+
</code></pre>
71+
<h2>Usage</h2>
72+
<pre class="prettyprint source lang-html"><code>&lt;script type=&quot;text/javascript&quot; src=&quot;https://unpkg.com/dicom-microscopy-viewer&quot;>&lt;/script>
73+
</code></pre>
74+
<p>The viewer can be embedded in any website, one only needs to</p>
75+
<ul>
76+
<li>
77+
<p>Create an instance of the <code>viewer.VolumeViewer</code>. The constructor requires an instance of <code>DICOMwebClient</code> for retrieving frames from the archive as well as the metadata for each DICOM image instance formatted according to the <a href="http://dicom.nema.org/medical/dicom/current/output/chtml/part18/sect_F.2.html">
78+
DICOM JSON Model</a>.</p>
79+
</li>
80+
<li>
81+
<p>Call the <code>render()</code> method, passing it the HTML element (or the name of the element), which shall contain the viewport.</p>
82+
</li>
83+
</ul>
84+
<pre class="prettyprint source lang-js"><code>const url = 'http://localhost:8080/dicomweb';
85+
const client = new DICOMwebClient.api.DICOMwebClient({url});
86+
const studyInstanceUID = '1.2.3.4';
87+
const seriesInstanceUID = '1.2.3.5';
88+
const searchInstanceOptions = {
89+
studyInstanceUID,
90+
seriesInstanceUID
91+
};
92+
client.searchForInstances(searchInstanceOptions).then((instances) => {
93+
const promises = []
94+
for (let i = 0; i &lt; instances.length; i++) {
95+
const sopInstanceUID = instances[i][&quot;00080018&quot;][&quot;Value&quot;][0];
96+
const retrieveInstanceOptions = {
97+
studyInstanceUID,
98+
seriesInstanceUID,
99+
sopInstanceUID,
100+
};
101+
const promise = client.retrieveInstanceMetadata(retrieveInstanceOptions).then(metadata => {
102+
const imageType = metadata[0][&quot;00080008&quot;][&quot;Value&quot;];
103+
if (imageType[2] === &quot;VOLUME&quot;) {
104+
return(metadata[0]);
105+
}
106+
});
107+
promises.push(promise);
108+
}
109+
return(Promise.all(promises));
110+
}).then(metadata => {
111+
metadata = metadata.filter(m => m);
112+
const viewer = new DICOMMicroscopyViewer.viewer.VolumeViewer({
113+
client,
114+
metadata
115+
});
116+
viewer.render({container: 'viewport'});
117+
});
118+
</code></pre>
119+
<h2>Status</h2>
120+
<p><strong>Investigational use only!</strong></p>
121+
<p>The viewer allows visualization of <em>VL Whole Slide Microscopy Image</em> datasets stored in a <a href="https://www.dicomstandard.org/dicomweb/">DICOMweb</a> compatible archive.
122+
It leverages the <a href="https://github.com/dcmjs-org/dicomweb-client">dicomweb-client</a> JavaScript library to retrieve data from the archive.</p>
123+
<h3>Features</h3>
124+
<ul>
125+
<li>Display of different image types: <code>VOLUME</code>, <code>OVERVIEW</code>, <code>LABEL</code></li>
126+
<li>Server-side rendering of images with inclusion of ICC profiles for color reproducibility</li>
127+
<li>Client-side assembly of concatenations</li>
128+
<li>Vector graphic annotation of regions of interest (ROI) based on 3-dimensional spatial coordinates (SCOORD3D): <code>POINT</code>, <code>MULTIPOINT</code>, <code>POLYLINE</code>, <code>POLYGON</code>, <code>ELLIPSE</code>, <code>ELLIPSOID</code></li>
129+
</ul>
130+
<h3>Limitations</h3>
131+
<p>Currently, the viewer only supports</p>
132+
<ul>
133+
<li>Brightfield illumination (no fluorescence)</li>
134+
<li>2D images (no z-stacks)</li>
135+
</ul>
136+
<h2>Citation</h2>
137+
<p>Please cite the following article when using the viewer for scientific studies: <a href="http://www.jpathinformatics.org/article.asp?issn=2153-3539;year=2018;volume=9;issue=1;spage=37;epage=37;aulast=Herrmann">Herrmann et al. J Path Inform. 2018</a>:</p>
138+
<pre class="prettyprint source lang-None"><code>@article{jpathinform-2018-9-37,
139+
Author={
140+
Herrmann, M. D. and Clunie, D. A. and Fedorov A. and Doyle, S. W. and Pieper, S. and
141+
Klepeis, V. and Le, L. P. and Mutter, G. L. and Milstone, D. S. and Schultz, T. J. and
142+
Kikinis, R. and Kotecha, G. K. and Hwang, D. H. and Andriole, K, P. and Iafrate, A. J. and
143+
Brink, J. A. and Boland, G. W. and Dreyer, K. J. and Michalski, M. and
144+
Golden, J. A. and Louis, D. N. and Lennerz, J. K.
145+
},
146+
Title={Implementing the {DICOM} standard for digital pathology},
147+
Journal={Journal of Pathology Informatics},
148+
Year={2018},
149+
Number={1},
150+
Volume={9},
151+
Number={37}
152+
}
153+
154+
</code></pre>
155+
<h2>Documentation</h2>
156+
<p>The online Application Programming Interface (API) documentation is available at <a href="https://mghcomputationalpathology.github.io/dicom-microscopy-viewer/">mghcomputationalpathology.github.io/dicom-microscopy-viewer</a>.</p>
157+
<h2>Getting started</h2>
158+
<p>Take a look at the examples in the <code>/examples</code> directory.
159+
They are also available online at <a href="https://microscopy.dcmjs.org/">microscopy.dcmjs.org</a>.</p>
160+
<h2>Support</h2>
161+
<p>The developers gratefully acknowledge their reseach support:</p>
162+
<ul>
163+
<li>Open Health Imaging Foundation (<a href="http://ohif.org">OHIF</a>)</li>
164+
<li>Quantitative Image Informatics for Cancer Research (<a href="http://qiicr.org">QIICR</a>)</li>
165+
<li><a href="http://radiomics.io">Radiomics</a></li>
166+
<li>The <a href="http://nac.spl.harvard.edu">Neuroimage Analysis Center</a></li>
167+
<li>The <a href="http://ncigt.org">National Center for Image Guided Therapy</a></li>
168+
<li>The <a href="https://www.ccds.io/">MGH &amp; BWH Center for Clinical Data Science</a></li>
169+
</ul></article>
170+
</section>
171+
45172

46173

47174

@@ -56,7 +183,7 @@ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="api.ht
56183
<br class="clear">
57184

58185
<footer>
59-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.5</a> on Sat Sep 12 2020 17:44:46 GMT-0400 (Eastern Daylight Time)
186+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.5</a> on Sat Sep 12 2020 17:54:34 GMT-0400 (Eastern Daylight Time)
60187
</footer>
61188

62189
<script> prettyPrint(); </script>

docs/metadata.VLWholeSlideMicroscopyImage.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="api.ht
162162
<br class="clear">
163163

164164
<footer>
165-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.5</a> on Sat Sep 12 2020 17:44:46 GMT-0400 (Eastern Daylight Time)
165+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.5</a> on Sat Sep 12 2020 17:54:34 GMT-0400 (Eastern Daylight Time)
166166
</footer>
167167

168168
<script> prettyPrint(); </script>

docs/metadata.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="api.ht
296296
<br class="clear">
297297

298298
<footer>
299-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.5</a> on Sat Sep 12 2020 17:44:46 GMT-0400 (Eastern Daylight Time)
299+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.5</a> on Sat Sep 12 2020 17:54:34 GMT-0400 (Eastern Daylight Time)
300300
</footer>
301301

302302
<script> prettyPrint(); </script>

docs/metadata.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="api.ht
178178
<br class="clear">
179179

180180
<footer>
181-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.5</a> on Sat Sep 12 2020 17:44:46 GMT-0400 (Eastern Daylight Time)
181+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.5</a> on Sat Sep 12 2020 17:54:34 GMT-0400 (Eastern Daylight Time)
182182
</footer>
183183

184184
<script> prettyPrint(); </script>

docs/roi.ROI.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="api.ht
352352
<br class="clear">
353353

354354
<footer>
355-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.5</a> on Sat Sep 12 2020 17:44:46 GMT-0400 (Eastern Daylight Time)
355+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.5</a> on Sat Sep 12 2020 17:54:34 GMT-0400 (Eastern Daylight Time)
356356
</footer>
357357

358358
<script> prettyPrint(); </script>

docs/roi.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="api.ht
130130
<br class="clear">
131131

132132
<footer>
133-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.5</a> on Sat Sep 12 2020 17:44:46 GMT-0400 (Eastern Daylight Time)
133+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.5</a> on Sat Sep 12 2020 17:54:34 GMT-0400 (Eastern Daylight Time)
134134
</footer>
135135

136136
<script> prettyPrint(); </script>

0 commit comments

Comments
 (0)