This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, March 6, 2008 7:26:33 AM(UTC)
Groups: Registered
Posts: 9
I'm trying to insert a new private tag by the following:
ds.InsertTag((int)0x000D2001, -1, "Study Status", (short)LTDICLib.DicomVRCodeConstants.VR_OB, 1, 1, 1);
ds.InsertElement(false, (int)0x000D2001,
(short)LTDICLib.DicomVRCodeConstants.VR_CS, false, 0);
ds.StringValueCount = 1;
ds.set_StringValues(0, "abcd");
ds.SetStringValue(1);
However when viewing the generated DICOM file in ezDicom I see the following:
000D,2001,?=1684234849
But if I change the value I'm trying to insert from "abcd" to "abcde" I see the following:
000D,2001,?=abcde
Why I cannot see the "abcd" in the first attempt ?
#2
Posted
:
Thursday, March 6, 2008 10:31:16 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 764
Which LEADTOOLS version and interface (COM, API, etc.) are you using?
What happens if you load the Dicom File in the C++ CLIB Main Dicom demo rather than ezDicom? Is the tag still 1684234849 rather than abcd? If so, then most likely there's a problem with ezDicom.
What is the file version of ltkrn##*.dll that you're using?
Could you post the two DICOM files (one with abcd and other with abcde)?
NOTE: If you are attaching a project or file to the forums...
1.) Zip the file(s) up.
2.) Make sure it is less than 5 MB. If it is larger, please send an email to
support@leadtools.com and we'll send you FTP instructions.
3.) Remove ANY AND ALL unlock codes and LEADTOOLS DLLs.
4.) Do not click the preview button, the attachment will not show up when you post it.
If you do not wish to post your file(s) on the forum since they are publically viewable, please send an email to
support@leadtools.com and make sure that you include a link to this forum post.
#3
Posted
:
Thursday, March 6, 2008 11:12:05 AM(UTC)
Groups: Registered
Posts: 9
I'm using the COM interface.
I tried to load both DICOM files using your .NET Dicom demo. In both cases I saw the tag without any value.
The version of the ltkrn14N.dll is 14.5.0.002 (or 14.5.0.2)
#4
Posted
:
Sunday, March 9, 2008 6:53:13 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Because
this is a private tag, a DICOM viewer that doesn't know what it is might not
format the value properly when it displays the contents.
The
value 'abcd' contains 4 bytes, which can be understood as either one 32-bit
integer, or 4 characters. In fact, the hex values of the ASCII codes of these 4
letters are 0x61, 0x62, 0x63 and 0x64. If you
combine them into one hex number, 0x64636261, its decimal value is 1684234849,
which is the number you got last time.
However,
when a fifth byte was added, the viewer determined it's not a 32-bit number, so
it displayed them as character bytes.
In
general, whenever you insert a private tag, it is your responsibility to ensure
your own viewer handles it correctly.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.