I am currently reading a WSI image and trying to create a DCM file from it. I am reading the tiles from the layer and writing the tile as a frame in Dicom. The problem is when I am reading a baseline image, it has close to 6000 tiles. So I will be creating 6000 frames. These 6000 frames are in application memory and written only when I save the DCM file. Is there any way to write the frames directly to file instead of keeping in memory and then writing to file?
P.S: I don't want to create one DCM file per frame. I need to create one DCM file per layer
Creating a large dicom file
Moderator: Moderator Team
-
- DCMTK Developer
- Posts: 2506
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: Creating a large dicom file
You could create the pixel data for the image tiles on demand, e.g. by sub-classing the DcmPixelItem class and overwriting the write() method. However, please be warned that creating a Basic or Extended Offset Table and also determining the value for Lossy Image Compression Ratio in advance might be a challenge (that could be mastered, though).
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest