Skip to content

OpenDICOMweb/convert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

337 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open DICOMweb SDK

Convert

Version: 0.5.1

Note: This is a work in progress and not complete.

An Open DICOMweb package providing encoders/decoders for converting between different DICOM representations (media types) to the Open DICOMweb in-memory Study model.

Supported Media Types and Codecs

  • application/dicom (DicomCodec)
  • application/dicom+json (DicomJsonCodec)
  • application/dicom+xml (DicomXmlCodec - future?)

Default Top-Level Encoders/Decoders

  • Dicom.encode and Dicom.decode
  • DicomJson.encode and DicomJson.decode (TBD)
  • DicomXml.encode and Dicom.xml.decode (TBD)
  • HTML.encode (TBD)

Libraries

This package contains the following libraries:

  • bytebuf - Reading/writing data from/to a byte stream.
  • dicom - A DICOM media type (binary) encoder/decoder.
  • dicom+json - A DICOM+JSON media type encoder/decoder

In Progress

  • mint - A MINT media type encoder/decoder
  • mint+json - A MINT+JSON media type encoder/decoder
  • mint+html - A MINT+HTML media type encoder

Usage

A simple usage example:

import 'package:converter/converter.dart';


// Read binary DICOM file and decode into Study Model
List<int> bytes = new File('foo.dcm').readAsBytes();
Study study = Dicom.decode(bytes);

// Encode Study model into JSON and write to file
List<int> json = DicomJson.encode(study);
new File('foo.json').writeAsBytes(json);

TODO

  • DICOM+JSON Encoder/Decoder
  • MINT Encoder/Decoder
  • MINT+json Encoder/Decoder
  • MINT+HTML

Features and bugs

Please file feature requests and bugs at the issue tracker.

About

A package for reading and writing DICOM media types.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •