JSPM

cornerstone-side-image-loader

1.0.6
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 10
  • Score
    100M100P100Q41458F
  • License MIT

utility to load sagittal and coronal view from axial dicom series

Package Exports

  • cornerstone-side-image-loader

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cornerstone-side-image-loader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

cornerstoneSideImageLoader

All Contributors

An MPR image loader that reconstructs coronal and sagittal images from axial images.


7323b53f1068

Dependencies

Demo

Right viewport displays original axial images. Left viewports display multiplanar-reconstructed coronal and sagittal images.

LIVE DEMONSTRATION

Installation

$ yarn add cornerstone-side-image-loader

or

$ npm i cornerstonetools-side-image-loader

Example

import cornerstone from 'cornerstone-core'
import cornerstoneSideImageLoader, { generateSideImages } from "cornerstone-side-image-loader"

cornerstoneSideImageLoader.external.cornerstone = cornerstone

const loadAxialImages = Promise.all(
  imageIds.map((imageId) => cornerstone.loadAndCacheImage(imageId)),
)
loadAxialImages.then(images => {
  const { coronalImageIds, sagittalImageIds } = generateSideImages(images)
  // do coronal and sagittal business
  coronalImageIds.map((imageId) => cornerstone.loadImage(imageId))
  sagittalImageIds.map((imageId) => cornerstone.loadImage(imageId))
})

Usage

LICENSE

MIT

Contributors ✨

This repository was initially developed by sisobus. Thanks goes to these wonderful people (emoji key):


Sangkeun Kim/김상근

💻

Minkyu Song/송민규

💻

This project follows the all-contributors specification. Contributions of any kind welcome!