Skip to content

Commit 6f983eb

Browse files
author
hackermd
committed
Add documentation
1 parent f8c444d commit 6f983eb

File tree

3 files changed

+70
-1
lines changed

3 files changed

+70
-1
lines changed

README.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,63 @@
11
# dicom-microscopy-viewer
22
Web-based viewer for [DICOM Visible Light Whole Slide Microscopy Images](http://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_A.32.8.html).
33

4+
5+
## Install
6+
7+
The `dicom-microscopy-viewer` package can be installed via [npm](https://www.npmjs.com/):
8+
9+
```None
10+
npm install dicom-microscopy-viewer
11+
```
12+
13+
## Build
14+
15+
The library can be build locally with [rollup](https://rollupjs.org/guide/en):
16+
17+
```None
18+
git clone https://github.com/dcmjs-org/dicom-microscopy-viewer ~/dicom-microscopy-viewer
19+
cd ~/dicom-microscopy-viewer
20+
npm install
21+
npm run build
22+
```
23+
24+
## Usage
25+
26+
```js
27+
const url = 'http://localhost:8080/dicomweb';
28+
const client = new DICOMwebClient.api.DICOMwebClient({url});
29+
const studyInstanceUID = '1.2.3.4';
30+
const seriesInstanceUID = '1.2.3.5';
31+
const viewer = new DICOMMicroscopyViewer.api.MicroscopyViewer({
32+
client,
33+
studyInstanceUID,
34+
seriesInstanceUID
35+
});
36+
viewer.render({container: "viewport"});
37+
```
38+
39+
## Status
40+
441
**This is work-in-progress and should not be used in clinical practice.**
42+
43+
The viewer allows visualization of *VL Whole Slide Microscopy Image* datasets stored in a [DICOMweb](https://www.dicomstandard.org/dicomweb/) compatible archive.
44+
It leverages [dicomweb-client](https://github.com/dcmjs-org/dicomweb-client) to retrieve data from the archive.
45+
46+
### Limitations
47+
48+
Currently, the viewer only supports
49+
50+
* baseline JPEG with transfer syntax "1.2.840.10008.1.2.4.50"
51+
* brightfield illumination (no fluorescence)
52+
* 2D images (no z-stacks)
53+
54+
## Support
55+
56+
The developers gratefully acknowledge their reseach support:
57+
* Open Health Imaging Foundation ([OHIF](http://ohif.org))
58+
* Quantitative Image Informatics for Cancer Research ([QIICR](http://qiicr.org))
59+
* [Radiomics](http://radiomics.io)
60+
* The [Neuroimage Analysis Center](http://nac.spl.harvard.edu)
61+
* The [National Center for Image Guided Therapy](http://ncigt.org)
62+
* The [MGH & BWH Center for Clinical Data Science](https://www.ccds.io/)
63+

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"dicomweb",
1919
"microscopy"
2020
],
21-
"author": "Markus Herrmann",
21+
"author": "Markus D. Herrmann",
2222
"license": "MIT",
2323
"bugs": {
2424
"url": "https://github.com/dcmjs-org/dicom-microscopy-viewer/issues"

src/api.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,23 @@ import { formatImageMetadata } from './metadata.js';
1717

1818
class MicroscopyViewer {
1919

20+
/*
21+
* options:
22+
* client - an instance of DICOMwebClient
23+
* studyInstanceUID - DICOM Study Instance UID
24+
* seriesInstanceUID - DICOM Study Instance UID
25+
*/
2026
constructor(options) {
2127
this.client = options.client;
2228
this.studyInstanceUID = options.studyInstanceUID;
2329
this.seriesInstanceUID = options.seriesInstanceUID;
2430
this.map = null;
2531
}
2632

33+
/*
34+
* options:
35+
* container - name of an HTML document element
36+
*/
2737
render(options) {
2838
console.log('render images using microscopy viewer')
2939
const studyInstanceUID = this.studyInstanceUID;

0 commit comments

Comments
 (0)