Skip to content
Search

Cornerstone.js

lastmod 2021-10-18created 2021-10-182 edits

A medical imaging library (has many features such as zoom in/out, filtering, etc.)

Features

  • A unified imaging platform for building medical web applications
  • DICOM parsing
    • Supports all Transfer Syntaxes
    • Supports WADO-URI / WADO-RS
  • High-performance multithreaded image decoding using Web Workers
  • Modular design makes it easy to extend

Example

const element = document.getElementById('demo-element');
const imageId = 'https://example.url.com/image.dcm';

cornerstone.enable(element);
cornerstone.loadAndCacheImage(imageId).then(function(image) {
  cornerstone.displayImage(element, image);

  // Enable our tools
  cornerstoneTools.mouseInput.enable(element);
  cornerstoneTools.mouseWheelInput.enable(element);
  cornerstoneTools.wwwc.activate(element, 1); // Left Click
  cornerstoneTools.pan.activate(element, 2); // Middle Click
  cornerstoneTools.zoom.activate(element, 4); // Right Click
  cornerstoneTools.zoomWheel.activate(element); // Mouse Wheel
});

See also

Favorite site

author Zer0 sitemap