Loading DICOM file without pixel data?

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
artemmikheev
Posts: 32
Joined: Mon, 2018-11-12, 20:01

Loading DICOM file without pixel data?

#1 Post by artemmikheev »

I want to load DICOM file but without pixel data (DCM_PixelData).

I am using the following function usually:

DcmFileFormat* D = NULL;
...........
...........
D->loadFile( Name ).good());

Is there some way to load ALL but skip the Pixel Data?

Thank you

J. Riesmeier
DCMTK Developer
Posts: 2504
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: Loading DICOM file without pixel data?

#2 Post by J. Riesmeier »

By default, the DcmFileFormat::loadFile() method only loads element values from file (to main memory) where the value length is below a certain threshold (4 kbytes, see "maxReadLength" parameter). Does this meet your requirements?

Post Reply

Who is online

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