I am using the DCMTK library on Linux and have a need where I have to recursively scan and build volumes from files in a user specified directory. The problem is that I am running out of memory doing these scans.
To arrange the DICOM files, I only need the information from the headers.
I am loading the files as follows:
I have a DCMFileFormat object that it a class member:
Code: Select all
DcmFileFormat * m_dcmFileFormat;
Code: Select all
m_dcmFileFormat->loadFile(fileName, EXS_Unknown, EGL_noChange, DCM_MaxReadLength, ERM_fileOnly)
Cheers,
Luca