Hi!
Can anyone tell me how dcmdump create the file name whne I use +W option?
It seems it is always like:
dcmfilename.0.raw
Is it correct?
I will like dump pixel data to a file or pipe it throught stand output. So, I can easily read them in my python script. Any alternative way to achieve this is also welcomed...
Gen
dcmdump and naming of raw file
Moderator: Moderator Team
-
- OFFIS DICOM Team
- Posts: 1445
- Joined: Tue, 2004-11-02, 17:22
- Location: Oldenburg, Germany
- Contact:
-
- Posts: 53
- Joined: Thu, 2005-04-14, 15:07
- Location: St. Petersburg, Russia
Items refer to what Marco described in the previous response, i.e. how many slices in that multi-frame pixel data? Any dicom tag for this kind of info?? Sometimes, I really feel quite troubling that there is no any info regarding how many slices in a series and how many seires in this study.
Lacking of these kind of info just make the design of post processing steps miserable...
Gen
Lacking of these kind of info just make the design of post processing steps miserable...
Gen
-
- OFFIS DICOM Team
- Posts: 1445
- Joined: Tue, 2004-11-02, 17:22
- Location: Oldenburg, Germany
- Contact:
The transfer syntax in which the dataset is encoded determines whether or not pixel data on main dataset level will be encapsulated. DcmDataset::getOriginalgetOriginalXfer() will provide this transfer syntax and DcmXfer::isEncapsulated() will check whether this is one with encapsulated pixel data. The code might look like this:If the pixel data is encapsulated, DcmPixelData::getEncapsulatedRepresentation() provides access to the sequence like structure (a DcmPixelSequence instance). Use DcmPixelData::getOriginalRepresentationKey() to retrieve the other parameters expected by DcmPixelData::getEncapsulatedRepresentation(). Within the DcmPixelSequence object finally, the number of sequence items can be determined with DcmPixelSequence::card().
Code: Select all
DcmXfer xfer (dataset->getOriginalgetOriginalXfer());
bool isEncapsulated = xfer.isEncapsulated();
Who is online
Users browsing this forum: Google [Bot] and 1 guest