dcmjs-stream

0.1.2 • Public • Published

dcmjs-stream

Stream version for reading DICOM files of dcmjs.

Usage

import { DicomMessageAsync } from "dcmjs-stream";
import { readFrame } from "dcmjs-stream/readFrame";

const dataset = await DicomMessageAsync.readFile("path/to/file.dcm", {
    untilTag: "7FE00010"
});

// Read the 136th frame
const frame = await readFrame(dataset.bufferStream, 136);

Memory Benchmark

Below is the memory benchmark result of reading a 700MB DICOM file.

Memory Benchmark Result

Readme

Keywords

none

Package Sidebar

Install

npm i dcmjs-stream

Weekly Downloads

9

Version

0.1.2

License

ISC

Unpacked Size

2.41 MB

Total Files

11

Last publish

Collaborators

  • a5566qq123