Hi,
I've found the function which used the DSRWaveformReferenceValue. Nevertheless I've not found yet, how should I get the DSRWaveformReferenceValue
The aim of my project is to read DICOM file.
Best regards
get DSRWaveformReferenceValue
Moderator: Moderator Team
-
- DCMTK Developer
- Posts: 2051
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Hi,
there is no real tutorial on how to use DCMTK. For reading and writing DICOM files in general, you use functions from the module "dcmdata", which resides in the directory with the same name. It is documented here, including a short code example for reading/writing specific attributes.
The most important class for accessing specific values is DcmItem, whose API is documented here.
Regards,
Michael
there is no real tutorial on how to use DCMTK. For reading and writing DICOM files in general, you use functions from the module "dcmdata", which resides in the directory with the same name. It is documented here, including a short code example for reading/writing specific attributes.
The most important class for accessing specific values is DcmItem, whose API is documented here.
Regards,
Michael
Hi Michael,
Thanks for your answer.
I can get the DcmItems (eg: Patient’s Name, Patient ID, ...) . Moreover I can get the DcmSequenceOfItems.
But I cannot get the DSRWaveform. It's sad because there are some functions whose used the waveform (eg: DSRWaveformChannelItem, ...).
So what is the connexion between DSRWaveform and DcmFileFormat.
Best regards,
Anth
Thanks for your answer.
I can get the DcmItems (eg: Patient’s Name, Patient ID, ...) . Moreover I can get the DcmSequenceOfItems.
But I cannot get the DSRWaveform. It's sad because there are some functions whose used the waveform (eg: DSRWaveformChannelItem, ...).
So what is the connexion between DSRWaveform and DcmFileFormat.
Best regards,
Anth
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
I want to plot the ECG waveform. For that, I need to read the values in (5400,1010) Waveform Data, ...
I tried the following code :
But I don't know to use the DcmSequenceOfItems.
Moreover I tried the following code:
I tried the following code :
Code: Select all
DcmSequenceOfItems* dseq;
if(fileformat.getDataset()->findAndGetSequence(DCM_WaveformSequence,dseq).good())
Moreover I tried the following code:
Code: Select all
const Uint16* value;
fileformat.getDataset()->findAndGetUint16Array(DCM_WaveformData,value);
-
- DCMTK Developer
- Posts: 2051
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Hi,
e. g. you can try that:
Regards,
Michael
e. g. you can try that:
Code: Select all
DcmDataset* dset = NULL;
dset = fileformat.getDataset();
DcmItem *item = NULL;
if(dset->findAndGetSequenceItem(DCM_WaveformSequence,item,0).good())
{
// now item has a pointer to the first item (0) in the Waveform Sequence.
}
Michael
Who is online
Users browsing this forum: Google [Bot] and 1 guest