Question about decodeFrame()

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
paolom
Posts: 169
Joined: Tue, 2008-09-16, 15:02

Question about decodeFrame()

#1 Post by paolom »

Hi...

I want to get single frame of a Multi-Frame DICOM file without load all in memorie.

I work with MinGW and Msys and the latest snapshot doesn't work here...

I've make a method that get the pixelData of a specified frame directly from a file (using DcmFileInputStream).

After I clone my dataSet and I modify the NumberOfFrames to 1 and the pixelData with the new single pixelData.

At this point I can create my DicomImage.

The first problem comes when my frame is compressed (for example RLE).

I think that I can use the same way and during the creation of the DicomImage I can register my codec (this way works with single frame DICOM files).

I try and when I create a DicomImage with a single frame of a compressed multi-frame DICOM Image (RLE) the result is an image wrong (not decompressed).

What is it wrong under my reasonment?

Thanks

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest