Using DicomObjects in Python

DicomObjects can be used in Python with the help of various API's and interface generators available. We have tested 2 of those modules (1 for .NET version and 1 for COM version) but please do not limit yourself to these examples as you may find other easier tools to use in conjunction with DicomObjects.

COM version: (The instructions in this section below has been tested using pywin32 interface generator for DicomObjects COM interfaces)

Upgrading to DicomObjects 6.0

  1. .NET
  2. COM

Changes to DicomObjects.NET Version 6


Importing pixel data to DicomImage

Pixel data that is not convertible to Bitmap can be directly imported by DicomObjects by using the DimcomImage.Import() method overload with "stream" and "format" parameters.

These parameters are:
  1. "Stream" which consists of pixel data.
  2. "Format" is a string value of the file extension.  ( e.g.  J2K , JPP , JP2 , JPC , PGC , PGX , PDF , CDA )

Based on the specified "format",  an appropriate codec is selected and applied for importing pixel data from the "stream" to a DicomImage.

DicomObjects.NET - why 10 seconds delay on loading first DICOM image

We are sometimes getting report from our users about this particular problem which was "caused" by our CDLicense checking code - "CDLicense" (perhaps not the best term!) is what we use to describe the process you use to authenticate by strong name rather than license server (as it was first used for CD viewers).

DICOM Extended Negotiation of User Identity


DICOM supplement 99 - DICOM User Identity Negotiation.



Available in DicomObjects.NET version and all later versions:


Sample c# code:




DicomAssociation cn = new DicomAssociation();

cn.Identity = new DicomAssociation.UserIdentity();


DicomDataSet.Value Overview

Here is a complete list of all possible .NET objects that DicomDataset.Value can return.



A DICOM Dataset is the fundamental "block" of useful information in DICOM, and is used for multiple purposes:


We are sometimes asked "does DicomObjects support ECG" (or EKG depending on where you are in the world!)

The answer is that we support it (as we for all SOP classes) for reading/writing/transmission as well as giving you the ability to create it and to extract data element values from it.

We do not offer explicit rendering (there are just TOO many variables, and we spend days handling every possible option of line thickness, colour etc.) but the ECG data is readily available, and quite simple to put into the graphing package of your choice.


Subscribe to RSS - .NET

We Currently Accept:

Other currencies

For Reference purposes only:

The price is based on current exchange rates but is only an approximation. Please contact us for a final price