larvitar

javascript library for parsing, loading, rendering and interacting with DICOM images

Usage no npm install needed!

<script type="module">
  import larvitar from 'https://cdn.skypack.dev/larvitar';
</script>

README

accessibility text

Larvitar

Dicom Image Toolkit for CornestoneJS

Current version: 1.2.3

Latest Stable version: 1.2.3

Latest Published Release: 1.2.3

This library provides common DICOM functionalities to be used in web-applications: it's wrapper that simplifies the use of cornestone-js environment. Orthogonal multiplanar reformat is included as well as custom loader/exporter for nrrd files and Vuex custom integration.

  • index main file
  • dataDictionary json file for dicom tags
  • imageColormaps provides color maps functionalities
  • imageContours using to populate cornerstone tool for segmentation contours on 2D images
  • imageIo import a dicom image in .nrrd format and build contiguous array for exporting data as volume
  • imageLayers provide support for multi-layer cornerstone fusion renderer
  • imageLoading initialize loader and custom loaders
  • imageParsing parse dicom files and return a cornestone data structure ready to be used for rendering
  • imagePresets provides default image CT presets and set functionality
  • imageRendering provides rendering functionalities
  • imageReslice provides reslice functionalities
  • imageStore provides data storage functionalities, vuex support is integrated
  • imageTools using to handle standard and custom cornerstone tools
  • imageUtils utility functions on pixels and metadata tags
  • loaders/commonLoader common functionalities for custom loaders
  • loaders/dicomLoader custom loader for DICOM files with support for multiplanar reformat (axial, sagittal and coronal planes)
  • loaders/fileLoader custom loader for png/jpg files
  • loaders/nrrdLoadercustom loader for nrrd files with support for multiplanar reformat (axial, sagittal and coronal planes)
  • loaders/resliceLoader custom loader for resliced data
  • loaders/multiFrameLoader custom loader for multiFrame data
  • parsers/nrrd custom parser for nrrd data
  • tools/custom/contourTool is a custom cornerstone tool for 2D visualization of segmented images
  • tools/custom/diameterTool is a custom cornerstone tool for 2D visualization of diameter widgets
  • tools/custom/editMaskTool is a custom cornerstone tool for 2D visualization of segmentation masks with brush functionalities
  • tools/custom/seedTool is a custom cornerstone tool for 2D interactive seeding with custom colors and labels
  • tools/custom/thresholdsBrushTool is a custom cornerstone tool for handling thresholds in a brush tool
  • tools/default default tools map and configuration
  • tools/io import and export functionalities for tools
  • tools/main tools main functionalities
  • tools/state tools state management
  • tools/segmentation segmentation masks management
  • modules/vuex/larvitar.js optional vuex state module

Larvitar can be used with or without vuex bindings:

import { initLarvitarStore } from "larvitar";
import store from "@/store/index";

initLarvitarStore(store); // Calling this without parameters makes Larvitar use its internal store.

Full documentation and examples are available at http://www.dvisionlab.com/Larvitar/.


Contributors

  • Simone Manini, D/Vision Lab
  • Mattia Ronzoni, D/Vision Lab
  • Sara Zanchi, D/Vision Lab

dvisionlab logo

Dependencies

  • cornerstone
  • cornerstone-tools
  • dicomParser
  • wadoImageLoader
  • webImageLoader
  • fileImageLoader
  • lodash
  • pako
  • papaparse

Installation

yarn add larvitar

Build package

yarn build-lib