ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 SetTagString exception with dicom tag

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
jwest Posted - May 21 2016 : 16:24:55
Hi,

I am trying to create a dicomdir file.
I am getting an exception when I set the tag ($20,$10) with a empty value.

var da1:TIEDicomTags;
as1:TImageEnVect;
ss:string;
begin
...
da1 := TIEDicomTags.Create;
if assigned(as1.IO.Params.DICOM_Tags.GetTag($20, $10)) then begin
ss:=trim(as1.IO.Params.DICOM_Tags.GetTagString($20, $10));
//Here ss=''
da1.SetTagString($20, $10, ss); --->Exception
end;
...

What am I doing wrong?
4   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jun 06 2016 : 18:01:12
Hi

We have a fix for this in our latest beta. Please email me for the source.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
xequte Posted - May 24 2016 : 20:04:02
Thanks, the code should be:

  ss := '';
  da1 := ImageEnMView1.MIO.Params[0].DICOM_Tags;
  if assigned( da1.GetTag( $20, $10 )) then
    da1.SetTagString( $20, $10, ss );

But I can reproduce the error and will investigate.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
jwest Posted - May 23 2016 : 19:31:22
Hi, Mr Nigel

I canīt remove the tag because is a tag type 2.

Type 2: Required to be in the SOP Instance but may contain the value of "unknown", or a zero length value.
(http://dicomlookup.com/type.asp)

1. I am trying to create a DICOMDIR file filling many tags manually, and I need that tag with a empty value or "unknown".
Can I put the string "unknown" as the name says?

2. Other question, is possible create a tag(group, element) empty and fill your tags childrens? How could I do it?
xequte Posted - May 23 2016 : 18:51:37
Hi

You should use DeleteTag:

http://www.imageen.com/help/TIEDicomTags.DeleteTag.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com