Parsing DICOM using WebAssembly
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Resources initial commit Apr 21, 2017
Sources warning message if wasm not supported May 24, 2017
AUTHORS initial commit Apr 21, 2017
CMakeLists.txt initial commit Apr 21, 2017
COPYING initial commit Apr 21, 2017
README.md Update README.md Apr 22, 2017

README.md

Parsing DICOM using WebAssembly

This repository contains a sample showing how WebAssembly (.wasm) can be used to implement the parsing of DICOM files client-side, i.e. directly by a Web browser. DICOM is the standard file format for medical imaging. The DICOM parser is entirely written in C++ using the industrial-grade DCMTK toolkit.

Demonstration

A live demonstration of this code is available on the Orthanc homepage.

Compiling

Download the latest version of the WebAssembly toolkit based upon Emscripten.

# mkdir Build
# cd Build
# cmake .. -DCMAKE_TOOLCHAIN_FILE=/home/jodogne/Downloads/emsdk/emscripten/incoming/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=.
# make install
# firefox ./wasm-dicom-parser/index.html

Obviously, adapt the path of the CMAKE_TOOLCHAIN_FILE of the cmake invokation to your own environment.

Licensing

This sample code is provided courtesy of Osimis, and is licensed under AGPL.