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
 Maybe a Small Bug in ReadTag

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 30 2016 : 22:16:33
Hi, Mr Nigel,

I am trying read a DICOMDIR file.

To read it correctly, I derived a new component from TIEDicomTags class and I am working with it now.

I had to do a fix in ReadTag function to read SQ nested items. For sample,
if I had 6 items in my SQ tag, only the first was been read.

May be my fix can be useful for DICOM images also.

function TDicomReadContext.ReadTag(tags: TIEDicomTags): boolean;
....
.....
 if vr = dvSQ then
      begin
        // read sequence of tags (Children)
        lpos := Stream.Position;
        Children := TObjectList.Create();
        //// look for "Item tag"
        //while (Stream.Position < lpos + datasize) or (datasize <= 0) do  -->I did a fix to
        while (Stream.Position <= lpos + datasize) or (datasize <= 0) do  --        begin
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - May 31 2016 : 21:13:13
Thanks, implemented in the latest beta.

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