https://github.com/ohif/openlayersplugin
Example OHIF plugin based using OpenLayers
https://github.com/ohif/openlayersplugin
image-analysis imaging-informatics medical-image-processing nci-itcr ohif-plugin quantitative-imaging
Last synced: about 1 month ago
JSON representation
Example OHIF plugin based using OpenLayers
- Host: GitHub
- URL: https://github.com/ohif/openlayersplugin
- Owner: OHIF
- License: mit
- Created: 2018-07-26T22:38:54.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-21T17:21:33.000Z (over 6 years ago)
- Last Synced: 2025-02-14T22:22:22.850Z (3 months ago)
- Topics: image-analysis, imaging-informatics, medical-image-processing, nci-itcr, ohif-plugin, quantitative-imaging
- Language: JavaScript
- Size: 9.77 KB
- Stars: 1
- Watchers: 21
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OHIF Microscopy Plugin
OHIF microscopy plugin based on the [DICOM Microscopy Viewer](https://github.com/dcmjs-org/dicom-microscopy-viewer).
1. Load the OHIF Viewer on a study
2. Paste the following into your JavaScript console to define the plugin and load the scripts.````javascript
var plugin = {
name: "MicroscopyPlugin",
url: "https://cdn.rawgit.com/OHIF/OpenLayersPlugin/master/microscopy/microscopy.js",
allowCaching: false,
scriptURLs: [
"https://cdn.rawgit.com/openlayers/openlayers.github.io/master/en/v5.1.3/build/ol.js",
"https://unpkg.com/dicomweb-client",
"https://cdn.rawgit.com/dcmjs-org/dicom-microscopy-viewer/feature/annotations/build/dicom-microscopy-viewer.js"
]
};
OHIF.plugins.OHIFPlugin.reloadPlugin(plugin);
````3. Switch a viewport to use the plugin by specifying its viewport index:
````javascript
OHIF.plugins.MicroscopyPlugin.setViewportToPlugin(0)
````