Skip to content

Commit b236694

Browse files
committed
Refactor and document api
* Documents all API classes, methods, and functions using JSDoc * Exposes more the API via different namespaces * Adds documentation generated via JSDoc * Adds new viewer classes for display of LABEL and OVERVIEW images * Deprecates the old viewer class
1 parent e0e2455 commit b236694

File tree

69 files changed

+38816
-81
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+38816
-81
lines changed

README.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ npm test
3030

3131
We use [rollup](https://rollupjs.org/guide/en) for bundling and [mochify](https://github.com/mantoni/mochify.js) for testing (based on [mocha](https://mochajs.org/) and [chai](http://www.chaijs.com/)).
3232

33+
Build the documentation:
34+
35+
```None
36+
npm run generateDocs
37+
```
3338

3439
## Usage
3540

@@ -39,7 +44,7 @@ We use [rollup](https://rollupjs.org/guide/en) for bundling and [mochify](https:
3944

4045
The viewer can be embedded in any website, one only needs to
4146

42-
* Create an instance of the `VLWholeSlideMicroscopyImageViewer`. The constructor requires an instance of `DICOMwebClient` for retrieving frames from the archive as well as the metadata for each DICOM image instance formatted according to the [
47+
* Create an instance of the `viewer.VolumeViewer`. The constructor requires an instance of `DICOMwebClient` for retrieving frames from the archive as well as the metadata for each DICOM image instance formatted according to the [
4348
DICOM JSON Model](http://dicom.nema.org/medical/dicom/current/output/chtml/part18/sect_F.2.html).
4449

4550
* Call the `render()` method, passing it the HTML element (or the name of the element), which shall contain the viewport.
@@ -74,7 +79,7 @@ client.searchForInstances(searchInstanceOptions).then((instances) => {
7479
return(Promise.all(promises));
7580
}).then(metadata => {
7681
metadata = metadata.filter(m => m);
77-
const viewer = new DICOMMicroscopyViewer.api.VLWholeSlideMicroscopyImageViewer({
82+
const viewer = new DICOMMicroscopyViewer.viewer.VolumeViewer({
7883
client,
7984
metadata
8085
});
@@ -84,16 +89,23 @@ client.searchForInstances(searchInstanceOptions).then((instances) => {
8489

8590
## Status
8691

87-
**This is work-in-progress and should not be used in clinical practice.**
92+
**Investigational use only!**
8893

8994
The viewer allows visualization of *VL Whole Slide Microscopy Image* datasets stored in a [DICOMweb](https://www.dicomstandard.org/dicomweb/) compatible archive.
9095
It leverages the [dicomweb-client](https://github.com/dcmjs-org/dicomweb-client) JavaScript library to retrieve data from the archive.
9196

97+
### Features
98+
99+
* Display of different image types: `VOLUME`, `OVERVIEW`, `LABEL`
100+
* Server-side rendering of images with inclusion of ICC profiles for color reproducibility
101+
* Client-side assembly of concatenations
102+
* Vector graphic annotation of regions of interest (ROI) based on 3-dimensional spatial coordinates (SCOORD3D): `POINT`, `MULTIPOINT`, `POLYLINE`, `POLYGON`, `ELLIPSE`, `ELLIPSOID`
103+
92104
### Limitations
93105

94106
Currently, the viewer only supports
95107

96-
* brightfield illumination (no fluorescence)
108+
* Brightfield illumination (no fluorescence)
97109
* 2D images (no z-stacks)
98110

99111
## Citation
@@ -119,6 +131,15 @@ Please cite the following article when using the viewer for scientific studies:
119131
120132
```
121133

134+
## Documentation
135+
136+
The online Application Programming Interface (API) documentation is available at [mghcomputationalpathology.github.io/dicom-microscopy-viewer](https://mghcomputationalpathology.github.io/dicom-microscopy-viewer/).
137+
138+
## Getting started
139+
140+
Take a look at the examples in the `/examples` directory.
141+
They are also available online at [microscopy.dcmjs.org](https://microscopy.dcmjs.org/).
142+
122143
## Support
123144

124145
The developers gratefully acknowledge their reseach support:
@@ -129,3 +150,4 @@ The developers gratefully acknowledge their reseach support:
129150
* The [National Center for Image Guided Therapy](http://ncigt.org)
130151
* The [MGH & BWH Center for Clinical Data Science](https://www.ccds.io/)
131152

153+

0 commit comments

Comments
 (0)