No subject
Fri May 16 13:32:40 EDT 2008
default behavior.
I would like to know:
1. Is it possible to change the default behavior for ONLY selected UIDs that
are specified by the user?, and how?
2. I want to finally contribute this code to ITK.
It would be very happy to know and most probably, implement any better ways
or modifications to the current approach.
Your suggestions in this regard will be of great help to me.
Thank you very much for time and help.
Warm Regards,
Subrahmanyam Gorthi.
EPFL-STI-LTS5
Station 11
CH - 1015 Lausanne
Switzerland.
On Tue, Jul 1, 2008 at 6:16 PM, Mathieu Malaterre <
mathieu.malaterre at gmail.com> wrote:
> On Tue, Jul 1, 2008 at 5:49 PM, Subrahmanyam Gorthi
> <subrahmanyam.gorthi at gmail.com> wrote:
> > Hi all,
> >
> > I am trying to read a DICOM file and write the same to another DICOM file
> > using ITK.
> >
> > For that, I am using the example code given in ITK's
> > Examples\IO\ImageReadWrite.cxx
> >
> > It seems the values of a few tags are altered in the process of writing.
> > Particularly, i need to retain the value of "Study Instance UID"
> attribute
> > with Tag Number: (0020,000d).
> >
> > I would like to know whether this is a normal behavior?
>
> Yes & No. There is no way to be sure you are allowed to keep the same
> Instance UID. I'll assume you know what you are doing. Anyway the
> default is to always regenerate them which is safe in 100% cases.
>
> > If so, how to retain the same value for the "Study Instance UID"
> attribute?
>
> See itk::GDCMImageIO::KeepOriginalUIDOn ( )
>
> http://public.kitware.com/Insight/Doxygen/html/classitk_1_1GDCMImageIO.html#itk_1_1GDCMImageIOz1844_2
>
> But again you should really think twice before doing this.
>
> HTH
>
> --
> Mathieu
>
------=_Part_1175_108074.1214991056178
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Dear Mathieu,<br><br>Many THANKS for your detailed & prompt reply.<br><br>Here is what I am actually trying to implement in ITK:<br><br>Using a segmentation algorithm in ITK, I obtained the coordinates for 3-D ROI of a patient's image .<br>
I am now trying to export these results into a "DICOM-RT Structure-Set" file, for RT-Planning in IMRT.<br><br>In addition to ROI module, as the DICOM-RT structure-set file has to contain other <br>mandatory modules like patient-module, study module etc., <br>
I am trying to selectively copy those modules from the associated patient's 3-D CT image. <br><br>I compared the tags of structure-set file that I am creating in ITK with the file generated by another software that<br>
a Physician here is using in his hospital;<br>he was manually drawing the contours on the CT image and the corresponding DICOM-RT structure-set file is generated by the software.<br><br>I observed that for the "structure-set" file generated by that software, "study-instance UID" tag is same as that of the<br>
other 3-D CT DICOM images and hence, I am trying to do the same for the file created through ITK.<br><br>From your reply, I understand the importance safety issues in changing the default behavior.<br>I would like to know:<br>
1. Is it possible to change the default behavior for ONLY selected UIDs that are specified by the user?, and how?<br><br>2. I want to finally contribute this code to ITK.<br>It would be very happy to know and most probably, implement any better ways or modifications to the current approach.<br>
Your suggestions in this regard will be of great help to me.<br><br> <br>Thank you very much for time and help.<br><br>Warm Regards,<br>Subrahmanyam Gorthi.<br><br>EPFL-STI-LTS5<br>Station 11<br>CH - 1015 Lausanne<br>Switzerland.<br>
<br><br><br><br><br><br><br><div class="gmail_quote">On Tue, Jul 1, 2008 at 6:16 PM, Mathieu Malaterre <<a href="mailto:mathieu.malaterre at gmail.com" target="_blank">mathieu.malaterre at gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>On Tue, Jul 1, 2008 at 5:49 PM, Subrahmanyam Gorthi<br>
<<a href="mailto:subrahmanyam.gorthi at gmail.com" target="_blank">subrahmanyam.gorthi at gmail.com</a>> wrote:<br>
> Hi all,<br>
><br>
> I am trying to read a DICOM file and write the same to another DICOM file<br>
> using ITK.<br>
><br>
> For that, I am using the example code given in ITK's<br>
> Examples\IO\ImageReadWrite.cxx<br>
><br>
> It seems the values of a few tags are altered in the process of writing.<br>
> Particularly, i need to retain the value of "Study Instance UID" attribute<br>
> with Tag Number: (0020,000d).<br>
><br>
> I would like to know whether this is a normal behavior?<br>
<br>
</div>Yes & No. There is no way to be sure you are allowed to keep the same<br>
Instance UID. I'll assume you know what you are doing. Anyway the<br>
default is to always regenerate them which is safe in 100% cases.<br>
<div><br>
> If so, how to retain the same value for the "Study Instance UID" attribute?<br>
<br>
</div>See itk::GDCMImageIO::KeepOriginalUIDOn ( )<br>
<a href="http://public.kitware.com/Insight/Doxygen/html/classitk_1_1GDCMImageIO.html#itk_1_1GDCMImageIOz1844_2" target="_blank">http://public.kitware.com/Insight/Doxygen/html/classitk_1_1GDCMImageIO.html#itk_1_1GDCMImageIOz1844_2</a><br>
<br>
But again you should really think twice before doing this.<br>
<br>
HTH<br>
<br>
--<br>
<font color="#888888">Mathieu<br>
</font></blockquote></div><br>
------=_Part_1175_108074.1214991056178--
More information about the Insight-users
mailing list