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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Create DICOM
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

kostos

12 Posts

Posted - Jul 04 2011 :  09:54:44  Show Profile  Reply
Hello,

I want to create DICOM file. I have a image and I can create Dicom Tags (you have helped me with it, thank you), but I can't save a DICOM file!

How I can do it?

Thanks for any help you may be able to provide.

Konstantin

spetric

Croatia
308 Posts

Posted - Jul 04 2011 :  11:37:38  Show Profile  Reply
Hi,

Good question. I didn't find DICOM extension when saving file. Maybe I'm using older ImageEn version.

Go to Top of Page

kostos

12 Posts

Posted - Jul 04 2011 :  12:10:05  Show Profile  Reply
You can use:

imageEnIO1.SaveToFile('name');
imageEnIO1.SaveToStream(stream, ioDICOM);

But it doesn't help me :)
Go to Top of Page

fab

1310 Posts

Posted - Jul 04 2011 :  13:02:56  Show Profile  Reply
I'm sorry, at the moment ImageEn cannot create DICOM files.

Dicom saving will be available in ImageEn 5.0.0
Go to Top of Page

hamidshali

Iran
51 Posts

Posted - Feb 19 2015 :  02:16:35  Show Profile  Reply
hi to all
i am problem
how add tag in dicom file
please help me
this code
AE:='treat' ;
ImageEnView1.io.Params.DICOM_Tags.AddTag($0008,$0054,dvAE,pointer(AE),length(AE)+1);
ImageEnView1.IO.SaveToFileDICOM('save1.dcm');

please give me correct code
Go to Top of Page

xequte

38944 Posts

Posted - Feb 19 2015 :  15:16:49  Show Profile  Reply
Hi

You can use:

sAE := 'treat' ;
ImageEnView1.IO.Params.DICOM_Tags.SetTagString( $0008, $0054, sAE );




Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

hamidshali

Iran
51 Posts

Posted - Feb 22 2015 :  13:17:12  Show Profile  Reply
hi
tanx
please one example for create record to dicom file for comment
ImageEnIO1.Params.DICOM_Tags.AddTag($0010,$0012, DataType: TIEDicomTagType; Data: pointer; DataLen: integer; Children: TObjectList = nil);

Go to Top of Page

hamidshali

Iran
51 Posts

Posted - Feb 22 2015 :  13:31:09  Show Profile  Reply
how add one record to dataset of dicom file by
ImageEnIO1.Params.DICOM_Tags.AddTag(Group: word; Element: word; DataType: TIEDicomTagType; Data: pointer; DataLen: integer; Children: TObjectList = nil)
Go to Top of Page

xequte

38944 Posts

Posted - Feb 22 2015 :  22:02:37  Show Profile  Reply
Hi

It will be the same. Please use SetTagString() instead of AddTag(). Use the ReplaceIfExist parameter to add the tag rather than replace the existing one.

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

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

hamidshali

Iran
51 Posts

Posted - Feb 23 2015 :  12:33:03  Show Profile  Reply
hi
thans

Go to Top of Page

hamidshali

Iran
51 Posts

Posted - Mar 15 2015 :  11:29:47  Show Profile  Reply
hi

i use SetTagString but if

ImageEnView1.io.Params.DICOM_Tags.SetTagString( $300A,$00B8,'ASYMX') ;
//......  ;Number of Leaf/Jaw Pairs;;1
ImageEnView1.io.Params.DICOM_Tags.SetTagString( $300A,$00BC,'1') ;
//......  ;RT Beam Limiting Device Type;;ASYMY
//(FFFE,E000);;Item;;
//  ImageEnView1.io.Params.DICOM_Tags.SetTagString( $300A,$00B6,' ') ;
ImageEnView1.io.Params.DICOM_Tags.SetTagString( $300A,$00B8,'ASYMY') ;
//......  ;Number of Leaf/Jaw Pairs;;1  Y
ImageEnView1.io.Params.DICOM_Tags.SetTagString( $300A,$00BC,'1') ;

//......  RT Beam Limiting Device Type;;MLCX
ImageEnView1.io.Params.DICOM_Tags.SetTagString( $300A,$00B8,'MLCX') ;

//......  ;Number of Leaf/Jaw Pairs;;40 x
ImageEnView1.io.Params.DICOM_Tags.SetTagString( $300A,$00BC,numleaf) ;
//......  Number of Leaf/Jaw Pairs
ImageEnView1.io.Params.DICOM_Tags.SetTagString( $300A,$00BE,'MLCX') ;

out  put

(300A,00B8) RT Beam Limiting Device Type (CS) : "ASYMX "
(300A,00B8) RT Beam Limiting Device Type (CS) : "MLCX"
(300A,00B8) RT Beam Limiting Device Type (CS) : "ASYMY "
(300A,00BC) Number of Leaf/Jaw Pairs (IS) : "1 "
(300A,00BC) Number of Leaf/Jaw Pairs (IS) : "41"
(300A,00BC) Number of Leaf/Jaw Pairs (IS) : "1 "

i wante correct form in deferece sequence  like the
(300A,00B8);;RT Beam Limiting Device Type;;ASYMX
(300A,00BC);;Number of Leaf/Jaw Pairs;;1
(FFFE,E000);;Item;;
(300A,00B8);;RT Beam Limiting Device Type;;ASYMY
(300A,00BC);;Number of Leaf/Jaw Pairs;;1



please help me
Go to Top of Page

xequte

38944 Posts

Posted - Mar 17 2015 :  20:40:32  Show Profile  Reply
Hi

Your code returns:

(300A,00B8) RT Beam Limiting Device Type (CS) : "ASYMX "
(300A,00B8) RT Beam Limiting Device Type (CS) : "MLCX"
(300A,00B8) RT Beam Limiting Device Type (CS) : "ASYMY "
(300A,00BC) Number of Leaf/Jaw Pairs (IS) : "1 "
(300A,00BC) Number of Leaf/Jaw Pairs (IS) : "40"
(300A,00BC) Number of Leaf/Jaw Pairs (IS) : "1 "
(300A,00BE) Leaf Position Boundaries (DS) : "MLCX"


Which is expected because it is ordered by Group and Element.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

hamidshali

Iran
51 Posts

Posted - Apr 25 2015 :  23:43:39  Show Profile  Reply
hi i need help you
i read dicom tag by dicom example
can read sequence by your component
Go to Top of Page

xequte

38944 Posts

Posted - Apr 28 2015 :  19:27:58  Show Profile  Reply
Hi

Because ImageEn sorts tags as it adds them, these kind of sequences cannot be created. We will investigate non-sorting of tags for a future version.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

xequte

38944 Posts

Posted - Jun 06 2016 :  20:06:36  Show Profile  Reply
Hi

Please email me for a pre-release of v6.3.1 which supports unsorted sequences.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: