Re: How can one read and display Dicom files in Euphoria?
- Posted by ChrisB (moderator) Sep 10, 2017
- 1389 views
Hi
They look good.
Looks like those libraries might be C++, which is more awkward to wrap with Eu. What I personally would do is call
dcmj2pnm: Convert DICOM images to PGM/PPM, PNG, TIFF, JPEG or BMP
and then use eu to load up the jpg/bmp, display it and then delete it from disk - if you are using a gui (like eugtk which is the best GUI for euphoria), then the command line conversion would happen in the background. I know it's neither efficient or elegant, but it will get the job done.
eugtk has it's own image loading examples, and use system() to call the external program.
Cheers
Chris