Re: DICOM Multiframe - Split into seperate DICOM files
Posted by
StrongSteve on
Mar 13, 2008; 6:28pm
URL: http://imagej.273.s1.nabble.com/DICOM-Multiframe-Split-into-seperate-DICOM-files-tp3696882p3696883.html
Great idea, I will give it a try! Thanks a lot!
Nevertheless - just in case I will need it lateron for exporting specific slides - is there a way to save specific slides as single frame DICOM images?
StrongSteve wrote
Hi Everybody!
As some of you might know, I am currently developing a web-based DICOM viewer based on ImageJ.
During the last few days I have been trying to support multiframe DICOM images. Unfortunately I have recognized some problems.
First of all it is nearly impossible to open large DICOM multiframe images (> 400Mb) as you nearly always run out of memory. Even increasing the JVM's memory is not an option. ;)
Secondly my DICOM viewer's design is aimed at single-frame DICOM files, that are cached and available locally. If not, they are loaded in the background.
Therefore I want to take the following approach.
When having downloaded a multiframe DICOM file to the client's cache, I want to split it up and save each slice (or is it called frame in the DICOM world?) as an individual DICOM file in the cache and pass it on to the viewing component for display.
But I am a little stuck on how to do this.
Altough I am already able to read a uncompressed multiframe DICOM file I have no idea on how to extract one slice after the other and save it as a DICOM file (it would be great if I could preserve the DICOM header as well).
How can I achive this using ImageJ?
Moreover I have the fear, that creating an ImagePlus object with the multiframe DICOM file to extract all slices, will result in loading the complete file into the memory. And this may be a problem, too.
Any ideas?
Thanks in Advance for both your time and knowledge! ;)
Greetings
Stefan