@jdmichaud/rdicom-web
TypeScript icon, indicating that this package has built-in type declarations

0.5.2 • Public • Published

rdicom-web

Provides DICOM access in Javascript. This packages relies on the rdicom library to parse DICOM files.

Usage

Install the package using npm:

npm install --save @jdmichaud/rdicom-web

To load a DICOM file

import { LocalDataset, LocalDicomInstanceDecoder } from '../dist/index';

const instanceDecoder = new LocalDicomInstanceDecoder();
await instanceDecoder.init();
// We assume the file content is in a ArrayBuffer called buffer
const instance = instanceDecoder.getInstanceFromBuffer(buffer);
const columns = localDataset.getColumns();
const rows = localDataset.getRows();
console.log(`columns ${columns} rows ${rows}`);

Readme

Keywords

Package Sidebar

Install

npm i @jdmichaud/rdicom-web

Weekly Downloads

1

Version

0.5.2

License

MIT

Unpacked Size

11.9 MB

Total Files

15

Last publish

Collaborators

  • jdmichaud