Coder Social home page Coder Social logo

evil-dicom's Introduction

Alt text

Portable Evil DICOM - A DICOM library in C#

Copyright (c) 2011-2014 Rex Cardan, Portable Class Library adaptation (c) 2012-2014 Anders Gustafsson, Cureos AB

This project is a Portable Class Library adapted fork of Rex Cardan's original Evil DICOM library. For general information and tutorials, see here.

Applicability

The EvilDicom.Core Visual Studio solution contains a Portable Class Library project, a .NET 4.5 project for the class that cannot be represented in PCL, and a unit test project. The PCL library EvilDICOM.Core supports the following targets:

  • .NET Framework version 4.5 and higher
  • Windows 8 and higher (f.k.a. Metro)
  • Silverlight version 5 and higher
  • Windows Phone (Silverlight) version 8 and higher
  • Xamarin.Android
  • Xamarin.iOS

Public API Differences

To meet the requirements of a Portable Class Library project, the PCL library public API differs from Rex Cardan's original .NET 4 library as follows:

  • DICOMBinaryReader and DICOMBinaryWriter constructors, DICOMFileReader.Read, DICOMFileReader.ReadFileMetadata and DICOMFileWriter.WriteLittleEndian methods takes a Stream argument instead of file path string.
  • DICOMNetworkBinaryReader is excluded in the PCL library due to its dependency to the Socket class. This class is instead incorporated in the .NET 4.5 class library EvilDICOM.Desktop.

PCL example usage

Read a DICOM file with the name path:

var dcm = DICOMFileReader.Read(File.OpenRead(path));			// .NET and Silverlight elevated trust applications

Write DICOM object dcm to a file with the name path:

DICOMFileWriter.WriteLittleEndian(File.OpenWrite(path), dcm);	// .NET and Silverlight elevated trust applications

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.