npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

larvitar

v2.7.2

Published

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

Downloads

747

Readme

Larvitar

type-coverage

Dicom Image Toolkit for CornerstoneJS

Current version: 2.7.2

Latest Published Release: 2.7.2

This library provides common DICOM functionalities to be used in web-applications: it's wrapper that simplifies the use of cornerstone-js environment.

Features:

  • Orthogonal multiplanar reformat with contours generations
  • Custom loader/exporter for nrrd files
  • Segmentation masks support
  • Memory management
  • Support all dicom modalities
  • 4D Cine support
  • Anonymization functionalities
  • Cine tools and ECG Parsing
  • Masks management

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

Typescript

Types can be imported from larvitar/imaging/types or larvitar/imaging/tools/types.

import { Series } from "larvitar/imaging/types";

let newSerie: Series;

Dependencies

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

Installation

yarn add larvitar

Build package

yarn build

Coverage

Use yarn coverage to generate type coverage report.

Development

Use yarn dev to have webpack hot-reload (live recompiling the library). In order to test functionalities you can serve the .html file with VSCode extension LiveServer or other similar tools. Once you are done, upgrade the version (README and package.json) and build the library. Docs will be compiled by the Github action.

Repository structure

  • index main file
  • dataDictionary json file for dicom tags
  • imageAnonymization provides anonymization functionalities
  • imageCustomization provides Byte Array customization functionalities
  • 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 cornerstone 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
  • imageTags using to handle dicom tags and metadata
  • 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/multiFrameLoader custom loader for multiFrame data
  • loaders/nrrdLoadercustom loader for nrrd files with support for multiplanar reformat (axial, sagittal and coronal planes)
  • loaders/resliceLoader custom loader for resliced data
  • parsers/ecg custom parser for ecg data
  • parsers/nrrd custom parser for nrrd data
  • tools/custom/4DSliceScrollTool is a custom cornerstone tool for handling navigation of slices in a 4D DICOM series
  • 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/EllipticalRoiOverlayTool is a custom cornerstone tool for 2D visualization of elliptical widgets
  • tools/custom/polygonSegmentationMixin is a custom cornerstone tool for 2D visualization of polygonal widgets
  • tools/custom/polylineScissorTool is a custom cornerstone tool for 2D visualization of polyline widgets
  • tools/custom/rectangleRoiOverlayTool is a custom cornerstone tool for 2D visualization of rectangular widgets
  • tools/custom/seedTool is a custom cornerstone tool for 2D interactive seeding with custom colors and labels
  • tools/custom/setLabelMap3D
  • tools/custom/thresholdsBrushTool is a custom cornerstone tool for handling thresholds in a brush tool
  • tools/default default tools map and configuration
  • tools/interaction cornerstone interaction tools
  • tools/io import and export functionalities for tools
  • tools/main tools main functionalities
  • tools/state tools state management
  • tools/segmentation segmentation masks management
  • tools/strategies/eraseFreeHand strategy for erasing freehand masks
  • tools/strategies/fillFreeHand strategy for filling freehand masks
  • tools/strategies/index strategies index

Contributors

  • Simone Manini, D/Vision Lab
  • Mattia Ronzoni, D/Vision Lab
  • Sara Zanchi, D/Vision Lab
  • Alessandro Re, D/Vision Lab
  • Laura Borghesi, D/Vision Lab

dvisionlab logo