|
From: Miguel N. <m....@fr...> - 2018-01-30 11:28:27
|
Dear Mathieu,
I am trying to add the private tags with gdcm to a DICOM file I am
producing. However, when printing the file with dcmdump, the tags VR
cannot be printed, as well as the values.
However, I managed to change the FileMetaInformation header of my dicom
file to SetTransferSyntax the correctly. Now, dcmdump is able to print
the VR and contained value correctly.
Thanks anyway!
best regards,
Miguel
On 30-Jan-18 12:22 PM, Mathieu Malaterre wrote:
> Miguel,
>
> On Tue, Jan 30, 2018 at 11:54 AM, Miguel Nunes <m....@fr...> wrote:
>> Hello Mathieu,
>>
>> I am still struggling with the private tags. From another thread I am trying to add to the private dictionary:
>>
>>
>> gdcm::Global gl;
>> gl.GetDicts().GetPrivateDict().AddDictEntry(gdcm::Tag(0x33431002), gdcm::DictEntry("my float", "0x3343, 0x1002", gdcm::VR::DS, gdcm::VM::VM1));
>> AddTag(gdcm::Tag(0x33431002), gdcm::VR::DS, to_string(myfloatVal), nds);
>>
>>
>> But dcmdump still shows the ?? and strange values, instead of the float I try to add.
>> I cannot edit the gdcm source file, as I must keep the code 100% original.
>>
>> Here's the header of the DICOM File I produce, note the little endian explicit/implicit:
>>
>> # Dicom-Meta-Information-Header
>> # Used TransferSyntax: Little Endian Explicit
>> (0002,0000) UL 258 # 4, 1 FileMetaInformationGroupLength
>> (0002,0001) OB 00\01 # 2, 1 FileMetaInformationVersion
>> (0002,0002) UI =RTDoseStorage # 30, 1 MediaStorageSOPClassUID
>> (0002,0003) UI [1.2.826.0.1.3680043.2.1125.1402728151637679963950600771425829278] # 64, 1 MediaStorageSOPInstanceUID
>> (0002,0010) UI =LittleEndianImplicit # 18, 1 TransferSyntaxUID
>> (0002,0012) UI [1.2.826.0.1.3680043.2.1143.107.104.103.115.2.8.3.126.124.113] # 60, 1 ImplementationClassUID
>> (0002,0013) SH [GDCM 2.8.3] # 10, 1 ImplementationVersionName
>> (0002,0016) AE [GDCM/VTK 8.0.1] # 14, 1 SourceApplicationEntityTitle
>>
>> (3343,1002) ?? 34\2e\30\30\30\30\30\30 # 8, 1 Unknown Tag & Data
> I have to say I am totally clueless as to what you are trying to do here...
>
> 1. If you want to extend GDCM with a new private tag, then I would
> need *gdcmdump* output for all group 0x3343,
> 2. If you want to extend DCMTK with a new private tag, then post to
> DCMTk forum asking for help.
>
> -M
>
---
This email has been checked for viruses by AVG.
http://www.avg.com
|