rii-mango/Daikon

How convert *.dcm to *.bmp

dmitrymaslov99 opened this issue · 3 comments

How can i convert images from *.dcm to *.bmp or another format?

This is Pyhton, we need node.js (

@dmitrymaslov99 Daikon is a library for reading DICOM images, and image conversion is outside the scope of the core project. In theory, you can see how a tool like NiiVue can use Daikon to open an image and then can save this as a bitmap. However, most medical images have a high dynamic range (e.g. 16-bit scalar values) and most bitmap formats are designed for 256 levels of gray (e.g. even 32-bit RGBA has 256 levels of gray), so you need to choose the brightness and contrast (window width and window center in DICOM speak). This makes a generalized solution a bit tricky. Again, you can see how NiiVue solves this, with a robust range for MR scans and different color tables for CT scans (e.g. bones, airways, kidneys, etc).