2021-06-11 - Version 3.2 of the Python plugin for Orthanc is available:
The Docker images "jodogne/orthanc-python:1.9.3" and "osimis/orthanc:21.6.0" have also been published and include this new version of the plugin.
This release adds a number of interesting Python primitives from Orthanc SDK 1.8.1 that were not wrapped in Python yet, notably:
- orthanc.CreateDicom() to create a DICOM instance from a JSON file and an image
- orthanc.CreateImageFromBuffer() to create an Orthanc image from a Python image (can be used for interfacing with PIL/Pillow)
- orthanc.DicomInstance.GetInstanceData() to get the raw DICOM file from an instance stored in Orthanc
- orthanc.Image.GetImageBuffer() to get a copy of the memory buffer that corresponds to an Orthanc image
- orthanc.LookupDictionary() to search for a DICOM tag in the dictionary
- orthanc.RegisterFindCallback() to implement a custom C-FIND SCP callback
- orthanc.RegisterMoveCallback() to implement a custom C-MOVE SCP callback
- orthanc.RegisterWorklistCallback() to implement a custom C-FIND SCP callback for worklist
These primitives make easier to interface Orthanc with image analysis libraries coded in Python, or with HL7/FHIR environments. They can also be used to implement DICOM query/retrieve proxies.
The Orthanc Book contains various examples of those new primitives: