Hello,
I want to extract the images of a DCM file directory and generate an array as volume dataset for our own rendering engine. For single files this works via DicomImage.
How do I proceed using a DCM file directory ? What Object and Methods do I need for this ?
Regards,
Marc
Generating volume datasets
Moderator: Moderator Team
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
What do you mean by "DCM file directory"? A DICOMDIR file or a filesystem directory with DICOM files? For option A see FAQ #30, for option B see OFStandard::searchDirectoryRecursively().
Hello Jörg,
thanks for your answer. I want to connect to a DICOMDIR file, and I did already. Now, I got some problems to access the records. When I understand things right, i have to navigate e.g. with nextSub(). However, when I want to access now the pixel data of a record, e.g.
record->findAndGetUint8Array(DCM_PatientID, pixelData);
then I do not get any results in pixelData, although a print() of the record shows the corresponding pixel data.
Best regards
Marc
thanks for your answer. I want to connect to a DICOMDIR file, and I did already. Now, I got some problems to access the records. When I understand things right, i have to navigate e.g. with nextSub(). However, when I want to access now the pixel data of a record, e.g.
record->findAndGetUint8Array(DCM_PatientID, pixelData);
then I do not get any results in pixelData, although a print() of the record shows the corresponding pixel data.
Best regards
Marc
eq
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
I guess that the pixel data element is contained in a sequence item. In this case you need to set the parameter "searchIntoSub" to OFTrue. That means, the code line would look like this:
Code: Select all
record->findAndGetUint8Array(DCM_PixelData, pixelData, NULL /*count*/, OFTrue /*searchIntoSub*/);
-
- OFFIS DICOM Team
- Posts: 1461
- Joined: Tue, 2004-11-02, 17:22
- Location: Oldenburg, Germany
- Contact:
Who is online
Users browsing this forum: Baidu [Spider], Bing [Bot], Google [Bot] and 0 guests