Using ClearCanvas in C# – Programming, Pseudocode Example, C# Programming Example
General

Using ClearCanvas in C#

Introduction

This tutorial briefly shows how to perform the most common operations with the help of the ClearCanvas library.

ClearCanvas is an open source code base for enabling software innovation in medical imaging. The extensible and robust platform includes viewing, archiving, management, workflow and distribution of medical images as well as an open architecture for core competency tool development.

ClearCanvas is actually a company dedicated to creating open source computing applications in the healthcare world. (www.clearcanvas.ca/). In particular, they developed an SDK called ClearCanvas SDK that allows, roughly, to process DICOM files.

There are several libraries to handle this kind of file, but ClearCanvas has several advantages (an active forum where you can ask questions, a completely object-oriented SDK done in C#, some documentation even if it’s true that they could do better, etc.).

The goal of this mini tutorial is to give the first steps in the use of this library is quite complex.

Github repository download address here: https://clearcanvas.github.io/

What is A DICOM File?

DICOM is the acronym for Digital Imaging and Communications in Medicine which is translatable by digital imaging and communication in medicine. It is above all a standard of communication and archiving in medical imaging.

It was the ACR (American College of Radiology) and the National Electric Manufacturers Association (NEMA) that created it in 1985 to standardize the data exchanged between different radiology devices. The official website of the standard can be visited at this address: (medical.nema.org/).

Read a DICOM File

The following code shows how to read a DICOM file with the ClearCanvas library.

 

Write a  DICOM File

The following code demonstrates how to write a DICOM file with the ClearCanvas library.

Customize an IMAGESOP

How to customize an ImageSop, in this case to go directly through the memory without using a temporary file.

 

Extract an Image From a File

How to extract an image from a DICOM file

To Finish

Yes I know, it’s not much, but when you have to look for this kind of information (which does not run the streets for a bookstore as specific), it takes a lot of time …

 

 

 

 

 

 

 

 

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.