This repository contains essential, working source code examples for DICOM networking and data manipulation using the MODALIZER-SDK DICOM Toolkit by H.R.Z.
The examples cover C++, C#, and PowerShell, demonstrating how to implement key DICOM features like Storage SCU, Query/Retrieve, and object creation.
In fact, the MODALIZER+ DICOM Viewer & Converter is built entirely using the MODALIZER-SDK.
Need a viewer for the DICOM files you create? Easily inspect, convert, and validate your DICOM Objects using the MODALIZER+ DICOM Viewer & Converter.
The supporting data as well as zip archives with the C# and C++ source code can be downloaded from here.
This repository contains code examples built with DICOM. The examples in this repo come with an MIT license, but MODALIZER-SDK itself is a proprietary commercial software and not included in this repository.
These examples are useful because the SDK allows 100 API calls before enforcing license restrictions, so you will be able to build and run the examples right away.
For more information, check the complete MODALIZER-SDK DICOM Library reference manual.
=====================================
All MODALIZER-SDK C++ examples import the TLB file that is embedded in rzdcx.dll and assume that it is located in a folder parallel to the examples folder. You can see this line in all examples:
#import "../../MODALIZER-SDK/win32/rzdcx.dll" rename_namespace ("rzdcxLib")
To build and run the examples in this archive please do the following:
- Download MODALIZER-SDK latest release from https://downloads.hrzkit.com/MODALIZER-SDK/
- Download the Supporting Data as zip archives from https://downloads.hrzkit.com/MODALIZER-SDK/Examples/
- Extract the zip MODALIZER-SDK archive to a folder next to the examples.
- Run "install.bat" as an administrator (right click "install.bat" and select "Run as aministrator")
You should have the following directory structure:
<...>\MODALIZER-SDK
<...>\MODALIZER-SDK\win32
...
<...>\ExportCPP\CPPRZDCXExamples.sln
<...>\ExportCPP\CPPCreateDICOMDIR
<...>\ExportCPP\CPPCreateImageExample
...
-
Extract the zip CppExampleData archive to the folder next to the examples (so subfolders of the zip merge with the projects folders)
-
Open the solution file CPPRZDCXExamples.sln using Visual Studio (2019) and build it using the default configuration (Debug|Win32).
====================================
To build and run the examples in this archive please do the following:
- Download MODALIZER-SDK latest release from https://downloads.hrzkit.com/MODALIZER-SDK/
- Download the C# Supporting Data as zip archives from https://downloads.hrzkit.com/MODALIZER-SDK/Examples/
- Run "install.bat" as an administrator (right click "install.bat" and select "Run as aministrator").
You should have the following directory structure:
<...>\MODALIZER-SDK
<...>\MODALIZER-SDK\win32
...
<...>\ExportCPP\CPPRZDCXExamples.sln
<...>\ExportCPP\CPPCreateDICOMDIR
<...>\ExportCPP\CPPCreateImageExample
...
-
Extract the zip CsExampleData archive to the folder next to the examples (so subfolders of the zip merge with the projects folders)
-
Open the solution file CSharpRZDCXExamples.sln using Visual Studio (2019) and build it using the default configuration (Debug|Win32).
=================================
To run the examples in this archive please do the following:
- Download MODALIZER-SDK latest release from https://downloads.hrzkit.com/MODALIZER-SDK/
- Run "install.bat" as an administrator (right click "install.bat" and select "Run as aministrator")
- Run the scripts from PowerShell or Console or PowerShell ISE.